Skip to content

Commit

Permalink
chore: update googleapis SHA circa 2024-10-24 (#14801)
Browse files Browse the repository at this point in the history
* chore: update googleapis SHA circa 2024-10-24

PiperOrigin-RevId: 689456358

* Update the protodeps/protolists

* Regenerate libraries
  • Loading branch information
cuiy0006 authored Oct 25, 2024
1 parent 690aa06 commit bf3bf1c
Show file tree
Hide file tree
Showing 51 changed files with 3,808 additions and 312 deletions.
6 changes: 3 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ python.toolchain(
bazel_dep(name = "googleapis", version = "0.0.0", repo_name = "com_google_googleapis")
archive_override(
module_name = "googleapis",
integrity = "sha256-7TXPcIHtqcTNsrmt28QL2yuMG6/e/nbR2tat8Oyw66s=",
integrity = "sha256-o6lYUSiWox5NQGrujn3JeMRLjVphOcwWYAk+n1sbON8=",
patch_strip = 1,
patches = ["//bazel:googleapis.modules.patch"],
strip_prefix = "googleapis-e60db19f11f94175ac682c5898cce0f77cc508ea",
strip_prefix = "googleapis-d9673c1cab23f8e389be66ba037254bcf2ec5dc3",
urls = [
"https://github.com/googleapis/googleapis/archive/e60db19f11f94175ac682c5898cce0f77cc508ea.tar.gz",
"https://github.com/googleapis/googleapis/archive/d9673c1cab23f8e389be66ba037254bcf2ec5dc3.tar.gz",
],
)

Expand Down
6 changes: 3 additions & 3 deletions bazel/workspace0.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ def gl_cpp_workspace0(name = None):
http_archive,
name = "com_google_googleapis",
urls = [
"https://github.com/googleapis/googleapis/archive/e60db19f11f94175ac682c5898cce0f77cc508ea.tar.gz",
"https://github.com/googleapis/googleapis/archive/d9673c1cab23f8e389be66ba037254bcf2ec5dc3.tar.gz",
],
sha256 = "ed35cf7081eda9c4cdb2b9addbc40bdb2b8c1bafdefe76d1dad6adf0ecb0ebab",
strip_prefix = "googleapis-e60db19f11f94175ac682c5898cce0f77cc508ea",
sha256 = "a3a958512896a31e4d406aee8e7dc978c44b8d5a6139cc1660093e9f5b1b38df",
strip_prefix = "googleapis-d9673c1cab23f8e389be66ba037254bcf2ec5dc3",
build_file = Label("//bazel:googleapis.BUILD"),
# Scaffolding for patching googleapis after download. For example:
# patches = ["googleapis.patch"]
Expand Down
4 changes: 2 additions & 2 deletions cmake/GoogleapisConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ set(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
mark_as_advanced(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256)

set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_COMMIT_SHA
"e60db19f11f94175ac682c5898cce0f77cc508ea")
"d9673c1cab23f8e389be66ba037254bcf2ec5dc3")
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
"ed35cf7081eda9c4cdb2b9addbc40bdb2b8c1bafdefe76d1dad6adf0ecb0ebab")
"a3a958512896a31e4d406aee8e7dc978c44b8d5a6139cc1660093e9f5b1b38df")

