Search in sources :

Example 1 with UpdateBucket

use of com.emc.sa.service.vipr.object.tasks.UpdateBucket in project coprhd-controller by CoprHD.

the class ObjectStorageUtils method editBucketResource.

public static void editBucketResource(URI bucketResourceId, Double softQuota, Double hardQuota, String retention) {
    String softQuotaSize = gbToQuotaSize(softQuota);
    String hardQuotaSize = gbToQuotaSize(hardQuota);
    Task<BucketRestRep> task = execute(new UpdateBucket(bucketResourceId, softQuotaSize, hardQuotaSize, retention));
    addAffectedResource(task);
}
Also used : UpdateBucket(com.emc.sa.service.vipr.object.tasks.UpdateBucket) BucketRestRep(com.emc.storageos.model.object.BucketRestRep)

Aggregations

UpdateBucket (com.emc.sa.service.vipr.object.tasks.UpdateBucket)1 BucketRestRep (com.emc.storageos.model.object.BucketRestRep)1