@exc.on_http_error(exc.GitlabGetError)<EOL><INDENT>def get(self, id, lazy=False, **kwargs):<DEDENT>
if not isinstance(id, int):<EOL><INDENT>id = id.replace('<STR_LIT:/>', '<STR_LIT>')<EOL><DEDENT>path = '<STR_LIT>' % (self.path, id)<EOL>if lazy is True:<EOL><INDENT>return self._obj_cls(self, {self._obj_cls._id_attr: id})<EOL><DEDENT>server_data = self.gitlab.http_get(path, **kwargs)<EOL>return self._obj_cls(self, server_data)<EOL>
Retrieve a single object.

        Args:
            id (int or str): ID of the object to retrieve
            lazy (bool): If True, don't request the server, but create a
                         shallow object giving access to the managers. This is
                         useful if you want to avoid useless calls to the API.
            **kwargs: Extra options to send to the server (e.g. sudo)

        Returns:
            object: The generated RESTObject.

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabGetError: If the server cannot perform the request