def __iter__(self, *args, **kwargs):
<EOL>logsUrl = "<STR_LIT>" % (self.typeId, self.deviceId)<EOL>r = self._apiClient.get(logsUrl)<EOL>if r.status_code == <NUM_LIT:200>:<EOL><INDENT>logArray = []<EOL>for logEntry in r.json():<EOL><INDENT>logArray.append(DeviceLog(**logEntry))<EOL><DEDENT>return iter(logArray)<EOL><DEDENT>else:<EOL><INDENT>raise ApiException(r)<EOL><DEDENT>
Iterate through all devices