Skip to content

Commit cb9f6e5

Browse files
authored
chore: update googleapis SHA circa 2023-11-01 (#13011)
Mostly to pickup `DirectedReadOptions` in Spanner `ExecuteSqlRequest` and `ReadRequest`.
1 parent 196fdf2 commit cb9f6e5

File tree

48 files changed

+1936
-487
lines changed

Some content is hidden

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

48 files changed

+1936
-487
lines changed

bazel/google_cloud_cpp_deps.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ def google_cloud_cpp_deps(name = None):
156156
http_archive,
157157
name = "com_google_googleapis",
158158
urls = [
159-
"https://storage.googleapis.com/cloud-cpp-community-archive/com_google_googleapis/3501865c978cfef301fb09c1980cab39cf871dba.tar.gz",
160-
"https://github.com/googleapis/googleapis/archive/3501865c978cfef301fb09c1980cab39cf871dba.tar.gz",
159+
"https://storage.googleapis.com/cloud-cpp-community-archive/com_google_googleapis/4a94b9e4403f958f65077f43863302c4ba4597da.tar.gz",
160+
"https://github.com/googleapis/googleapis/archive/4a94b9e4403f958f65077f43863302c4ba4597da.tar.gz",
161161
],
162-
sha256 = "acb6d16ded2b9a5a39e00ae25e6626460ea42f6d601443a5d2cc425be2abfc7c",
163-
strip_prefix = "googleapis-3501865c978cfef301fb09c1980cab39cf871dba",
162+
sha256 = "f192fc1ff3bccf8a02fd1f9115d01d154aab875da43276d55989fca65fbb07c8",
163+
strip_prefix = "googleapis-4a94b9e4403f958f65077f43863302c4ba4597da",
164164
build_file = Label("//bazel:googleapis.BUILD"),
165165
# Scaffolding for patching googleapis after download. For example:
166166
# 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-
"3501865c978cfef301fb09c1980cab39cf871dba")
30+
"4a94b9e4403f958f65077f43863302c4ba4597da")
3131
set(_GOOGLE_CLOUD_CPP_GOOGLEAPIS_SHA256
32-
"acb6d16ded2b9a5a39e00ae25e6626460ea42f6d601443a5d2cc425be2abfc7c")
32+
"f192fc1ff3bccf8a02fd1f9115d01d154aab875da43276d55989fca65fbb07c8")
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/artifactregistry/v1/artifact_registry_client.cc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,28 @@ ArtifactRegistryClient::DeleteVersion(
377377
return connection_->DeleteVersion(request);
378378
}
379379

380+
future<StatusOr<
381+
google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata>>
382+
ArtifactRegistryClient::BatchDeleteVersions(
383+
std::string const& parent, std::vector<std::string> const& names,
384+
Options opts) {
385+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
386+
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest request;
387+
request.set_parent(parent);
388+
*request.mutable_names() = {names.begin(), names.end()};
389+
return connection_->BatchDeleteVersions(request);
390+
}
391+
392+
future<StatusOr<
393+
google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata>>
394+
ArtifactRegistryClient::BatchDeleteVersions(
395+
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&
396+
request,
397+
Options opts) {
398+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
399+
return connection_->BatchDeleteVersions(request);
400+
}
401+
380402
StreamRange<google::devtools::artifactregistry::v1::File>
381403
ArtifactRegistryClient::ListFiles(std::string const& parent, Options opts) {
382404
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));

google/cloud/artifactregistry/v1/artifact_registry_client.h

Lines changed: 116 additions & 35 deletions
Large diffs are not rendered by default.

google/cloud/artifactregistry/v1/artifact_registry_connection.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,15 @@ ArtifactRegistryConnection::DeleteVersion(
190190
Status(StatusCode::kUnimplemented, "not implemented"));
191191
}
192192

