def stream(self, id, offset, origin, path="<STR_LIT:/>"):
params = {<EOL>"<STR_LIT:path>": path,<EOL>"<STR_LIT>": offset,<EOL>"<STR_LIT>": origin<EOL>}<EOL>return self.request(id, params=params, method="<STR_LIT>").text<EOL>
This endpoint streams the contents of a file in an allocation directory.

            https://www.nomadproject.io/api/client.html#stream-file

            arguments:
              - id: (str) allocation_id required
              - offset: (int) required
              - origin: (str) either start|end
              - path: (str) optional
            returns: (str) text
            raises:
              - nomad.api.exceptions.BaseNomadException
              - nomad.api.exceptions.BadRequestNomadException