Skip to content

Commit 7848043

Browse files
authored
chore: update googleapis SHA circa 2023-06-15 (#11901)
1 parent 4142882 commit 7848043

File tree

51 files changed

+3631
-379
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3631
-379
lines changed

bazel/google_cloud_cpp_deps.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ def google_cloud_cpp_deps(name = None):
142142
http_archive,
143143
name = "com_google_googleapis",
144144
urls = [
145-
"https://storage.googleapis.com/cloud-cpp-community-archive/com_google_googleapis/cdcb84311afce7968898a16f18f1604b53f07cd3.tar.gz",
146-
"https://github.com/googleapis/googleapis/archive/cdcb84311afce7968898a16f18f1604b53f07cd3.tar.gz",
145+
"https://storage.googleapis.com/cloud-cpp-community-archive/com_google_googleapis/a3f983b38c357a1e7a7810d9ad795756b77d4332.tar.gz",
146+
"https://github.com/googleapis/googleapis/archive/a3f983b38c357a1e7a7810d9ad795756b77d4332.tar.gz",
147147
],
148-
sha256 = "26677d0ae1906bf47adb7145f598d4fbf9cc18a1c088204eb5889cef8ad2878b",
149-
strip_prefix = "googleapis-cdcb84311afce7968898a16f18f1604b53f07cd3",
148+
sha256 = "edc901180a3ebdd4b3b3086e7df2ca71f947433ebeb827796447c57491fb334e",
149+
strip_prefix = "googleapis-a3f983b38c357a1e7a7810d9ad795756b77d4332",
150150
build_file = Label("//bazel:googleapis.BUILD"),
151151
# Scaffolding for patching googleapis after download. For example:
152152
# patches = ["googleapis.patch"]

cmake/GoogleapisConfig.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ set(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
2727
mark_as_advanced(GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256)
2828

2929
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_COMMIT_SHA
30-
"cdcb84311afce7968898a16f18f1604b53f07cd3")
30+
"a3f983b38c357a1e7a7810d9ad795756b77d4332")
3131
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
32-
"26677d0ae1906bf47adb7145f598d4fbf9cc18a1c088204eb5889cef8ad2878b")
32+
"edc901180a3ebdd4b3b3086e7df2ca71f947433ebeb827796447c57491fb334e")
3333

