Beispiel #1
0
inline Resource::ReservationInfo createReservationInfo(
    const std::string& principal)
{
  Resource::ReservationInfo info;
  info.set_principal(principal);
  return info;
}
Beispiel #2
0
inline Resource::ReservationInfo createReservationInfo(
    const Option<std::string>& principal = None())
{
  Resource::ReservationInfo info;

  if (principal.isSome()) {
    info.set_principal(principal.get());
  }

  return info;
}