15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_OBJECT_REWRITER_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_OBJECT_REWRITER_H
18 #include "google/cloud/storage/internal/raw_client.h"
20 #include "google/cloud/internal/invoke_result.h"
51 internal::RewriteObjectRequest request);
60 StatusOr<RewriteProgress> Iterate();
64 if (!last_error_.ok()) {
81 return ResultWithProgressCallback([](StatusOr<RewriteProgress>
const&) {});
101 typename std::enable_if<google::cloud::internal::is_invocable<
102 Functor, StatusOr<RewriteProgress>>::value,
105 while (!progress_.done) {
108 if (!last_error_.ok()) {
128 std::string
const&
token()
const {
return request_.rewrite_token(); }
131 std::shared_ptr<internal::RawClient> client_;
132 internal::RewriteObjectRequest request_;
142 #endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_STORAGE_OBJECT_REWRITER_H