This feature of the app helps changing the type of a resource that is present on the HydroShare database. The option to change it from private to public works very smoothly and it is required because the resources that are private are not very accessible to the general user at HydroShare.
To try this on your own, you can use the code snippet below, or download the full javascript file that is used in this demonstration.
from hs_restclient import HydroShare, HydroShareAuthBasic
auth = HydroShareAuthBasic(username='myusername', password='mypassword')
hs = HydroShare(auth=auth)
hs.setAccessRules('ID OF RESOURCE GOES HERE', public=True)