class StoragePolicyRestController extends HerdBaseController {

    @RequestMapping(value = STORAGE_POLICIES_URI_PREFIX + "/namespaces/{namespace}/storagePolicyNames/{storagePolicyName}",
        method = RequestMethod.PUT,
        consumes = {"application/xml", "application/json"})
    @Secured(SecurityFunctions.FN_STORAGE_POLICIES_PUT)
    public StoragePolicy updateStoragePolicy(@PathVariable("namespace") String namespace, @PathVariable("storagePolicyName") String storagePolicyName,
        @RequestBody StoragePolicyUpdateRequest request)
    {
        return storagePolicyService.updateStoragePolicy(new StoragePolicyKey(namespace, storagePolicyName), request);
    }

}