twonote / radosgw-admin4j

A Ceph Object Storage Admin SDK / Client Library for Java ✨🍰✨
https://twonote.github.io/radosgw-admin4j
Apache License 2.0
61 stars 33 forks source link

Add overload methods which accept models #32

Open hrchu opened 4 years ago

hrchu commented 4 years ago

Currently, we can set options by, for example, rgwAdmin.setUserQuota(java.lang.String userId, long maxObjects, long maxSizeKB)

Add an overloaded method such as rgwAdmin.setUserQuota(Quota quota), so that user can :

Quota quota = rgwAdm.getUserQuota(userId)
quota.setMaxObjects = 5566
rgwAdm.setUserQuota(quota)

All "set" methods listed in https://www.javadoc.io/static/io.github.twonote/radosgw-admin4j/2.0.2/org/twonote/rgwadmin4j/RgwAdmin.html are needed to be overloaded.