JCLOUDS-1028: Configure idempotent methods Enable for GCS.
Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/230448a4 Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/230448a4 Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/230448a4 Branch: refs/heads/master Commit: 230448a454f1be583f70af48846b7a9c1c6b58c0 Parents: 5baa49d Author: Andrew Gaul <[email protected]> Authored: Wed Jun 15 16:38:53 2016 -0700 Committer: Andrew Gaul <[email protected]> Committed: Wed Jun 15 16:38:53 2016 -0700 ---------------------------------------------------------------------- .../jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/jclouds/blob/230448a4/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java ---------------------------------------------------------------------- diff --git a/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java b/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java index 401b617..884edd2 100644 --- a/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java +++ b/providers/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java @@ -16,6 +16,7 @@ */ package org.jclouds.googlecloudstorage; +import static org.jclouds.Constants.PROPERTY_IDEMPOTENT_METHODS; import static org.jclouds.Constants.PROPERTY_SESSION_INTERVAL; import static org.jclouds.googlecloudstorage.reference.GoogleCloudStorageConstants.OPERATION_COMPLETE_INTERVAL; import static org.jclouds.googlecloudstorage.reference.GoogleCloudStorageConstants.OPERATION_COMPLETE_TIMEOUT; @@ -60,6 +61,7 @@ public class GoogleCloudStorageApiMetadata extends BaseHttpApiMetadata<GoogleClo properties.put(PROPERTY_SESSION_INTERVAL, 3600); properties.put(OPERATION_COMPLETE_INTERVAL, 2000); properties.put(OPERATION_COMPLETE_TIMEOUT, 600000); + properties.setProperty(PROPERTY_IDEMPOTENT_METHODS, "DELETE,GET,HEAD,OPTIONS,POST,PUT"); return properties; }
