def __get_typedef_by_guid(self, guid, typedef_class): path_type = self.__get_path_for_type(typedef_class) api = API(TypeDefClient.GET_BY_GUID_TEMPLATE, HTTPMethod.GET, HTTPStatus.OK) return self.client.call_api( api.format_path({ 'path_type': path_type, 'guid': guid }), typedef_class)
def __get_typedef_by_name(self, name, typedef_class): path_type = self.__get_path_for_type(typedef_class) api = API(TypeDefClient.GET_BY_NAME_TEMPLATE, HTTPMethod.GET, HTTPStatus.OK) return self.client.call_api( api.format_path({ 'path_type': path_type, 'name': name }), typedef_class)