Ejemplo n.º 1
0
 Object(const authorization::Object& object)
   : value(object.has_value() ? &object.value() : nullptr),
     framework_info(
         object.has_framework_info() ? &object.framework_info() : nullptr),
     task(object.has_task() ? &object.task() : nullptr),
     task_info(object.has_task_info() ? &object.task_info() : nullptr),
     executor_info(
         object.has_executor_info() ? &object.executor_info() : nullptr) {}
Ejemplo n.º 2
0
 Object(const authorization::Object& object)
   : value(object.has_value() ? &object.value() : nullptr),
     framework_info(
         object.has_framework_info() ? &object.framework_info() : nullptr),
     task(object.has_task() ? &object.task() : nullptr),
     task_info(object.has_task_info() ? &object.task_info() : nullptr),
     executor_info(
         object.has_executor_info() ? &object.executor_info() : nullptr),
     quota_info(object.has_quota_info() ? &object.quota_info() : nullptr),
     weight_info(object.has_weight_info() ? &object.weight_info() : nullptr),
     resource(object.has_resource() ? &object.resource() : nullptr) {}