15 #include "google/cloud/spanner/backup.h"
25 : instance_
(std::move(instance)
), backup_id_(std::move(backup_id)) {}
32 return a.instance_
== b.instance_ && a.backup_id_ == b.backup_id_;
37 std::ostream& operator<<(std::ostream& os,
Backup const& bu) {
42 std::regex re(
"projects/([^/]+)/instances/([^/]+)/backups/([^/]+)");
44 if (!std::regex_match(full_name, matches, re)) {
46 "Improperly formatted Backup: " + full_name
);
49 std::move(matches[3])
);