def _SetBaseOpParams(src, defcomment, dst):
  if hasattr(src, "debug_level"):
    dst.debug_level = src.debug_level

  if (getattr(dst, "priority", None) is None and
      hasattr(src, "priority")):
    dst.priority = src.priority

  if not getattr(dst, opcodes_base.COMMENT_ATTR, None):
    dst.comment = defcomment

  if hasattr(src, constants.OPCODE_REASON):
    dst.reason = list(getattr(dst, constants.OPCODE_REASON, []))
    dst.reason.extend(getattr(src, constants.OPCODE_REASON, []))
Creates a Freshbooks client for a freshbooks domain, using
dataset/ETHPy150Open ganeti/ganeti/lib/mcpu.py/_SetBaseOpParams--crossover with--dataset/ETHPy150Open freshbooks/refreshbooks/refreshbooks/api.py/OAuthClient