193+
future<StatusOr<
194+
google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata>>
195+
ArtifactRegistryConnection::BatchDeleteVersions(
196+
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&) {
197+
return google::cloud::make_ready_future<StatusOr<
198+
google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata>>(
199+
Status(StatusCode::kUnimplemented, "not implemented"));
200+
}
201+
193202
StreamRange<google::devtools::artifactregistry::v1::File>
194203
ArtifactRegistryConnection::ListFiles(
195204
google::devtools::artifactregistry::v1::

google/cloud/artifactregistry/v1/artifact_registry_connection.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,12 @@ class ArtifactRegistryConnection {
287287
google::devtools::artifactregistry::v1::DeleteVersionRequest const&
288288
request);
289289

290+
virtual future<StatusOr<
291+
google::devtools::artifactregistry::v1::BatchDeleteVersionsMetadata>>
292+
BatchDeleteVersions(
293+
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&
294+
request);
295+
290296
virtual StreamRange<google::devtools::artifactregistry::v1::File> ListFiles(
291297
google::devtools::artifactregistry::v1::ListFilesRequest request);
292298

google/cloud/artifactregistry/v1/artifact_registry_connection_idempotency_policy.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ Idempotency ArtifactRegistryConnectionIdempotencyPolicy::DeleteVersion(
143143
return Idempotency::kNonIdempotent;
144144
}
145145

146+
Idempotency ArtifactRegistryConnectionIdempotencyPolicy::BatchDeleteVersions(
147+
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&) {
148+
return Idempotency::kNonIdempotent;
149+
}
150+
146151
Idempotency ArtifactRegistryConnectionIdempotencyPolicy::ListFiles(
147152
google::devtools::artifactregistry::v1::ListFilesRequest) { // NOLINT
148153
return Idempotency::kIdempotent;

google/cloud/artifactregistry/v1/artifact_registry_connection_idempotency_policy.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ class ArtifactRegistryConnectionIdempotencyPolicy {
114114
google::devtools::artifactregistry::v1::DeleteVersionRequest const&
115115
request);
116116

117+
virtual google::cloud::Idempotency BatchDeleteVersions(
118+
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&
119+
request);
120+
117121
virtual google::cloud::Idempotency ListFiles(
118122
google::devtools::artifactregistry::v1::ListFilesRequest request);
119123

google/cloud/artifactregistry/v1/internal/artifact_registry_auth_decorator.cc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,27 @@ ArtifactRegistryAuth::AsyncDeleteVersion(
298298
});
299299
}
300300

301+
future<StatusOr<google::longrunning::Operation>>
302+
ArtifactRegistryAuth::AsyncBatchDeleteVersions(
303+
google::cloud::CompletionQueue& cq,
304+
std::shared_ptr<grpc::ClientContext> context,
305+
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&
306+
request) {
307+
using ReturnType = StatusOr<google::longrunning::Operation>;
308+
auto& child = child_;
309+
return auth_->AsyncConfigureContext(std::move(context))
310+
.then([cq, child,
311+
request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
312+
f) mutable {
313+
auto context = f.get();
314+
if (!context) {
315+
return make_ready_future(ReturnType(std::move(context).status()));
316+
}
317+
return child->AsyncBatchDeleteVersions(cq, *std::move(context),
318+
request);
319+
});
320+
}
321+
301322
StatusOr<google::devtools::artifactregistry::v1::ListFilesResponse>
302323
ArtifactRegistryAuth::ListFiles(
303324
grpc::ClientContext& context,

google/cloud/artifactregistry/v1/internal/artifact_registry_auth_decorator.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,12 @@ class ArtifactRegistryAuth : public ArtifactRegistryStub {
159159
google::devtools::artifactregistry::v1::DeleteVersionRequest const&
160160
request) override;
161161

162+
future<StatusOr<google::longrunning::Operation>> AsyncBatchDeleteVersions(
163+
google::cloud::CompletionQueue& cq,
164+
std::shared_ptr<grpc::ClientContext> context,
165+
google::devtools::artifactregistry::v1::BatchDeleteVersionsRequest const&
166+
request) override;
167+
162168
StatusOr<google::devtools::artifactregistry::v1::ListFilesResponse> ListFiles(
163169
grpc::ClientContext& context,
164170
google::devtools::artifactregistry::v1::ListFilesRequest const& request)

0 commit comments

Comments
 (0)