You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ga...@apache.org on 2016/06/16 02:02:16 UTC

jclouds-labs-google git commit: JCLOUDS-1028: Configure idempotent methods

Repository: jclouds-labs-google
Updated Branches:
  refs/heads/master bcce4ed9d -> aaccebe73


JCLOUDS-1028: Configure idempotent methods

Enable for GCS.


Project: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/commit/aaccebe7
Tree: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/tree/aaccebe7
Diff: http://git-wip-us.apache.org/repos/asf/jclouds-labs-google/diff/aaccebe7

Branch: refs/heads/master
Commit: aaccebe731095990ea853f6c4e7618031c61afce
Parents: bcce4ed
Author: Andrew Gaul <ga...@apache.org>
Authored: Wed Jun 15 16:38:53 2016 -0700
Committer: Andrew Gaul <ga...@apache.org>
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-labs-google/blob/aaccebe7/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java
----------------------------------------------------------------------
diff --git a/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java b/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java
index 401b617..884edd2 100644
--- a/google-cloud-storage/src/main/java/org/jclouds/googlecloudstorage/GoogleCloudStorageApiMetadata.java
+++ b/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;
    }