Skip to content

Commit 5deb225

Browse files
committed
Regenerate libraries
1 parent 630b156 commit 5deb225

31 files changed

+1409
-505
lines changed

google/cloud/artifactregistry/v1/artifact_registry_client.cc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,31 @@ ArtifactRegistryClient::DeleteAttachment(
10931093
return connection_->DeleteAttachment(operation);
10941094
}
10951095

1096+
future<StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>
1097+
ArtifactRegistryClient::ExportArtifact(
1098+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
1099+
request,
1100+
Options opts) {
1101+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
1102+
return connection_->ExportArtifact(request);
1103+
}
1104+
1105+
StatusOr<google::longrunning::Operation> ArtifactRegistryClient::ExportArtifact(
1106+
NoAwaitTag,
1107+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
1108+
request,
1109+
Options opts) {
1110+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
1111+
return connection_->ExportArtifact(NoAwaitTag{}, request);
1112+
}
1113+
1114+
future<StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>
1115+
ArtifactRegistryClient::ExportArtifact(
1116+
google::longrunning::Operation const& operation, Options opts) {
1117+
internal::OptionsSpan span(internal::MergeOptions(std::move(opts), options_));
1118+
return connection_->ExportArtifact(operation);
1119+
}
1120+
10961121
StreamRange<google::cloud::location::Location>
10971122
ArtifactRegistryClient::ListLocations(
10981123
google::cloud::location::ListLocationsRequest request, Options opts) {

google/cloud/artifactregistry/v1/artifact_registry_client.h

Lines changed: 82 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ class ArtifactRegistryClient {
11331133
/// [`StatusOr`]: @ref google::cloud::StatusOr
11341134
/// [`Status`]: @ref google::cloud::Status
11351135
/// [google.devtools.artifactregistry.v1.DeleteRepositoryRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/repository.proto#L757}
1136-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
1136+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
11371137
///
11381138
// clang-format on
11391139
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -1186,7 +1186,7 @@ class ArtifactRegistryClient {
11861186
/// [`StatusOr`]: @ref google::cloud::StatusOr
11871187
/// [`Status`]: @ref google::cloud::Status
11881188
/// [google.devtools.artifactregistry.v1.DeleteRepositoryRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/repository.proto#L757}
1189-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
1189+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
11901190
///
11911191
// clang-format on
11921192
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -1382,7 +1382,7 @@ class ArtifactRegistryClient {
13821382
/// [`StatusOr`]: @ref google::cloud::StatusOr
13831383
/// [`Status`]: @ref google::cloud::Status
13841384
/// [google.devtools.artifactregistry.v1.DeletePackageRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/package.proto#L147}
1385-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
1385+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
13861386
///
13871387
// clang-format on
13881388
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -1434,7 +1434,7 @@ class ArtifactRegistryClient {
14341434
/// [`StatusOr`]: @ref google::cloud::StatusOr
14351435
/// [`Status`]: @ref google::cloud::Status
14361436
/// [google.devtools.artifactregistry.v1.DeletePackageRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/package.proto#L147}
1437-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
1437+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
14381438
///
14391439
// clang-format on
14401440
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -1630,7 +1630,7 @@ class ArtifactRegistryClient {
16301630
/// [`StatusOr`]: @ref google::cloud::StatusOr
16311631
/// [`Status`]: @ref google::cloud::Status
16321632
/// [google.devtools.artifactregistry.v1.DeleteVersionRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/version.proto#L173}
1633-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
1633+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
16341634
///
16351635
// clang-format on
16361636
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -1682,7 +1682,7 @@ class ArtifactRegistryClient {
16821682
/// [`StatusOr`]: @ref google::cloud::StatusOr
16831683
/// [`Status`]: @ref google::cloud::Status
16841684
/// [google.devtools.artifactregistry.v1.DeleteVersionRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/version.proto#L173}
1685-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
1685+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
16861686
///
16871687
// clang-format on
16881688
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -2067,7 +2067,7 @@ class ArtifactRegistryClient {
20672067
/// [`StatusOr`]: @ref google::cloud::StatusOr
20682068
/// [`Status`]: @ref google::cloud::Status
20692069
/// [google.devtools.artifactregistry.v1.DeleteFileRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/file.proto#L186}
2070-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
2070+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
20712071
///
20722072
// clang-format on
20732073
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -2121,7 +2121,7 @@ class ArtifactRegistryClient {
21212121
/// [`StatusOr`]: @ref google::cloud::StatusOr
21222122
/// [`Status`]: @ref google::cloud::Status
21232123
/// [google.devtools.artifactregistry.v1.DeleteFileRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/file.proto#L186}
2124-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
2124+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
21252125
///
21262126
// clang-format on
21272127
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -3495,7 +3495,7 @@ class ArtifactRegistryClient {
34953495
/// [`StatusOr`]: @ref google::cloud::StatusOr
34963496
/// [`Status`]: @ref google::cloud::Status
34973497
/// [google.devtools.artifactregistry.v1.DeleteAttachmentRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/attachment.proto#L152}
3498-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
3498+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
34993499
///
35003500
// clang-format on
35013501
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -3548,7 +3548,7 @@ class ArtifactRegistryClient {
35483548
/// [`StatusOr`]: @ref google::cloud::StatusOr
35493549
/// [`Status`]: @ref google::cloud::Status
35503550
/// [google.devtools.artifactregistry.v1.DeleteAttachmentRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/attachment.proto#L152}
3551-
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L547}
3551+
/// [google.devtools.artifactregistry.v1.OperationMetadata]: @googleapis_reference_link{google/devtools/artifactregistry/v1/service.proto#L561}
35523552
///
35533553
// clang-format on
35543554
future<StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
@@ -3587,6 +3587,78 @@ class ArtifactRegistryClient {
35873587
DeleteAttachment(google::longrunning::Operation const& operation,
35883588
Options opts = {});
35893589

3590+
// clang-format off
3591+
///
3592+
/// Exports an artifact.
3593+
///
3594+
/// @param request Unary RPCs, such as the one wrapped by this
3595+
/// function, receive a single `request` proto message which includes all
3596+
/// the inputs for the RPC. In this case, the proto message is a
3597+
/// [google.devtools.artifactregistry.v1.ExportArtifactRequest].
3598+
/// Proto messages are converted to C++ classes by Protobuf, using the
3599+
/// [Protobuf mapping rules].
3600+
/// @param opts Optional. Override the class-level options, such as retry and
3601+
/// backoff policies.
3602+
/// @return A [`future`] that becomes satisfied when the LRO
3603+
/// ([Long Running Operation]) completes or the polling policy in effect
3604+
/// for this call is exhausted. The future is satisfied with an error if
3605+
/// the LRO completes with an error or the polling policy is exhausted.
3606+
/// In this case the [`StatusOr`] returned by the future contains the
3607+
/// error. If the LRO completes successfully the value of the future
3608+
/// contains the LRO's result. For this RPC the result is a
3609+
/// [google.devtools.artifactregistry.v1.ExportArtifactResponse] proto message.
3610+
/// The C++ class representing this message is created by Protobuf, using
3611+
/// the [Protobuf mapping rules].
3612+
///
3613+
/// [Protobuf mapping rules]: https://protobuf.dev/reference/cpp/cpp-generated/
3614+
/// [input iterator requirements]: https://en.cppreference.com/w/cpp/named_req/InputIterator
3615+
/// [Long Running Operation]: https://google.aip.dev/151
3616+
/// [`std::string`]: https://en.cppreference.com/w/cpp/string/basic_string
3617+
/// [`future`]: @ref google::cloud::future
3618+
/// [`StatusOr`]: @ref google::cloud::StatusOr
3619+
/// [`Status`]: @ref google::cloud::Status
3620+
/// [google.devtools.artifactregistry.v1.ExportArtifactRequest]: @googleapis_reference_link{google/devtools/artifactregistry/v1/export.proto#L33}
3621+
/// [google.devtools.artifactregistry.v1.ExportArtifactResponse]: @googleapis_reference_link{google/devtools/artifactregistry/v1/export.proto#L70}
3622+
///
3623+
// clang-format on
3624+
future<
3625+
StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>
3626+
ExportArtifact(
3627+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
3628+
request,
3629+
Options opts = {});
3630+
3631+
// clang-format off
3632+
///
3633+
/// @copybrief ExportArtifact
3634+
///
3635+
/// Specifying the [`NoAwaitTag`] immediately returns the
3636+
/// [`google::longrunning::Operation`] that corresponds to the Long Running
3637+
/// Operation that has been started. No polling for operation status occurs.
3638+
///
3639+
/// [`NoAwaitTag`]: @ref google::cloud::NoAwaitTag
3640+
///
3641+
// clang-format on
3642+
StatusOr<google::longrunning::Operation> ExportArtifact(
3643+
NoAwaitTag,
3644+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
3645+
request,
3646+
Options opts = {});
3647+
3648+
// clang-format off
3649+
///
3650+
/// @copybrief ExportArtifact
3651+
///
3652+
/// This method accepts a `google::longrunning::Operation` that corresponds
3653+
/// to a previously started Long Running Operation (LRO) and polls the status
3654+
/// of the LRO in the background.
3655+
///
3656+
// clang-format on
3657+
future<
3658+
StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>
3659+
ExportArtifact(google::longrunning::Operation const& operation,
3660+
Options opts = {});
3661+
35903662
// clang-format off
35913663
///
35923664
/// Lists information about the supported locations for this service.

google/cloud/artifactregistry/v1/artifact_registry_connection.cc

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,30 @@ ArtifactRegistryConnection::DeleteAttachment(
535535
Status(StatusCode::kUnimplemented, "not implemented"));
536536
}
537537

538+
future<StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>
539+
ArtifactRegistryConnection::ExportArtifact(
540+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&) {
541+
return google::cloud::make_ready_future<
542+
StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>(
543+
Status(StatusCode::kUnimplemented, "not implemented"));
544+
}
545+
546+
StatusOr<google::longrunning::Operation>
547+
ArtifactRegistryConnection::ExportArtifact(
548+
NoAwaitTag,
549+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&) {
550+
return StatusOr<google::longrunning::Operation>(
551+
Status(StatusCode::kUnimplemented, "not implemented"));
552+
}
553+
554+
future<StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>
555+
ArtifactRegistryConnection::ExportArtifact(
556+
google::longrunning::Operation const&) {
557+
return google::cloud::make_ready_future<
558+
StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>(
559+
Status(StatusCode::kUnimplemented, "not implemented"));
560+
}
561+
538562
StreamRange<google::cloud::location::Location>
539563
ArtifactRegistryConnection::ListLocations(
540564
google::cloud::location::

google/cloud/artifactregistry/v1/artifact_registry_connection.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,21 @@ class ArtifactRegistryConnection {
483483
StatusOr<google::devtools::artifactregistry::v1::OperationMetadata>>
484484
DeleteAttachment(google::longrunning::Operation const& operation);
485485

486+
virtual future<
487+
StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>
488+
ExportArtifact(
489+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
490+
request);
491+
492+
virtual StatusOr<google::longrunning::Operation> ExportArtifact(
493+
NoAwaitTag,
494+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
495+
request);
496+
497+
virtual future<
498+
StatusOr<google::devtools::artifactregistry::v1::ExportArtifactResponse>>
499+
ExportArtifact(google::longrunning::Operation const& operation);
500+
486501
virtual StreamRange<google::cloud::location::Location> ListLocations(
487502
google::cloud::location::ListLocationsRequest request);
488503

google/cloud/artifactregistry/v1/artifact_registry_connection_idempotency_policy.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,11 @@ Idempotency ArtifactRegistryConnectionIdempotencyPolicy::DeleteAttachment(
285285
return Idempotency::kNonIdempotent;
286286
}
287287

288+
Idempotency ArtifactRegistryConnectionIdempotencyPolicy::ExportArtifact(
289+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&) {
290+
return Idempotency::kNonIdempotent;
291+
}
292+
288293
Idempotency ArtifactRegistryConnectionIdempotencyPolicy::ListLocations(
289294
google::cloud::location::ListLocationsRequest) { // NOLINT
290295
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
@@ -210,6 +210,10 @@ class ArtifactRegistryConnectionIdempotencyPolicy {
210210
google::devtools::artifactregistry::v1::DeleteAttachmentRequest const&
211211
request);
212212

213+
virtual google::cloud::Idempotency ExportArtifact(
214+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
215+
request);
216+
213217
virtual google::cloud::Idempotency ListLocations(
214218
google::cloud::location::ListLocationsRequest request);
215219

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,36 @@ StatusOr<google::longrunning::Operation> ArtifactRegistryAuth::DeleteAttachment(
700700
return child_->DeleteAttachment(context, options, request);
701701
}
702702

703+
future<StatusOr<google::longrunning::Operation>>
704+
ArtifactRegistryAuth::AsyncExportArtifact(
705+
google::cloud::CompletionQueue& cq,
706+
std::shared_ptr<grpc::ClientContext> context,
707+
google::cloud::internal::ImmutableOptions options,
708+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
709+
request) {
710+
using ReturnType = StatusOr<google::longrunning::Operation>;
711+
return auth_->AsyncConfigureContext(std::move(context))
712+
.then([cq, child = child_, options = std::move(options),
713+
request](future<StatusOr<std::shared_ptr<grpc::ClientContext>>>
714+
f) mutable {
715+
auto context = f.get();
716+
if (!context) {
717+
return make_ready_future(ReturnType(std::move(context).status()));
718+
}
719+
return child->AsyncExportArtifact(cq, *std::move(context),
720+
std::move(options), request);
721+
});
722+
}
723+
724+
StatusOr<google::longrunning::Operation> ArtifactRegistryAuth::ExportArtifact(
725+
grpc::ClientContext& context, Options options,
726+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
727+
request) {
728+
auto status = auth_->ConfigureContext(context);
729+
if (!status.ok()) return status;
730+
return child_->ExportArtifact(context, options, request);
731+
}
732+
703733
StatusOr<google::cloud::location::ListLocationsResponse>
704734
ArtifactRegistryAuth::ListLocations(
705735
grpc::ClientContext& context, Options const& options,

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,18 @@ class ArtifactRegistryAuth : public ArtifactRegistryStub {
364364
google::devtools::artifactregistry::v1::DeleteAttachmentRequest const&
365365
request) override;
366366

367+
future<StatusOr<google::longrunning::Operation>> AsyncExportArtifact(
368+
google::cloud::CompletionQueue& cq,
369+
std::shared_ptr<grpc::ClientContext> context,
370+
google::cloud::internal::ImmutableOptions options,
371+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
372+
request) override;
373+
374+
StatusOr<google::longrunning::Operation> ExportArtifact(
375+
grpc::ClientContext& context, Options options,
376+
google::devtools::artifactregistry::v1::ExportArtifactRequest const&
377+
request) override;
378+
367379
StatusOr<google::cloud::location::ListLocationsResponse> ListLocations(
368380
grpc::ClientContext& context, Options const& options,
369381
google::cloud::location::ListLocationsRequest const& request) override;

0 commit comments

Comments
 (0)