mirror of https://github.com/apache/jclouds.git
JCLOUDS-1452: Remove Authorization.minimumPartSize
Superseded by absoluteMinimumPartSize and recommendedPartSize.
This commit is contained in:
parent
750809f97f
commit
a0f496e5ec
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue