Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -5582,7 +5582,9 @@ public final class com/dropbox/core/v2/files/RelocationBatchError {
public static final field DUPLICATED_OR_NESTED_PATHS Lcom/dropbox/core/v2/files/RelocationBatchError;
public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError;
public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationBatchError;
public static final field MEMBER_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError;
public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchError;
public static final field TEAM_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError;
public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationBatchError;
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/RelocationBatchError;
public static fun cantMoveIntoFamily (Lcom/dropbox/core/v2/files/MoveIntoFamilyError;)Lcom/dropbox/core/v2/files/RelocationBatchError;
Expand All @@ -5608,7 +5610,9 @@ public final class com/dropbox/core/v2/files/RelocationBatchError {
public fun isFromWrite ()Z
public fun isInsufficientQuota ()Z
public fun isInternalError ()Z
public fun isMemberFolderInsufficientQuota ()Z
public fun isOther ()Z
public fun isTeamFolderInsufficientQuota ()Z
public fun isTo ()Z
public fun isTooManyFiles ()Z
public fun isTooManyWriteOperations ()Z
Expand All @@ -5631,7 +5635,9 @@ public final class com/dropbox/core/v2/files/RelocationBatchError$Tag : java/lan
public static final field FROM_WRITE Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
public static final field MEMBER_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
public static final field TEAM_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
public static final field TO Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
Expand Down Expand Up @@ -5817,7 +5823,9 @@ public final class com/dropbox/core/v2/files/RelocationError {
public static final field DUPLICATED_OR_NESTED_PATHS Lcom/dropbox/core/v2/files/RelocationError;
public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError;
public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationError;
public static final field MEMBER_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError;
public static final field OTHER Lcom/dropbox/core/v2/files/RelocationError;
public static final field TEAM_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError;
public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationError;
public static fun cantMoveIntoFamily (Lcom/dropbox/core/v2/files/MoveIntoFamilyError;)Lcom/dropbox/core/v2/files/RelocationError;
public static fun cantMoveIntoVault (Lcom/dropbox/core/v2/files/MoveIntoVaultError;)Lcom/dropbox/core/v2/files/RelocationError;
Expand All @@ -5842,7 +5850,9 @@ public final class com/dropbox/core/v2/files/RelocationError {
public fun isFromWrite ()Z
public fun isInsufficientQuota ()Z
public fun isInternalError ()Z
public fun isMemberFolderInsufficientQuota ()Z
public fun isOther ()Z
public fun isTeamFolderInsufficientQuota ()Z
public fun isTo ()Z
public fun isTooManyFiles ()Z
public fun tag ()Lcom/dropbox/core/v2/files/RelocationError$Tag;
Expand All @@ -5864,7 +5874,9 @@ public final class com/dropbox/core/v2/files/RelocationError$Tag : java/lang/Enu
public static final field FROM_WRITE Lcom/dropbox/core/v2/files/RelocationError$Tag;
public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError$Tag;
public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationError$Tag;
public static final field MEMBER_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError$Tag;
public static final field OTHER Lcom/dropbox/core/v2/files/RelocationError$Tag;
public static final field TEAM_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError$Tag;
public static final field TO Lcom/dropbox/core/v2/files/RelocationError$Tag;
public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationError$Tag;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationError$Tag;
Expand Down Expand Up @@ -7180,10 +7192,12 @@ public final class com/dropbox/core/v2/files/WriteError {
public static final field ACCESS_RESTRICTED Lcom/dropbox/core/v2/files/WriteError;
public static final field DISALLOWED_NAME Lcom/dropbox/core/v2/files/WriteError;
public static final field INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError;
public static final field MEMBER_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError;
public static final field NO_WRITE_PERMISSION Lcom/dropbox/core/v2/files/WriteError;
public static final field OPERATION_SUPPRESSED Lcom/dropbox/core/v2/files/WriteError;
public static final field OTHER Lcom/dropbox/core/v2/files/WriteError;
public static final field TEAM_FOLDER Lcom/dropbox/core/v2/files/WriteError;
public static final field TEAM_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError;
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/WriteError;
public static fun conflict (Lcom/dropbox/core/v2/files/WriteConflictError;)Lcom/dropbox/core/v2/files/WriteError;
public fun equals (Ljava/lang/Object;)Z
Expand All @@ -7195,10 +7209,12 @@ public final class com/dropbox/core/v2/files/WriteError {
public fun isDisallowedName ()Z
public fun isInsufficientSpace ()Z
public fun isMalformedPath ()Z
public fun isMemberFolderInsufficientSpace ()Z
public fun isNoWritePermission ()Z
public fun isOperationSuppressed ()Z
public fun isOther ()Z
public fun isTeamFolder ()Z
public fun isTeamFolderInsufficientSpace ()Z
public fun isTooManyWriteOperations ()Z
public static fun malformedPath ()Lcom/dropbox/core/v2/files/WriteError;
public static fun malformedPath (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteError;
Expand All @@ -7213,10 +7229,12 @@ public final class com/dropbox/core/v2/files/WriteError$Tag : java/lang/Enum {
public static final field DISALLOWED_NAME Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field MALFORMED_PATH Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field MEMBER_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field NO_WRITE_PERMISSION Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field OPERATION_SUPPRESSED Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field OTHER Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field TEAM_FOLDER Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field TEAM_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError$Tag;
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/WriteError$Tag;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteError$Tag;
public static fun values ()[Lcom/dropbox/core/v2/files/WriteError$Tag;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ public enum Tag {
* certain circumstances, see detailed error.
*/
CANT_MOVE_INTO_FAMILY, // MoveIntoFamilyError
/**
* The destination team folder has reached its storage limit.
*/
TEAM_FOLDER_INSUFFICIENT_QUOTA,
/**
* The user's member folder has reached its storage limit.
*/
MEMBER_FOLDER_INSUFFICIENT_QUOTA,
/**
* Catch-all used for unknown tag values returned by the Dropbox
* servers.
Expand Down Expand Up @@ -143,6 +151,14 @@ public enum Tag {
* Can't move the shared folder to the given destination.
*/
public static final RelocationBatchError CANT_MOVE_SHARED_FOLDER = new RelocationBatchError().withTag(Tag.CANT_MOVE_SHARED_FOLDER);
/**
* The destination team folder has reached its storage limit.
*/
public static final RelocationBatchError TEAM_FOLDER_INSUFFICIENT_QUOTA = new RelocationBatchError().withTag(Tag.TEAM_FOLDER_INSUFFICIENT_QUOTA);
/**
* The user's member folder has reached its storage limit.
*/
public static final RelocationBatchError MEMBER_FOLDER_INSUFFICIENT_QUOTA = new RelocationBatchError().withTag(Tag.MEMBER_FOLDER_INSUFFICIENT_QUOTA);
/**
* Catch-all used for unknown tag values returned by the Dropbox servers.
*
Expand Down Expand Up @@ -616,6 +632,28 @@ public MoveIntoFamilyError getCantMoveIntoFamilyValue() {
return cantMoveIntoFamilyValue;
}

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#TEAM_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
*
* @return {@code true} if this instance is tagged as {@link
* Tag#TEAM_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
*/
public boolean isTeamFolderInsufficientQuota() {
return this._tag == Tag.TEAM_FOLDER_INSUFFICIENT_QUOTA;
}

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#MEMBER_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
*
* @return {@code true} if this instance is tagged as {@link
* Tag#MEMBER_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
*/
public boolean isMemberFolderInsufficientQuota() {
return this._tag == Tag.MEMBER_FOLDER_INSUFFICIENT_QUOTA;
}

/**
* Returns {@code true} if this instance has the tag {@link Tag#OTHER},
* {@code false} otherwise.
Expand Down Expand Up @@ -694,6 +732,10 @@ else if (obj instanceof RelocationBatchError) {
return (this.cantMoveIntoVaultValue == other.cantMoveIntoVaultValue) || (this.cantMoveIntoVaultValue.equals(other.cantMoveIntoVaultValue));
case CANT_MOVE_INTO_FAMILY:
return (this.cantMoveIntoFamilyValue == other.cantMoveIntoFamilyValue) || (this.cantMoveIntoFamilyValue.equals(other.cantMoveIntoFamilyValue));
case TEAM_FOLDER_INSUFFICIENT_QUOTA:
return true;
case MEMBER_FOLDER_INSUFFICIENT_QUOTA:
return true;
case OTHER:
return true;
case TOO_MANY_WRITE_OPERATIONS:
Expand Down Expand Up @@ -809,6 +851,14 @@ public void serialize(RelocationBatchError value, JsonGenerator g) throws IOExce
g.writeEndObject();
break;
}
case TEAM_FOLDER_INSUFFICIENT_QUOTA: {
g.writeString("team_folder_insufficient_quota");
break;
}
case MEMBER_FOLDER_INSUFFICIENT_QUOTA: {
g.writeString("member_folder_insufficient_quota");
break;
}
case OTHER: {
g.writeString("other");
break;
Expand Down Expand Up @@ -898,6 +948,12 @@ else if ("cant_move_into_family".equals(tag)) {
fieldValue = MoveIntoFamilyError.Serializer.INSTANCE.deserialize(p);
value = RelocationBatchError.cantMoveIntoFamily(fieldValue);
}
else if ("team_folder_insufficient_quota".equals(tag)) {
value = RelocationBatchError.TEAM_FOLDER_INSUFFICIENT_QUOTA;
}
else if ("member_folder_insufficient_quota".equals(tag)) {
value = RelocationBatchError.MEMBER_FOLDER_INSUFFICIENT_QUOTA;
}
else if ("other".equals(tag)) {
value = RelocationBatchError.OTHER;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ public enum Tag {
* certain circumstances, see detailed error.
*/
CANT_MOVE_INTO_FAMILY, // MoveIntoFamilyError
/**
* The destination team folder has reached its storage limit.
*/
TEAM_FOLDER_INSUFFICIENT_QUOTA,
/**
* The user's member folder has reached its storage limit.
*/
MEMBER_FOLDER_INSUFFICIENT_QUOTA,
/**
* Catch-all used for unknown tag values returned by the Dropbox
* servers.
Expand Down Expand Up @@ -142,6 +150,14 @@ public enum Tag {
* Can't move the shared folder to the given destination.
*/
public static final RelocationError CANT_MOVE_SHARED_FOLDER = new RelocationError().withTag(Tag.CANT_MOVE_SHARED_FOLDER);
/**
* The destination team folder has reached its storage limit.
*/
public static final RelocationError TEAM_FOLDER_INSUFFICIENT_QUOTA = new RelocationError().withTag(Tag.TEAM_FOLDER_INSUFFICIENT_QUOTA);
/**
* The user's member folder has reached its storage limit.
*/
public static final RelocationError MEMBER_FOLDER_INSUFFICIENT_QUOTA = new RelocationError().withTag(Tag.MEMBER_FOLDER_INSUFFICIENT_QUOTA);
/**
* Catch-all used for unknown tag values returned by the Dropbox servers.
*
Expand Down Expand Up @@ -613,6 +629,28 @@ public MoveIntoFamilyError getCantMoveIntoFamilyValue() {
return cantMoveIntoFamilyValue;
}

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#TEAM_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
*
* @return {@code true} if this instance is tagged as {@link
* Tag#TEAM_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
*/
public boolean isTeamFolderInsufficientQuota() {
return this._tag == Tag.TEAM_FOLDER_INSUFFICIENT_QUOTA;
}

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#MEMBER_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
*
* @return {@code true} if this instance is tagged as {@link
* Tag#MEMBER_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
*/
public boolean isMemberFolderInsufficientQuota() {
return this._tag == Tag.MEMBER_FOLDER_INSUFFICIENT_QUOTA;
}

/**
* Returns {@code true} if this instance has the tag {@link Tag#OTHER},
* {@code false} otherwise.
Expand Down Expand Up @@ -679,6 +717,10 @@ else if (obj instanceof RelocationError) {
return (this.cantMoveIntoVaultValue == other.cantMoveIntoVaultValue) || (this.cantMoveIntoVaultValue.equals(other.cantMoveIntoVaultValue));
case CANT_MOVE_INTO_FAMILY:
return (this.cantMoveIntoFamilyValue == other.cantMoveIntoFamilyValue) || (this.cantMoveIntoFamilyValue.equals(other.cantMoveIntoFamilyValue));
case TEAM_FOLDER_INSUFFICIENT_QUOTA:
return true;
case MEMBER_FOLDER_INSUFFICIENT_QUOTA:
return true;
case OTHER:
return true;
default:
Expand Down Expand Up @@ -792,6 +834,14 @@ public void serialize(RelocationError value, JsonGenerator g) throws IOException
g.writeEndObject();
break;
}
case TEAM_FOLDER_INSUFFICIENT_QUOTA: {
g.writeString("team_folder_insufficient_quota");
break;
}
case MEMBER_FOLDER_INSUFFICIENT_QUOTA: {
g.writeString("member_folder_insufficient_quota");
break;
}
default: {
g.writeString("other");
}
Expand Down Expand Up @@ -873,6 +923,12 @@ else if ("cant_move_into_family".equals(tag)) {
fieldValue = MoveIntoFamilyError.Serializer.INSTANCE.deserialize(p);
value = RelocationError.cantMoveIntoFamily(fieldValue);
}
else if ("team_folder_insufficient_quota".equals(tag)) {
value = RelocationError.TEAM_FOLDER_INSUFFICIENT_QUOTA;
}
else if ("member_folder_insufficient_quota".equals(tag)) {
value = RelocationError.MEMBER_FOLDER_INSUFFICIENT_QUOTA;
}
else {
value = RelocationError.OTHER;
}
Expand Down
Loading
Loading