Skip to content

Commit 910a155

Browse files
Automated Spec Update (#615)
33adb3af6ad7199532c03d880f0520619ef17763 Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com> Co-authored-by: dropbox-sdk-updater[bot] <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com>
1 parent ac7d622 commit 910a155

6 files changed

Lines changed: 188 additions & 2 deletions

File tree

core/api/core.api

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5582,7 +5582,9 @@ public final class com/dropbox/core/v2/files/RelocationBatchError {
55825582
public static final field DUPLICATED_OR_NESTED_PATHS Lcom/dropbox/core/v2/files/RelocationBatchError;
55835583
public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError;
55845584
public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationBatchError;
5585+
public static final field MEMBER_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError;
55855586
public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchError;
5587+
public static final field TEAM_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError;
55865588
public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationBatchError;
55875589
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/RelocationBatchError;
55885590
public static fun cantMoveIntoFamily (Lcom/dropbox/core/v2/files/MoveIntoFamilyError;)Lcom/dropbox/core/v2/files/RelocationBatchError;
@@ -5608,7 +5610,9 @@ public final class com/dropbox/core/v2/files/RelocationBatchError {
56085610
public fun isFromWrite ()Z
56095611
public fun isInsufficientQuota ()Z
56105612
public fun isInternalError ()Z
5613+
public fun isMemberFolderInsufficientQuota ()Z
56115614
public fun isOther ()Z
5615+
public fun isTeamFolderInsufficientQuota ()Z
56125616
public fun isTo ()Z
56135617
public fun isTooManyFiles ()Z
56145618
public fun isTooManyWriteOperations ()Z
@@ -5631,7 +5635,9 @@ public final class com/dropbox/core/v2/files/RelocationBatchError$Tag : java/lan
56315635
public static final field FROM_WRITE Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
56325636
public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
56335637
public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
5638+
public static final field MEMBER_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
56345639
public static final field OTHER Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
5640+
public static final field TEAM_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
56355641
public static final field TO Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
56365642
public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
56375643
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/RelocationBatchError$Tag;
@@ -5817,7 +5823,9 @@ public final class com/dropbox/core/v2/files/RelocationError {
58175823
public static final field DUPLICATED_OR_NESTED_PATHS Lcom/dropbox/core/v2/files/RelocationError;
58185824
public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError;
58195825
public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationError;
5826+
public static final field MEMBER_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError;
58205827
public static final field OTHER Lcom/dropbox/core/v2/files/RelocationError;
5828+
public static final field TEAM_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError;
58215829
public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationError;
58225830
public static fun cantMoveIntoFamily (Lcom/dropbox/core/v2/files/MoveIntoFamilyError;)Lcom/dropbox/core/v2/files/RelocationError;
58235831
public static fun cantMoveIntoVault (Lcom/dropbox/core/v2/files/MoveIntoVaultError;)Lcom/dropbox/core/v2/files/RelocationError;
@@ -5842,7 +5850,9 @@ public final class com/dropbox/core/v2/files/RelocationError {
58425850
public fun isFromWrite ()Z
58435851
public fun isInsufficientQuota ()Z
58445852
public fun isInternalError ()Z
5853+
public fun isMemberFolderInsufficientQuota ()Z
58455854
public fun isOther ()Z
5855+
public fun isTeamFolderInsufficientQuota ()Z
58465856
public fun isTo ()Z
58475857
public fun isTooManyFiles ()Z
58485858
public fun tag ()Lcom/dropbox/core/v2/files/RelocationError$Tag;
@@ -5864,7 +5874,9 @@ public final class com/dropbox/core/v2/files/RelocationError$Tag : java/lang/Enu
58645874
public static final field FROM_WRITE Lcom/dropbox/core/v2/files/RelocationError$Tag;
58655875
public static final field INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError$Tag;
58665876
public static final field INTERNAL_ERROR Lcom/dropbox/core/v2/files/RelocationError$Tag;
5877+
public static final field MEMBER_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError$Tag;
58675878
public static final field OTHER Lcom/dropbox/core/v2/files/RelocationError$Tag;
5879+
public static final field TEAM_FOLDER_INSUFFICIENT_QUOTA Lcom/dropbox/core/v2/files/RelocationError$Tag;
58685880
public static final field TO Lcom/dropbox/core/v2/files/RelocationError$Tag;
58695881
public static final field TOO_MANY_FILES Lcom/dropbox/core/v2/files/RelocationError$Tag;
58705882
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/RelocationError$Tag;
@@ -7180,10 +7192,12 @@ public final class com/dropbox/core/v2/files/WriteError {
71807192
public static final field ACCESS_RESTRICTED Lcom/dropbox/core/v2/files/WriteError;
71817193
public static final field DISALLOWED_NAME Lcom/dropbox/core/v2/files/WriteError;
71827194
public static final field INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError;
7195+
public static final field MEMBER_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError;
71837196
public static final field NO_WRITE_PERMISSION Lcom/dropbox/core/v2/files/WriteError;
71847197
public static final field OPERATION_SUPPRESSED Lcom/dropbox/core/v2/files/WriteError;
71857198
public static final field OTHER Lcom/dropbox/core/v2/files/WriteError;
71867199
public static final field TEAM_FOLDER Lcom/dropbox/core/v2/files/WriteError;
7200+
public static final field TEAM_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError;
71877201
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/WriteError;
71887202
public static fun conflict (Lcom/dropbox/core/v2/files/WriteConflictError;)Lcom/dropbox/core/v2/files/WriteError;
71897203
public fun equals (Ljava/lang/Object;)Z
@@ -7195,10 +7209,12 @@ public final class com/dropbox/core/v2/files/WriteError {
71957209
public fun isDisallowedName ()Z
71967210
public fun isInsufficientSpace ()Z
71977211
public fun isMalformedPath ()Z
7212+
public fun isMemberFolderInsufficientSpace ()Z
71987213
public fun isNoWritePermission ()Z
71997214
public fun isOperationSuppressed ()Z
72007215
public fun isOther ()Z
72017216
public fun isTeamFolder ()Z
7217+
public fun isTeamFolderInsufficientSpace ()Z
72027218
public fun isTooManyWriteOperations ()Z
72037219
public static fun malformedPath ()Lcom/dropbox/core/v2/files/WriteError;
72047220
public static fun malformedPath (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteError;
@@ -7213,10 +7229,12 @@ public final class com/dropbox/core/v2/files/WriteError$Tag : java/lang/Enum {
72137229
public static final field DISALLOWED_NAME Lcom/dropbox/core/v2/files/WriteError$Tag;
72147230
public static final field INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError$Tag;
72157231
public static final field MALFORMED_PATH Lcom/dropbox/core/v2/files/WriteError$Tag;
7232+
public static final field MEMBER_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError$Tag;
72167233
public static final field NO_WRITE_PERMISSION Lcom/dropbox/core/v2/files/WriteError$Tag;
72177234
public static final field OPERATION_SUPPRESSED Lcom/dropbox/core/v2/files/WriteError$Tag;
72187235
public static final field OTHER Lcom/dropbox/core/v2/files/WriteError$Tag;
72197236
public static final field TEAM_FOLDER Lcom/dropbox/core/v2/files/WriteError$Tag;
7237+
public static final field TEAM_FOLDER_INSUFFICIENT_SPACE Lcom/dropbox/core/v2/files/WriteError$Tag;
72207238
public static final field TOO_MANY_WRITE_OPERATIONS Lcom/dropbox/core/v2/files/WriteError$Tag;
72217239
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/files/WriteError$Tag;
72227240
public static fun values ()[Lcom/dropbox/core/v2/files/WriteError$Tag;

core/build/generated_stone_source/main/refs/javadoc-refs.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationBatchError.java

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ public enum Tag {
8585
* certain circumstances, see detailed error.
8686
*/
8787
CANT_MOVE_INTO_FAMILY, // MoveIntoFamilyError
88+
/**
89+
* The destination team folder has reached its storage limit.
90+
*/
91+
TEAM_FOLDER_INSUFFICIENT_QUOTA,
92+
/**
93+
* The user's member folder has reached its storage limit.
94+
*/
95+
MEMBER_FOLDER_INSUFFICIENT_QUOTA,
8896
/**
8997
* Catch-all used for unknown tag values returned by the Dropbox
9098
* servers.
@@ -143,6 +151,14 @@ public enum Tag {
143151
* Can't move the shared folder to the given destination.
144152
*/
145153
public static final RelocationBatchError CANT_MOVE_SHARED_FOLDER = new RelocationBatchError().withTag(Tag.CANT_MOVE_SHARED_FOLDER);
154+
/**
155+
* The destination team folder has reached its storage limit.
156+
*/
157+
public static final RelocationBatchError TEAM_FOLDER_INSUFFICIENT_QUOTA = new RelocationBatchError().withTag(Tag.TEAM_FOLDER_INSUFFICIENT_QUOTA);
158+
/**
159+
* The user's member folder has reached its storage limit.
160+
*/
161+
public static final RelocationBatchError MEMBER_FOLDER_INSUFFICIENT_QUOTA = new RelocationBatchError().withTag(Tag.MEMBER_FOLDER_INSUFFICIENT_QUOTA);
146162
/**
147163
* Catch-all used for unknown tag values returned by the Dropbox servers.
148164
*
@@ -616,6 +632,28 @@ public MoveIntoFamilyError getCantMoveIntoFamilyValue() {
616632
return cantMoveIntoFamilyValue;
617633
}
618634

635+
/**
636+
* Returns {@code true} if this instance has the tag {@link
637+
* Tag#TEAM_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
638+
*
639+
* @return {@code true} if this instance is tagged as {@link
640+
* Tag#TEAM_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
641+
*/
642+
public boolean isTeamFolderInsufficientQuota() {
643+
return this._tag == Tag.TEAM_FOLDER_INSUFFICIENT_QUOTA;
644+
}
645+
646+
/**
647+
* Returns {@code true} if this instance has the tag {@link
648+
* Tag#MEMBER_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
649+
*
650+
* @return {@code true} if this instance is tagged as {@link
651+
* Tag#MEMBER_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
652+
*/
653+
public boolean isMemberFolderInsufficientQuota() {
654+
return this._tag == Tag.MEMBER_FOLDER_INSUFFICIENT_QUOTA;
655+
}
656+
619657
/**
620658
* Returns {@code true} if this instance has the tag {@link Tag#OTHER},
621659
* {@code false} otherwise.
@@ -694,6 +732,10 @@ else if (obj instanceof RelocationBatchError) {
694732
return (this.cantMoveIntoVaultValue == other.cantMoveIntoVaultValue) || (this.cantMoveIntoVaultValue.equals(other.cantMoveIntoVaultValue));
695733
case CANT_MOVE_INTO_FAMILY:
696734
return (this.cantMoveIntoFamilyValue == other.cantMoveIntoFamilyValue) || (this.cantMoveIntoFamilyValue.equals(other.cantMoveIntoFamilyValue));
735+
case TEAM_FOLDER_INSUFFICIENT_QUOTA:
736+
return true;
737+
case MEMBER_FOLDER_INSUFFICIENT_QUOTA:
738+
return true;
697739
case OTHER:
698740
return true;
699741
case TOO_MANY_WRITE_OPERATIONS:
@@ -809,6 +851,14 @@ public void serialize(RelocationBatchError value, JsonGenerator g) throws IOExce
809851
g.writeEndObject();
810852
break;
811853
}
854+
case TEAM_FOLDER_INSUFFICIENT_QUOTA: {
855+
g.writeString("team_folder_insufficient_quota");
856+
break;
857+
}
858+
case MEMBER_FOLDER_INSUFFICIENT_QUOTA: {
859+
g.writeString("member_folder_insufficient_quota");
860+
break;
861+
}
812862
case OTHER: {
813863
g.writeString("other");
814864
break;
@@ -898,6 +948,12 @@ else if ("cant_move_into_family".equals(tag)) {
898948
fieldValue = MoveIntoFamilyError.Serializer.INSTANCE.deserialize(p);
899949
value = RelocationBatchError.cantMoveIntoFamily(fieldValue);
900950
}
951+
else if ("team_folder_insufficient_quota".equals(tag)) {
952+
value = RelocationBatchError.TEAM_FOLDER_INSUFFICIENT_QUOTA;
953+
}
954+
else if ("member_folder_insufficient_quota".equals(tag)) {
955+
value = RelocationBatchError.MEMBER_FOLDER_INSUFFICIENT_QUOTA;
956+
}
901957
else if ("other".equals(tag)) {
902958
value = RelocationBatchError.OTHER;
903959
}

core/build/generated_stone_source/main/src/com/dropbox/core/v2/files/RelocationError.java

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,14 @@ public enum Tag {
8989
* certain circumstances, see detailed error.
9090
*/
9191
CANT_MOVE_INTO_FAMILY, // MoveIntoFamilyError
92+
/**
93+
* The destination team folder has reached its storage limit.
94+
*/
95+
TEAM_FOLDER_INSUFFICIENT_QUOTA,
96+
/**
97+
* The user's member folder has reached its storage limit.
98+
*/
99+
MEMBER_FOLDER_INSUFFICIENT_QUOTA,
92100
/**
93101
* Catch-all used for unknown tag values returned by the Dropbox
94102
* servers.
@@ -142,6 +150,14 @@ public enum Tag {
142150
* Can't move the shared folder to the given destination.
143151
*/
144152
public static final RelocationError CANT_MOVE_SHARED_FOLDER = new RelocationError().withTag(Tag.CANT_MOVE_SHARED_FOLDER);
153+
/**
154+
* The destination team folder has reached its storage limit.
155+
*/
156+
public static final RelocationError TEAM_FOLDER_INSUFFICIENT_QUOTA = new RelocationError().withTag(Tag.TEAM_FOLDER_INSUFFICIENT_QUOTA);
157+
/**
158+
* The user's member folder has reached its storage limit.
159+
*/
160+
public static final RelocationError MEMBER_FOLDER_INSUFFICIENT_QUOTA = new RelocationError().withTag(Tag.MEMBER_FOLDER_INSUFFICIENT_QUOTA);
145161
/**
146162
* Catch-all used for unknown tag values returned by the Dropbox servers.
147163
*
@@ -613,6 +629,28 @@ public MoveIntoFamilyError getCantMoveIntoFamilyValue() {
613629
return cantMoveIntoFamilyValue;
614630
}
615631

632+
/**
633+
* Returns {@code true} if this instance has the tag {@link
634+
* Tag#TEAM_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
635+
*
636+
* @return {@code true} if this instance is tagged as {@link
637+
* Tag#TEAM_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
638+
*/
639+
public boolean isTeamFolderInsufficientQuota() {
640+
return this._tag == Tag.TEAM_FOLDER_INSUFFICIENT_QUOTA;
641+
}
642+
643+
/**
644+
* Returns {@code true} if this instance has the tag {@link
645+
* Tag#MEMBER_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
646+
*
647+
* @return {@code true} if this instance is tagged as {@link
648+
* Tag#MEMBER_FOLDER_INSUFFICIENT_QUOTA}, {@code false} otherwise.
649+
*/
650+
public boolean isMemberFolderInsufficientQuota() {
651+
return this._tag == Tag.MEMBER_FOLDER_INSUFFICIENT_QUOTA;
652+
}
653+
616654
/**
617655
* Returns {@code true} if this instance has the tag {@link Tag#OTHER},
618656
* {@code false} otherwise.
@@ -679,6 +717,10 @@ else if (obj instanceof RelocationError) {
679717
return (this.cantMoveIntoVaultValue == other.cantMoveIntoVaultValue) || (this.cantMoveIntoVaultValue.equals(other.cantMoveIntoVaultValue));
680718
case CANT_MOVE_INTO_FAMILY:
681719
return (this.cantMoveIntoFamilyValue == other.cantMoveIntoFamilyValue) || (this.cantMoveIntoFamilyValue.equals(other.cantMoveIntoFamilyValue));
720+
case TEAM_FOLDER_INSUFFICIENT_QUOTA:
721+
return true;
722+
case MEMBER_FOLDER_INSUFFICIENT_QUOTA:
723+
return true;
682724
case OTHER:
683725
return true;
684726
default:
@@ -792,6 +834,14 @@ public void serialize(RelocationError value, JsonGenerator g) throws IOException
792834
g.writeEndObject();
793835
break;
794836
}
837+
case TEAM_FOLDER_INSUFFICIENT_QUOTA: {
838+
g.writeString("team_folder_insufficient_quota");
839+
break;
840+
}
841+
case MEMBER_FOLDER_INSUFFICIENT_QUOTA: {
842+
g.writeString("member_folder_insufficient_quota");
843+
break;
844+
}
795845
default: {
796846
g.writeString("other");
797847
}
@@ -873,6 +923,12 @@ else if ("cant_move_into_family".equals(tag)) {
873923
fieldValue = MoveIntoFamilyError.Serializer.INSTANCE.deserialize(p);
874924
value = RelocationError.cantMoveIntoFamily(fieldValue);
875925
}
926+
else if ("team_folder_insufficient_quota".equals(tag)) {
927+
value = RelocationError.TEAM_FOLDER_INSUFFICIENT_QUOTA;
928+
}
929+
else if ("member_folder_insufficient_quota".equals(tag)) {
930+
value = RelocationError.MEMBER_FOLDER_INSUFFICIENT_QUOTA;
931+
}
876932
else {
877933
value = RelocationError.OTHER;
878934
}

0 commit comments

Comments
 (0)