set(DOXYGEN_ALIASES
"googleapis_link{2}=\"[\\1](https://github.com/googleapis/googleapis/blob/${_GOOGLE_CLOUD_CPP_GOOGLEAPIS_COMMIT_SHA}/\\2)\""
Expand Down
1 change: 1 addition & 0 deletions external/googleapis/protodeps/alloydb.deps
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@com_google_googleapis//google/api:annotations_proto
@com_google_googleapis//google/api:client_proto
@com_google_googleapis//google/api:field_behavior_proto
@com_google_googleapis//google/api:field_info_proto
@com_google_googleapis//google/api:http_proto
@com_google_googleapis//google/api:launch_stage_proto
@com_google_googleapis//google/api:resource_proto
Expand Down
1 change: 1 addition & 0 deletions external/googleapis/protolists/alloydb.list
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@com_google_googleapis//google/cloud/alloydb/v1:data_model.proto
@com_google_googleapis//google/cloud/alloydb/v1:resources.proto
@com_google_googleapis//google/cloud/alloydb/v1:service.proto
78 changes: 78 additions & 0 deletions google/cloud/alloydb/v1/alloy_db_admin_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,45 @@ AlloyDBAdminClient::PromoteCluster(
return connection_->PromoteCluster(operation);
}

future<StatusOr<google::cloud::alloydb::v1::Cluster>>
AlloyDBAdminClient::SwitchoverCluster(std::string const& name, Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
google::cloud::alloydb::v1::SwitchoverClusterRequest request;
request.set_name(name);
return connection_->SwitchoverCluster(request);
}

StatusOr<google::longrunning::Operation> AlloyDBAdminClient::SwitchoverCluster(
NoAwaitTag, std::string const& name, Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
google::cloud::alloydb::v1::SwitchoverClusterRequest request;
request.set_name(name);
return connection_->SwitchoverCluster(NoAwaitTag{}, request);
}

future<StatusOr<google::cloud::alloydb::v1::Cluster>>
AlloyDBAdminClient::SwitchoverCluster(
google::cloud::alloydb::v1::SwitchoverClusterRequest const& request,
Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
return connection_->SwitchoverCluster(request);
}

StatusOr<google::longrunning::Operation> AlloyDBAdminClient::SwitchoverCluster(
NoAwaitTag,
google::cloud::alloydb::v1::SwitchoverClusterRequest const& request,
Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
return connection_->SwitchoverCluster(NoAwaitTag{}, request);
}

future<StatusOr<google::cloud::alloydb::v1::Cluster>>
AlloyDBAdminClient::SwitchoverCluster(
google::longrunning::Operation const& operation, Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
return connection_->SwitchoverCluster(operation);
}

future<StatusOr<google::cloud::alloydb::v1::Cluster>>
AlloyDBAdminClient::RestoreCluster(
google::cloud::alloydb::v1::RestoreClusterRequest const& request,
Expand Down Expand Up @@ -659,6 +698,30 @@ AlloyDBAdminClient::RestartInstance(
return connection_->RestartInstance(operation);
}

StatusOr<google::cloud::alloydb::v1::ExecuteSqlResponse>
AlloyDBAdminClient::ExecuteSql(std::string const& instance,
std::string const& database,
std::string const& user,
std::string const& sql_statement,
std::string const& password, Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
google::cloud::alloydb::v1::ExecuteSqlRequest request;
request.set_instance(instance);
request.set_database(database);
request.set_user(user);
request.set_sql_statement(sql_statement);
request.set_password(password);
return connection_->ExecuteSql(request);
}

StatusOr<google::cloud::alloydb::v1::ExecuteSqlResponse>
AlloyDBAdminClient::ExecuteSql(
google::cloud::alloydb::v1::ExecuteSqlRequest const& request,
Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
return connection_->ExecuteSql(request);
}

StreamRange<google::cloud::alloydb::v1::Backup> AlloyDBAdminClient::ListBackups(
std::string const& parent, Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
Expand Down Expand Up @@ -941,6 +1004,21 @@ Status AlloyDBAdminClient::DeleteUser(
return connection_->DeleteUser(request);
}

StreamRange<google::cloud::alloydb::v1::Database>
AlloyDBAdminClient::ListDatabases(std::string const& parent, Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
google::cloud::alloydb::v1::ListDatabasesRequest request;
request.set_parent(parent);
return connection_->ListDatabases(request);
}

StreamRange<google::cloud::alloydb::v1::Database>
AlloyDBAdminClient::ListDatabases(
google::cloud::alloydb::v1::ListDatabasesRequest request, Options opts) {
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
return connection_->ListDatabases(std::move(request));
}

StreamRange<google::cloud::location::Location>
AlloyDBAdminClient::ListLocations(
google::cloud::location::ListLocationsRequest request, Options opts) {
Expand Down
Loading

0 comments on commit bf3bf1c

Please sign in to comment.