diff --git a/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/HPCloudObjectStorageAsyncClient.java b/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/HPCloudObjectStorageAsyncClient.java index 63f7864724..0970c6c1c2 100644 --- a/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/HPCloudObjectStorageAsyncClient.java +++ b/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/HPCloudObjectStorageAsyncClient.java @@ -52,6 +52,7 @@ import org.jclouds.rest.annotations.RequestFilters; import org.jclouds.rest.annotations.ResponseParser; import org.jclouds.rest.annotations.SkipEncoding; +import com.google.common.annotations.Beta; import com.google.common.util.concurrent.ListenableFuture; /** @@ -73,6 +74,7 @@ public interface HPCloudObjectStorageAsyncClient extends CommonSwiftAsyncClient /** * @see HPCloudObjectStorageClient#listCDNContainers(ListCDNContainerOptions) */ + @Beta @GET @Consumes(MediaType.APPLICATION_JSON) @QueryParams(keys = "format", values = "json") @@ -83,6 +85,7 @@ public interface HPCloudObjectStorageAsyncClient extends CommonSwiftAsyncClient /** * @see HPCloudObjectStorageClient#getCDNMetadata(String) */ + @Beta @HEAD @ResponseParser(ParseContainerCDNMetadataFromHeaders.class) @ExceptionParser(ReturnNullOnContainerNotFound.class) @@ -93,6 +96,7 @@ public interface HPCloudObjectStorageAsyncClient extends CommonSwiftAsyncClient /** * @see HPCloudObjectStorageClient#getCDNMetadata(String) */ + @Beta @HEAD @ResponseParser(ParseContainerMetadataFromHeaders.class) @ExceptionParser(ReturnNullOnContainerNotFound.class) @@ -110,6 +114,7 @@ public interface HPCloudObjectStorageAsyncClient extends CommonSwiftAsyncClient /** * @see HPCloudObjectStorageClient#enableCDN(String, long) */ + @Beta @PUT @Path("/{container}") @Headers(keys = HPCloudObjectStorageHeaders.CDN_ENABLED, values = "True") @@ -121,6 +126,7 @@ public interface HPCloudObjectStorageAsyncClient extends CommonSwiftAsyncClient /** * @see HPCloudObjectStorageClient#enableCDN(String) */ + @Beta @PUT @Path("/{container}") @Headers(keys = HPCloudObjectStorageHeaders.CDN_ENABLED, values = "True") @@ -131,6 +137,7 @@ public interface HPCloudObjectStorageAsyncClient extends CommonSwiftAsyncClient /** * @see HPCloudObjectStorageClient#updateCDN(String, long) */ + @Beta @POST @Path("/{container}") @ResponseParser(ParseCDNUriFromHeaders.class) @@ -141,6 +148,7 @@ public interface HPCloudObjectStorageAsyncClient extends CommonSwiftAsyncClient /** * @see HPCloudObjectStorageClient#disableCDN(String) */ + @Beta @PUT @Path("/{container}") @Headers(keys = HPCloudObjectStorageHeaders.CDN_ENABLED, values = "False") diff --git a/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/HPCloudObjectStorageClient.java b/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/HPCloudObjectStorageClient.java index d8118a3e4a..069dbfd5fc 100644 --- a/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/HPCloudObjectStorageClient.java +++ b/providers/hpcloud-object-storage/src/main/java/org/jclouds/hpcloud/object/storage/HPCloudObjectStorageClient.java @@ -30,36 +30,44 @@ import org.jclouds.hpcloud.object.storage.options.ListCDNContainerOptions; import org.jclouds.openstack.swift.CommonSwiftClient; import org.jclouds.openstack.swift.domain.ContainerMetadata; +import com.google.common.annotations.Beta; import com.google.common.util.concurrent.ListenableFuture; /** * Provides synchronous access to HP Cloud Object Storage via the REST API. * - *
All commands return a ListenableFuture of the result. Any exceptions incurred - * during processing will be wrapped in an {@link ExecutionException} as documented in - * {@link ListenableFuture#get()}. + * + * All commands return a ListenableFuture of the result. Any exceptions incurred during processing + * will be wrapped in an {@link ExecutionException} as documented in {@link ListenableFuture#get()}. * * @see HPCloudObjectStorageClient - * @see HP Cloud Object Storage API + * @see HP Cloud Object + * Storage API * @author Jeremy Daggett */ @Timeout(duration = 120, timeUnit = TimeUnit.SECONDS) public interface HPCloudObjectStorageClient extends CommonSwiftClient { boolean createContainer(String container, CreateContainerOptions... options); - + + ContainerMetadata getContainerMetadata(String container); + + @Beta Set