Interface AccountApi
-
@Beta @Consumes("application/json") public interface AccountApiProvides access to the OpenStack Object Storage (Swift) Account API features. Account metadata prefixed withX-Account-Meta-will be converted appropriately using a binder/parser. This API is new to jclouds and hence is in Beta. That means we need people to use it and give us feedback. Based on that feedback, minor changes to the interfaces may happen. This code will replace org.jclouds.openstack.swift.SwiftClient in jclouds 2.0 and it is recommended you adopt it sooner than later.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleandeleteMetadata(Map<String,String> metadata)Deletes metadata from theAccount.Accountget()Gets theAccount.voidupdateMetadata(Map<String,String> metadata)Creates or updates theAccountmetadata.voidupdateTemporaryUrlKey(String temporaryUrlKey)Replaces the temporary URL key for theAccount.
-
-
-
Method Detail
-
updateMetadata
@Named("account:updateMetadata") @POST void updateMetadata(Map<String,String> metadata)Creates or updates theAccountmetadata.- Parameters:
metadata- the metadata to create or update.
-
updateTemporaryUrlKey
@Named("account:updateTemporaryUrlKey") @POST void updateTemporaryUrlKey(@HeaderParam("X-Account-Meta-Temp-Url-Key") String temporaryUrlKey)Replaces the temporary URL key for theAccount.- Parameters:
temporaryUrlKey- the temporary URL key to update.
-
-