Skip to content

Commit bd06b12

Browse files
committed
add listoperation quickstart
1 parent ea81d87 commit bd06b12

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

google/cloud/datamigration/quickstart/quickstart.cc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ int main(int argc, char* argv[]) try {
5959
if (!gl_res) throw std::move(gl_res).status();
6060
std::cout << gl_res->DebugString() << "\n";
6161

62+
std::cout
63+
<< "------------------------TEST ListOperations------------------------"
64+
<< std::endl;
65+
66+
for (auto l :
67+
client.ListOperations("projects/" + std::string(argv[1]) + "/locations/" + argv[2] + "/operations", "")) {
68+
if (!l) throw std::move(l).status();
69+
std::cout << l->DebugString() << "\n";
70+
}
71+
6272
return 0;
6373
} catch (google::cloud::Status const& status) {
6474
std::cerr << "google::cloud::Status thrown: " << status << "\n";

0 commit comments

Comments
 (0)