Interface AccountApi
@Beta
@Consumes("application/json")
public interface AccountApi
Provides access to the OpenStack Object Storage (Swift) Account API features.
Account metadata prefixed with
X-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
Modifier and TypeMethodDescriptionboolean
deleteMetadata
(Map<String, String> metadata) Deletes metadata from theAccount
.get()
Gets theAccount
.void
updateMetadata
(Map<String, String> metadata) Creates or updates theAccount
metadata.void
updateTemporaryUrlKey
(String temporaryUrlKey) Replaces the temporary URL key for theAccount
.
-
Method Details
-
get
Gets theAccount
.- Returns:
- The
Account
object.
-
updateMetadata
Creates or updates theAccount
metadata.- 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.
-
deleteMetadata
Deletes metadata from theAccount
.- Parameters:
metadata
- the metadata to delete.- Returns:
true
if the metadata was successfully deleted,false
if not.
-