def __getitem__(self, key):
url = "<STR_LIT>" % (key)<EOL>r = self._apiClient.get(url)<EOL>if r.status_code == <NUM_LIT:200>:<EOL><INDENT>return DeviceType(apiClient=self._apiClient, **r.json())<EOL><DEDENT>elif r.status_code == <NUM_LIT>:<EOL><INDENT>self.__missing__(key)<EOL><DEDENT>else:<EOL><INDENT>raise ApiException(r)<EOL><DEDENT>
get a device type from the registry