3434
set(DOXYGEN_ALIASES
3535
"googleapis_link{2}=\"[\\1](https://github.com/googleapis/googleapis/blob/${_GOOGLE_CLOUD_CPP_GOOGLEAPIS_COMMIT_SHA}/\\2)\""

google/cloud/alloydb/v1/.repo-metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"api_shortname": "alloydb",
44
"client_documentation": "https://cloud.google.com/cpp/docs/reference/alloydb/latest",
55
"distribution_name": "google-cloud-cpp",
6-
"issue_tracker": "https://issuetracker.google.com/issues?q=componentid:1029828%20status=open",
6+
"issue_tracker": "https://issuetracker.google.com/issues?q=componentid:1194526%20status=open",
77
"language": "cpp",
88
"library_type": "GAPIC_AUTO",
99
"name_pretty": "AlloyDB API",

google/cloud/alloydb/v1/alloy_db_admin_client.cc

Lines changed: 154 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,22 @@ AlloyDBAdminClient::DeleteCluster(
117117
return connection_->DeleteCluster(request);
118118
}
119119

120+
future<StatusOr<google::cloud::alloydb::v1::Cluster>>
121+
AlloyDBAdminClient::PromoteCluster(std::string const& name, Options opts) {
122+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
123+
google::cloud::alloydb::v1::PromoteClusterRequest request;
124+
request.set_name(name);
125+
return connection_->PromoteCluster(request);
126+
}
127+
128+
future<StatusOr<google::cloud::alloydb::v1::Cluster>>
129+
AlloyDBAdminClient::PromoteCluster(
130+
google::cloud::alloydb::v1::PromoteClusterRequest const& request,
131+
Options opts) {
132+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
133+
return connection_->PromoteCluster(request);
134+
}
135+
120136
future<StatusOr<google::cloud::alloydb::v1::Cluster>>
121137
AlloyDBAdminClient::RestoreCluster(
122138
google::cloud::alloydb::v1::RestoreClusterRequest const& request,
@@ -125,6 +141,27 @@ AlloyDBAdminClient::RestoreCluster(
125141
return connection_->RestoreCluster(request);
126142
}
127143

144+
future<StatusOr<google::cloud::alloydb::v1::Cluster>>
145+
AlloyDBAdminClient::CreateSecondaryCluster(
146+
std::string const& parent,
147+
google::cloud::alloydb::v1::Cluster const& cluster,
148+
std::string const& cluster_id, Options opts) {
149+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
150+
google::cloud::alloydb::v1::CreateSecondaryClusterRequest request;
151+
request.set_parent(parent);
152+
*request.mutable_cluster() = cluster;
153+
request.set_cluster_id(cluster_id);
154+
return connection_->CreateSecondaryCluster(request);
155+
}
156+
157+
future<StatusOr<google::cloud::alloydb::v1::Cluster>>
158+
AlloyDBAdminClient::CreateSecondaryCluster(
159+
google::cloud::alloydb::v1::CreateSecondaryClusterRequest const& request,
160+
Options opts) {
161+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
162+
return connection_->CreateSecondaryCluster(request);
163+
}
164+
128165
StreamRange<google::cloud::alloydb::v1::Instance>
129166
AlloyDBAdminClient::ListInstances(std::string const& parent, Options opts) {
130167
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
@@ -176,6 +213,27 @@ AlloyDBAdminClient::CreateInstance(
176213
return connection_->CreateInstance(request);
177214
}
178215

216+
future<StatusOr<google::cloud::alloydb::v1::Instance>>
217+
AlloyDBAdminClient::CreateSecondaryInstance(
218+
std::string const& parent,
219+
google::cloud::alloydb::v1::Instance const& instance,
220+
std::string const& instance_id, Options opts) {
221+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
222+
google::cloud::alloydb::v1::CreateSecondaryInstanceRequest request;
223+
request.set_parent(parent);
224+
*request.mutable_instance() = instance;
225+
request.set_instance_id(instance_id);
226+
return connection_->CreateSecondaryInstance(request);
227+
}
228+
229+
future<StatusOr<google::cloud::alloydb::v1::Instance>>
230+
AlloyDBAdminClient::CreateSecondaryInstance(
231+
google::cloud::alloydb::v1::CreateSecondaryInstanceRequest const& request,
232+
Options opts) {
233+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
234+
return connection_->CreateSecondaryInstance(request);
235+
}
236+
179237
future<StatusOr<google::cloud::alloydb::v1::BatchCreateInstancesResponse>>
180238
AlloyDBAdminClient::BatchCreateInstances(
181239
google::cloud::alloydb::v1::BatchCreateInstancesRequest const& request,
@@ -235,6 +293,25 @@ AlloyDBAdminClient::FailoverInstance(
235293
return connection_->FailoverInstance(request);
236294
}
237295

296+
future<StatusOr<google::cloud::alloydb::v1::Instance>>
297+
AlloyDBAdminClient::InjectFault(
298+
google::cloud::alloydb::v1::InjectFaultRequest::FaultType fault_type,
299+
std::string const& name, Options opts) {
300+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
301+
google::cloud::alloydb::v1::InjectFaultRequest request;
302+
request.set_fault_type(fault_type);
303+
request.set_name(name);
304+
return connection_->InjectFault(request);
305+
}
306+
307+
future<StatusOr<google::cloud::alloydb::v1::Instance>>
308+
AlloyDBAdminClient::InjectFault(
309+
google::cloud::alloydb::v1::InjectFaultRequest const& request,
310+
Options opts) {
311+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
312+
return connection_->InjectFault(request);
313+
}
314+
238315
future<StatusOr<google::cloud::alloydb::v1::Instance>>
239316
AlloyDBAdminClient::RestartInstance(std::string const& name, Options opts) {
240317
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
@@ -351,6 +428,83 @@ AlloyDBAdminClient::ListSupportedDatabaseFlags(
351428
return connection_->ListSupportedDatabaseFlags(std::move(request));
352429
}
353430

431+
StreamRange<google::cloud::alloydb::v1::User> AlloyDBAdminClient::ListUsers(
432+
std::string const& parent, Options opts) {
433+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
434+
google::cloud::alloydb::v1::ListUsersRequest request;
435+
request.set_parent(parent);
436+
return connection_->ListUsers(request);
437+
}
438+
439+
StreamRange<google::cloud::alloydb::v1::User> AlloyDBAdminClient::ListUsers(
440+
google::cloud::alloydb::v1::ListUsersRequest request, Options opts) {
441+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
442+
return connection_->ListUsers(std::move(request));
443+
}
444+
445+
StatusOr<google::cloud::alloydb::v1::User> AlloyDBAdminClient::GetUser(
446+
std::string const& name, Options opts) {
447+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
448+
google::cloud::alloydb::v1::GetUserRequest request;
449+
request.set_name(name);
450+
return connection_->GetUser(request);
451+
}
452+
453+
StatusOr<google::cloud::alloydb::v1::User> AlloyDBAdminClient::GetUser(
454+
google::cloud::alloydb::v1::GetUserRequest const& request, Options opts) {
455+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
456+
return connection_->GetUser(request);
457+
}
458+
459+
StatusOr<google::cloud::alloydb::v1::User> AlloyDBAdminClient::CreateUser(
460+
std::string const& parent, google::cloud::alloydb::v1::User const& user,
461+
std::string const& user_id, Options opts) {
462+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
463+
google::cloud::alloydb::v1::CreateUserRequest request;
464+
request.set_parent(parent);
465+
*request.mutable_user() = user;
466+
request.set_user_id(user_id);
467+
return connection_->CreateUser(request);
468+
}
469+
470+
StatusOr<google::cloud::alloydb::v1::User> AlloyDBAdminClient::CreateUser(
471+
google::cloud::alloydb::v1::CreateUserRequest const& request,
472+
Options opts) {
473+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
474+
return connection_->CreateUser(request);
475+
}
476+
477+
StatusOr<google::cloud::alloydb::v1::User> AlloyDBAdminClient::UpdateUser(
478+
google::cloud::alloydb::v1::User const& user,
479+
google::protobuf::FieldMask const& update_mask, Options opts) {
480+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
481+
google::cloud::alloydb::v1::UpdateUserRequest request;
482+
*request.mutable_user() = user;
483+
*request.mutable_update_mask() = update_mask;
484+
return connection_->UpdateUser(request);
485+
}
486+
487+
StatusOr<google::cloud::alloydb::v1::User> AlloyDBAdminClient::UpdateUser(
488+
google::cloud::alloydb::v1::UpdateUserRequest const& request,
489+
Options opts) {
490+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
491+
return connection_->UpdateUser(request);
492+
}
493+
494+
Status AlloyDBAdminClient::DeleteUser(std::string const& name, Options opts) {
495+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
496+
google::cloud::alloydb::v1::DeleteUserRequest request;
497+
request.set_name(name);
498+
return connection_->DeleteUser(request);
499+
}
500+
501+
Status AlloyDBAdminClient::DeleteUser(
502+
google::cloud::alloydb::v1::DeleteUserRequest const& request,
503+
Options opts) {
504+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
505+
return connection_->DeleteUser(request);
506+
}
507+
354508
GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
355509
} // namespace alloydb_v1
356510
} // namespace cloud

0 commit comments

Comments
 (0)