Skip to content

Commit

Permalink
generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
scotthart committed Jun 27, 2024
1 parent a0dc05e commit c56fb77
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Status DefaultGoldenKitchenSinkRestStub::DoNothing(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::protobuf::Empty const& request) {
return rest_internal::Post(
return rest_internal::Post<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/doNothing"));
}
Expand All @@ -110,7 +110,7 @@ Status DefaultGoldenKitchenSinkRestStub::ExplicitRouting1(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::test::admin::database::v1::ExplicitRoutingRequest const& request) {
return rest_internal::Post(
return rest_internal::Post<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/", request.table_name(), ":explicitRouting1"),
rest_internal::TrimEmptyQueryParameters({std::make_pair("app_profile_id", request.app_profile_id()),
Expand All @@ -121,7 +121,7 @@ Status DefaultGoldenKitchenSinkRestStub::ExplicitRouting2(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::test::admin::database::v1::ExplicitRoutingRequest const& request) {
return rest_internal::Post(
return rest_internal::Post<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/", request.table_name(), ":explicitRouting2"),
rest_internal::TrimEmptyQueryParameters({std::make_pair("app_profile_id", request.app_profile_id()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Status DefaultGoldenRestOnlyRestStub::Noop(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::protobuf::Empty const& request) {
return rest_internal::Post(
return rest_internal::Post<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/noop"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ Status DefaultGoldenThingAdminRestStub::DropDatabase(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::test::admin::database::v1::DropDatabaseRequest const& request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/", request.database()));
}
Expand Down Expand Up @@ -252,7 +252,7 @@ Status DefaultGoldenThingAdminRestStub::DeleteBackup(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::test::admin::database::v1::DeleteBackupRequest const& request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/", request.name()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Status DefaultGlobalOperationsRestStub::DeleteOperation(
Options const& options,
google::cloud::cpp::compute::global_operations::v1::
DeleteOperationRequest const& request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", "compute", "/",
rest_internal::DetermineApiVersion("v1", options), "/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Status DefaultGlobalOrganizationOperationsRestStub::DeleteOperation(
Options const& options,
google::cloud::cpp::compute::global_organization_operations::v1::
DeleteOperationRequest const& request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", "compute", "/",
rest_internal::DetermineApiVersion("v1", options), "/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ Status DefaultInstancesRestStub::SendDiagnosticInterrupt(
Options const& options,
google::cloud::cpp::compute::instances::v1::
SendDiagnosticInterruptRequest const& request) {
return rest_internal::Post(
return rest_internal::Post<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", "compute", "/",
rest_internal::DetermineApiVersion("v1", options), "/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Status DefaultRegionOperationsRestStub::DeleteOperation(
Options const& options,
google::cloud::cpp::compute::region_operations::v1::
DeleteOperationRequest const& request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", "compute", "/",
rest_internal::DetermineApiVersion("v1", options), "/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Status DefaultZoneOperationsRestStub::DeleteOperation(
Options const& options,
google::cloud::cpp::compute::zone_operations::v1::
DeleteOperationRequest const& request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", "compute", "/",
rest_internal::DetermineApiVersion("v1", options), "/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Status DefaultDatabaseAdminRestStub::DropDatabase(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::spanner::admin::database::v1::DropDatabaseRequest const& request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/",
request.database()));
Expand Down Expand Up @@ -375,7 +375,7 @@ Status DefaultDatabaseAdminRestStub::DeleteBackup(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::spanner::admin::database::v1::DeleteBackupRequest const& request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/",
request.name()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ Status DefaultInstanceAdminRestStub::DeleteInstanceConfig(
Options const& options,
google::spanner::admin::instance::v1::DeleteInstanceConfigRequest const&
request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/",
request.name()),
Expand Down Expand Up @@ -332,7 +332,7 @@ Status DefaultInstanceAdminRestStub::DeleteInstance(
Options const& options,
google::spanner::admin::instance::v1::DeleteInstanceRequest const&
request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/",
request.name()));
Expand Down Expand Up @@ -431,7 +431,7 @@ Status DefaultInstanceAdminRestStub::DeleteInstancePartition(
Options const& options,
google::spanner::admin::instance::v1::DeleteInstancePartitionRequest const&
request) {
return rest_internal::Delete(
return rest_internal::Delete<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, false,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/",
request.name()),
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/sql/v1/internal/sql_operations_rest_stub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Status DefaultSqlOperationsServiceRestStub::Cancel(
google::cloud::rest_internal::RestContext& rest_context,
Options const& options,
google::cloud::sql::v1::SqlOperationsCancelRequest const& request) {
return rest_internal::Post(
return rest_internal::Post<google::cloud::rest_internal::EmptyResponseType>(
*service_, rest_context, request, true,
absl::StrCat("/", rest_internal::DetermineApiVersion("v1", options), "/",
"projects", "/", request.project(), "/", "operations", "/",
Expand Down

0 comments on commit c56fb77

Please sign in to comment.