bpy.ops.object.hide_view_set() is the equivalent of pressing ‘H’ or the eye icon in the outliner to toggle the temporary viewport visiblity of an object.
It is unclear what this operator does under the hood, and there doesn’t seem to be a way to retrieve / unhide object through python when they have been hidden using this operator. The API hasn’t been useful.
For the record, it’s not the
object.hide_viewport or any of the
object.hide_*** member properties found on the object itself. These control the other restriction properties.