Skip to content
Open
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
929 changes: 929 additions & 0 deletions core/api/core.api

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* <p> This exception is raised by {@link
* com.dropbox.core.v2.riviera.DbxAppRivieraRequests#getMarkdownAsyncCheck(String)},
* {@link
* com.dropbox.core.v2.riviera.DbxAppRivieraRequests#getMetadataAsyncCheck(String)},
* {@link
* com.dropbox.core.v2.riviera.DbxAppRivieraRequests#getTranscriptAsyncCheck(String)},
* {@link
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersAddJobStatusGet(String)},
Expand Down Expand Up @@ -50,6 +52,7 @@
public class PollErrorException extends DbxApiException {
// exception for routes:
// 2/riviera/get_markdown_async/check
// 2/riviera/get_metadata_async/check
// 2/riviera/get_transcript_async/check
// 2/team/members/add/job_status/get
// 2/team/members/add/job_status/get_v2
Expand All @@ -74,6 +77,8 @@ public class PollErrorException extends DbxApiException {
* The error reported by {@link
* com.dropbox.core.v2.riviera.DbxAppRivieraRequests#getMarkdownAsyncCheck(String)},
* {@link
* com.dropbox.core.v2.riviera.DbxAppRivieraRequests#getMetadataAsyncCheck(String)},
* {@link
* com.dropbox.core.v2.riviera.DbxAppRivieraRequests#getTranscriptAsyncCheck(String)},
* {@link
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersAddJobStatusGet(String)},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public DbxAppGetThumbnailV2Builder withMode(ThumbnailMode mode) {
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Quality of the thumbnail image. Must not be {@code null}.
* Defaults to {@code ThumbnailQuality.QUALITY_80} when set to {@code
* null}.
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}. Defaults to {@code
* ThumbnailQuality.QUALITY_80} when set to {@code null}.
*
* @return this builder
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public DbxUserGetThumbnailV2Builder withMode(ThumbnailMode mode) {
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Quality of the thumbnail image. Must not be {@code null}.
* Defaults to {@code ThumbnailQuality.QUALITY_80} when set to {@code
* null}.
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}. Defaults to {@code
* ThumbnailQuality.QUALITY_80} when set to {@code null}.
*
* @return this builder
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ public GetThumbnailBuilder withMode(ThumbnailMode mode) {
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Quality of the thumbnail image. Must not be {@code null}.
* Defaults to {@code ThumbnailQuality.QUALITY_80} when set to {@code
* null}.
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}. Defaults to {@code
* ThumbnailQuality.QUALITY_80} when set to {@code null}.
*
* @return this builder
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ public class ThumbnailArg {
* @param size The size for the thumbnail image. Must not be {@code null}.
* @param mode How to resize and crop the image to achieve the desired
* size. Must not be {@code null}.
* @param quality Quality of the thumbnail image. Must not be {@code null}.
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}.
* @param excludeMediaInfo Normally, {@link FileMetadata#getMediaInfo} is
* set for photo and video. When this flag is true, {@link
* FileMetadata#getMediaInfo} is not populated. This improves latency
Expand Down Expand Up @@ -150,7 +151,8 @@ public ThumbnailMode getMode() {
}

/**
* Quality of the thumbnail image.
* Field is only returned for "internal" callers. Quality of the thumbnail
* image.
*
* @return value for this field, or {@code null} if not present. Defaults to
* ThumbnailQuality.QUALITY_80.
Expand Down Expand Up @@ -300,9 +302,10 @@ public Builder withMode(ThumbnailMode mode) {
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Quality of the thumbnail image. Must not be {@code
* null}. Defaults to {@code ThumbnailQuality.QUALITY_80} when set
* to {@code null}.
* @param quality Field is only returned for "internal" callers.
* Quality of the thumbnail image. Must not be {@code null}.
* Defaults to {@code ThumbnailQuality.QUALITY_80} when set to
* {@code null}.
*
* @return this builder
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public enum ThumbnailSize {
*/
W2048H1536,
/**
* 3200 by 2400 px.
* Field is only returned for "internal" callers. 3200 by 2400 px.
*/
W3200H2400;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ class ThumbnailV2Arg {
* @param size The size for the thumbnail image. Must not be {@code null}.
* @param mode How to resize and crop the image to achieve the desired
* size. Must not be {@code null}.
* @param quality Quality of the thumbnail image. Must not be {@code null}.
* @param quality Field is only returned for "internal" callers. Quality of
* the thumbnail image. Must not be {@code null}.
* @param excludeMediaInfo Normally, {@link FileMetadata#getMediaInfo} is
* set for photo and video. When this flag is true, {@link
* FileMetadata#getMediaInfo} is not populated. This improves latency
Expand Down Expand Up @@ -148,7 +149,8 @@ public ThumbnailMode getMode() {
}

/**
* Quality of the thumbnail image.
* Field is only returned for "internal" callers. Quality of the thumbnail
* image.
*
* @return value for this field, or {@code null} if not present. Defaults to
* ThumbnailQuality.QUALITY_80.
Expand Down Expand Up @@ -295,9 +297,10 @@ public Builder withMode(ThumbnailMode mode) {
* <p> If left unset or set to {@code null}, defaults to {@code
* ThumbnailQuality.QUALITY_80}. </p>
*
* @param quality Quality of the thumbnail image. Must not be {@code
* null}. Defaults to {@code ThumbnailQuality.QUALITY_80} when set
* to {@code null}.
* @param quality Field is only returned for "internal" callers.
* Quality of the thumbnail image. Must not be {@code null}.
* Defaults to {@code ThumbnailQuality.QUALITY_80} when set to
* {@code null}.
*
* @return this builder
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ class AddFileMemberArgs {
* level we want to give new members.
* @param addMessageAsComment If the custom message should be added as a
* comment on the file. Only meant for Paper files.
* @param fpSealedResult The FingerprintJS Sealed Client Result value.
* @param fpSealedResult Field is only returned for "internal" callers. The
* FingerprintJS Sealed Client Result value.
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
Expand Down Expand Up @@ -181,7 +182,8 @@ public boolean getAddMessageAsComment() {
}

/**
* The FingerprintJS Sealed Client Result value
* Field is only returned for "internal" callers. The FingerprintJS Sealed
* Client Result value
*
* @return value for this field, or {@code null} if not present.
*/
Expand Down Expand Up @@ -324,7 +326,8 @@ public Builder withAddMessageAsComment(Boolean addMessageAsComment) {
/**
* Set value for optional field.
*
* @param fpSealedResult The FingerprintJS Sealed Client Result value.
* @param fpSealedResult Field is only returned for "internal" callers.
* The FingerprintJS Sealed Client Result value.
*
* @return this builder
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ public AddFileMemberBuilder withAddMessageAsComment(Boolean addMessageAsComment)
/**
* Set value for optional field.
*
* @param fpSealedResult The FingerprintJS Sealed Client Result value.
* @param fpSealedResult Field is only returned for "internal" callers. The
* FingerprintJS Sealed Client Result value.
*
* @return this builder
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class AddFolderMemberArg {
* device notifications of their invite.
* @param customMessage Optional message to display to added members in
* their invitation. Must have length of at least 1.
* @param fpSealedResult The FingerprintJS Sealed Client Result value.
* @param fpSealedResult Field is only returned for "internal" callers. The
* FingerprintJS Sealed Client Result value.
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
Expand Down Expand Up @@ -140,7 +141,8 @@ public String getCustomMessage() {
}

/**
* The FingerprintJS Sealed Client Result value
* Field is only returned for "internal" callers. The FingerprintJS Sealed
* Client Result value
*
* @return value for this field, or {@code null} if not present.
*/
Expand Down Expand Up @@ -246,7 +248,8 @@ public Builder withCustomMessage(String customMessage) {
/**
* Set value for optional field.
*
* @param fpSealedResult The FingerprintJS Sealed Client Result value.
* @param fpSealedResult Field is only returned for "internal" callers.
* The FingerprintJS Sealed Client Result value.
*
* @return this builder
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ public AddFolderMemberBuilder withCustomMessage(String customMessage) {
/**
* Set value for optional field.
*
* @param fpSealedResult The FingerprintJS Sealed Client Result value.
* @param fpSealedResult Field is only returned for "internal" callers. The
* FingerprintJS Sealed Client Result value.
*
* @return this builder
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public enum Tag {
* An error occurred setting the sync settings.
*/
SYNC_SETTINGS_ERROR, // SyncSettingsError
/**
* The team has reached the maximum number of team folders allowed by
* its plan.
*/
FOLDER_COUNT_LIMIT_EXCEEDED,
/**
* Catch-all used for unknown tag values returned by the Dropbox
* servers.
Expand All @@ -73,6 +78,11 @@ public enum Tag {
* The provided name cannot be used because it is reserved.
*/
public static final TeamFolderCreateError FOLDER_NAME_RESERVED = new TeamFolderCreateError().withTag(Tag.FOLDER_NAME_RESERVED);
/**
* The team has reached the maximum number of team folders allowed by its
* plan.
*/
public static final TeamFolderCreateError FOLDER_COUNT_LIMIT_EXCEEDED = new TeamFolderCreateError().withTag(Tag.FOLDER_COUNT_LIMIT_EXCEEDED);
/**
* Catch-all used for unknown tag values returned by the Dropbox servers.
*
Expand Down Expand Up @@ -218,6 +228,17 @@ public SyncSettingsError getSyncSettingsErrorValue() {
return syncSettingsErrorValue;
}

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

/**
* Returns {@code true} if this instance has the tag {@link Tag#OTHER},
* {@code false} otherwise.
Expand Down Expand Up @@ -260,6 +281,8 @@ else if (obj instanceof TeamFolderCreateError) {
return true;
case SYNC_SETTINGS_ERROR:
return (this.syncSettingsErrorValue == other.syncSettingsErrorValue) || (this.syncSettingsErrorValue.equals(other.syncSettingsErrorValue));
case FOLDER_COUNT_LIMIT_EXCEEDED:
return true;
case OTHER:
return true;
default:
Expand Down Expand Up @@ -317,6 +340,10 @@ public void serialize(TeamFolderCreateError value, JsonGenerator g) throws IOExc
g.writeEndObject();
break;
}
case FOLDER_COUNT_LIMIT_EXCEEDED: {
g.writeString("folder_count_limit_exceeded");
break;
}
default: {
g.writeString("other");
}
Expand Down Expand Up @@ -356,6 +383,9 @@ else if ("sync_settings_error".equals(tag)) {
fieldValue = SyncSettingsError.Serializer.INSTANCE.deserialize(p);
value = TeamFolderCreateError.syncSettingsError(fieldValue);
}
else if ("folder_count_limit_exceeded".equals(tag)) {
value = TeamFolderCreateError.FOLDER_COUNT_LIMIT_EXCEEDED;
}
else {
value = TeamFolderCreateError.OTHER;
}
Expand Down
Loading
Loading