jclouds-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject [1/4] jclouds git commit: JCLOUDS-1452: Remove Authorization.minimumPartSize
Date Tue, 01 Jan 2019 03:42:14 GMT
Repository: jclouds
Updated Branches:
  refs/heads/master d621edd79 -> 9524383e4


JCLOUDS-1452: Remove Authorization.minimumPartSize

Superseded by absoluteMinimumPartSize and recommendedPartSize.


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

Branch: refs/heads/master
Commit: a0f496e5ec2a36b901e8331cde658d98dfffede1
Parents: 750809f
Author: Andrew Gaul <gaul@apache.org>
Authored: Fri Sep 28 13:56:16 2018 -0700
Committer: Andrew Gaul <gaul@apache.org>
Committed: Mon Dec 31 18:47:38 2018 -0800

----------------------------------------------------------------------
 .../src/main/java/org/jclouds/b2/domain/Authorization.java   | 8 +++-----
 .../b2/src/test/resources/authorize_account_response.json    | 3 ++-
 2 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/a0f496e5/providers/b2/src/main/java/org/jclouds/b2/domain/Authorization.java
----------------------------------------------------------------------
diff --git a/providers/b2/src/main/java/org/jclouds/b2/domain/Authorization.java b/providers/b2/src/main/java/org/jclouds/b2/domain/Authorization.java
index 9f5b6fc..a5a46a8 100644
--- a/providers/b2/src/main/java/org/jclouds/b2/domain/Authorization.java
+++ b/providers/b2/src/main/java/org/jclouds/b2/domain/Authorization.java
@@ -26,13 +26,11 @@ public abstract class Authorization {
    public abstract String apiUrl();
    public abstract String authorizationToken();
    public abstract String downloadUrl();
-   @Deprecated
-   public abstract long minimumPartSize();
    public abstract long absoluteMinimumPartSize();
    public abstract long recommendedPartSize();
 
-   @SerializedNames({"accountId", "apiUrl", "authorizationToken", "downloadUrl", "minimumPartSize",
"absoluteMinimumPartSize", "recommendedPartSize"})
-   public static Authorization create(String accountId, String apiUrl, String authorizationToken,
String downloadUrl, long minimumPartSize, long absoluteMinimumPartSize, long recommendedPartSize)
{
-      return new AutoValue_Authorization(accountId, apiUrl, authorizationToken, downloadUrl,
minimumPartSize, absoluteMinimumPartSize, recommendedPartSize);
+   @SerializedNames({"accountId", "apiUrl", "authorizationToken", "downloadUrl", "absoluteMinimumPartSize",
"recommendedPartSize"})
+   public static Authorization create(String accountId, String apiUrl, String authorizationToken,
String downloadUrl, long absoluteMinimumPartSize, long recommendedPartSize) {
+      return new AutoValue_Authorization(accountId, apiUrl, authorizationToken, downloadUrl,
absoluteMinimumPartSize, recommendedPartSize);
    }
 }

http://git-wip-us.apache.org/repos/asf/jclouds/blob/a0f496e5/providers/b2/src/test/resources/authorize_account_response.json
----------------------------------------------------------------------
diff --git a/providers/b2/src/test/resources/authorize_account_response.json b/providers/b2/src/test/resources/authorize_account_response.json
index ba02ea7..b2145f9 100644
--- a/providers/b2/src/test/resources/authorize_account_response.json
+++ b/providers/b2/src/test/resources/authorize_account_response.json
@@ -1,7 +1,8 @@
 {
+    "absoluteMinimumPartSize": 5000000,
     "accountId": "YOUR_ACCOUNT_ID",
     "apiUrl": "http://localhost",
     "authorizationToken": "2_20150807002553_443e98bf57f978fa58c284f8_24d25d99772e3ba927778b39c9b0198f412d2163_acct",
     "downloadUrl": "http://localhost",
-    "minimumPartSize": 100000000
+    "recommendedPartSize": 100000000
 }


Mime
View raw message