Soil Nailing - Rock Bolt or Pile

Good morning. I have seen some people model a soil nailing problem using embedded beam with pile behavior and others with rock bolt behavior. In which cases should a soil nailing problem be modeled considering a pile behavior for embedded beams?