def __call__(self, id):
response = self._thehive.get_case(id)<EOL>if response.status_code == requests.codes.unauthorized:<EOL><INDENT>raise TheHiveException("<STR_LIT>")<EOL><DEDENT>if response.status_code == requests.codes.not_found:<EOL><INDENT>raise CaseException("<STR_LIT>".format(id))<EOL><DEDENT>if self.status_ok(response.status_code):<EOL><INDENT>data = response.json()<EOL>case = Case(json=data)<EOL>case.id = data.get('<STR_LIT:id>', None)<EOL>case.owner = data.get('<STR_LIT>', None)<EOL>case.caseId = data.get('<STR_LIT>', None)<EOL>case.status = data.get('<STR_LIT:status>', None)<EOL>case.createdAt = data.get('<STR_LIT>', None)<EOL>case.createdBy = data.get('<STR_LIT>', None)<EOL>case.updatedAt = data.get('<STR_LIT>', None)<EOL>case.updatedBy = data.get('<STR_LIT>', None)<EOL>return case<EOL><DEDENT>
Return an instance of Case with the given case ID.
:param id: ID of a case to retrieve.