How to hide a certain object in blender 2.8? hide_viewport seems to be the old hide option but how to toggle the "eye icon" like in prior versions?

The 'visibility property' is not exposed to bpy at the moment as confirmed with medium priority (2. March 2019 - https://developer.blender.org/T62062). 

From wiki.blender.org:

obj = bpy.context.object
print("Object %s:\n\thide in viewport: %r\n\thide in render: %r\n\tis selectable: %r\n" %
      (obj.name, obj.hide_viewport, obj.hide_render, not obj.hide_select))


Is there any way to replace the old 'hide option' at the moment?
In final 2.80 you can do it:
obj.hide_set(state)

API