def share_library(repo_id,user,group_id,permission="rw",share_type="group")
      put_share_library(repo_id,share_type,user,group_id,permission)
    end
def share_library(repo_id,user,group_id,permission="rw",share_type="group")
      put_share_library(repo_id,share_type,user,group_id,permission)
    end
TODO need test not working !!