JCLOUDS-1452: Remove Authorization.minimumPartSize

Superseded by absoluteMinimumPartSize and recommendedPartSize.
This commit is contained in:
Andrew Gaul 2018-09-28 13:56:16 -07:00
parent 750809f97f
commit a0f496e5ec
2 changed files with 5 additions and 6 deletions

View File

@ -26,13 +26,11 @@ public abstract class Authorization {
public abstract String apiUrl(); public abstract String apiUrl();
public abstract String authorizationToken(); public abstract String authorizationToken();
public abstract String downloadUrl(); public abstract String downloadUrl();
@Deprecated
public abstract long minimumPartSize();
public abstract long absoluteMinimumPartSize(); public abstract long absoluteMinimumPartSize();
public abstract long recommendedPartSize(); public abstract long recommendedPartSize();
@SerializedNames({"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 minimumPartSize, long absoluteMinimumPartSize, long 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, minimumPartSize, absoluteMinimumPartSize, recommendedPartSize); return new AutoValue_Authorization(accountId, apiUrl, authorizationToken, downloadUrl, absoluteMinimumPartSize, recommendedPartSize);
} }
} }

View File

@ -1,7 +1,8 @@
{ {
"absoluteMinimumPartSize": 5000000,
"accountId": "YOUR_ACCOUNT_ID", "accountId": "YOUR_ACCOUNT_ID",
"apiUrl": "http://localhost", "apiUrl": "http://localhost",
"authorizationToken": "2_20150807002553_443e98bf57f978fa58c284f8_24d25d99772e3ba927778b39c9b0198f412d2163_acct", "authorizationToken": "2_20150807002553_443e98bf57f978fa58c284f8_24d25d99772e3ba927778b39c9b0198f412d2163_acct",
"downloadUrl": "http://localhost", "downloadUrl": "http://localhost",
"minimumPartSize": 100000000 "recommendedPartSize": 100000000
} }