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
33 changes: 33 additions & 0 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -21654,6 +21654,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public fun getSharedFolderDeclineInvitationDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationDetails;
public fun getSharedFolderMountDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderMountDetails;
public fun getSharedFolderNestDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails;
public fun getSharedFolderTransferMembershipDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderTransferMembershipDetails;
public fun getSharedFolderTransferOwnershipDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails;
public fun getSharedFolderUnmountDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderUnmountDetails;
public fun getSharedFoldersCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/SharedFoldersCreateReportDetails;
Expand Down Expand Up @@ -22334,6 +22335,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public fun isSharedFolderDeclineInvitationDetails ()Z
public fun isSharedFolderMountDetails ()Z
public fun isSharedFolderNestDetails ()Z
public fun isSharedFolderTransferMembershipDetails ()Z
public fun isSharedFolderTransferOwnershipDetails ()Z
public fun isSharedFolderUnmountDetails ()Z
public fun isSharedFoldersCreateReportDetails ()Z
Expand Down Expand Up @@ -22745,6 +22747,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public static fun sharedFolderDeclineInvitationDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun sharedFolderMountDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderMountDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun sharedFolderNestDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderNestDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun sharedFolderTransferMembershipDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderTransferMembershipDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun sharedFolderTransferOwnershipDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun sharedFolderUnmountDetails (Lcom/dropbox/core/v2/teamlog/SharedFolderUnmountDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun sharedFoldersCreateReportDetails (Lcom/dropbox/core/v2/teamlog/SharedFoldersCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
Expand Down Expand Up @@ -23397,6 +23400,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails$Tag : java/lang/Enum
public static final field SHARED_FOLDER_DECLINE_INVITATION_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field SHARED_FOLDER_MOUNT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field SHARED_FOLDER_NEST_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field SHARED_FOLDER_UNMOUNT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field SHARED_LINK_ADD_EXPIRY_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
Expand Down Expand Up @@ -24241,6 +24245,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public fun getSharedFolderDeclineInvitationValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationType;
public fun getSharedFolderMountValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderMountType;
public fun getSharedFolderNestValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderNestType;
public fun getSharedFolderTransferMembershipValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderTransferMembershipType;
public fun getSharedFolderTransferOwnershipValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipType;
public fun getSharedFolderUnmountValue ()Lcom/dropbox/core/v2/teamlog/SharedFolderUnmountType;
public fun getSharedFoldersCreateReportFailedValue ()Lcom/dropbox/core/v2/teamlog/SharedFoldersCreateReportFailedType;
Expand Down Expand Up @@ -24920,6 +24925,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public fun isSharedFolderDeclineInvitation ()Z
public fun isSharedFolderMount ()Z
public fun isSharedFolderNest ()Z
public fun isSharedFolderTransferMembership ()Z
public fun isSharedFolderTransferOwnership ()Z
public fun isSharedFolderUnmount ()Z
public fun isSharedFoldersCreateReport ()Z
Expand Down Expand Up @@ -25330,6 +25336,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public static fun sharedFolderDeclineInvitation (Lcom/dropbox/core/v2/teamlog/SharedFolderDeclineInvitationType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun sharedFolderMount (Lcom/dropbox/core/v2/teamlog/SharedFolderMountType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun sharedFolderNest (Lcom/dropbox/core/v2/teamlog/SharedFolderNestType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun sharedFolderTransferMembership (Lcom/dropbox/core/v2/teamlog/SharedFolderTransferMembershipType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun sharedFolderTransferOwnership (Lcom/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun sharedFolderUnmount (Lcom/dropbox/core/v2/teamlog/SharedFolderUnmountType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun sharedFoldersCreateReport (Lcom/dropbox/core/v2/teamlog/SharedFoldersCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType;
Expand Down Expand Up @@ -25981,6 +25988,7 @@ public final class com/dropbox/core/v2/teamlog/EventType$Tag : java/lang/Enum {
public static final field SHARED_FOLDER_DECLINE_INVITATION Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field SHARED_FOLDER_MOUNT Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field SHARED_FOLDER_NEST Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field SHARED_FOLDER_TRANSFER_MEMBERSHIP Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field SHARED_FOLDER_TRANSFER_OWNERSHIP Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field SHARED_FOLDER_UNMOUNT Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field SHARED_LINK_ADD_EXPIRY Lcom/dropbox/core/v2/teamlog/EventType$Tag;
Expand Down Expand Up @@ -26629,6 +26637,7 @@ public final class com/dropbox/core/v2/teamlog/EventTypeArg : java/lang/Enum {
public static final field SHARED_FOLDER_DECLINE_INVITATION Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field SHARED_FOLDER_MOUNT Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field SHARED_FOLDER_NEST Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field SHARED_FOLDER_TRANSFER_MEMBERSHIP Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field SHARED_FOLDER_TRANSFER_OWNERSHIP Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field SHARED_FOLDER_UNMOUNT Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field SHARED_LINK_ADD_EXPIRY Lcom/dropbox/core/v2/teamlog/EventTypeArg;
Expand Down Expand Up @@ -35836,6 +35845,30 @@ public class com/dropbox/core/v2/teamlog/SharedFolderNestType {
public fun toStringMultiline ()Ljava/lang/String;
}

public class com/dropbox/core/v2/teamlog/SharedFolderTransferMembershipDetails {
protected final field newMemberAccountId Ljava/lang/String;
protected final field previousMemberAccountId Ljava/lang/String;
protected final field sharedContentAccessLevel Lcom/dropbox/core/v2/sharing/AccessLevel;
public fun <init> (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/v2/sharing/AccessLevel;)V
public fun equals (Ljava/lang/Object;)Z
public fun getNewMemberAccountId ()Ljava/lang/String;
public fun getPreviousMemberAccountId ()Ljava/lang/String;
public fun getSharedContentAccessLevel ()Lcom/dropbox/core/v2/sharing/AccessLevel;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
public fun toStringMultiline ()Ljava/lang/String;
}

public class com/dropbox/core/v2/teamlog/SharedFolderTransferMembershipType {
protected final field description Ljava/lang/String;
public fun <init> (Ljava/lang/String;)V
public fun equals (Ljava/lang/Object;)Z
public fun getDescription ()Ljava/lang/String;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
public fun toStringMultiline ()Ljava/lang/String;
}

public class com/dropbox/core/v2/teamlog/SharedFolderTransferOwnershipDetails {
protected final field newOwnerEmail Ljava/lang/String;
protected final field previousOwnerEmail Ljava/lang/String;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ public enum Tag {
SHARED_FOLDER_DECLINE_INVITATION_DETAILS, // SharedFolderDeclineInvitationDetails
SHARED_FOLDER_MOUNT_DETAILS, // SharedFolderMountDetails
SHARED_FOLDER_NEST_DETAILS, // SharedFolderNestDetails
SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS, // SharedFolderTransferMembershipDetails
SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS, // SharedFolderTransferOwnershipDetails
SHARED_FOLDER_UNMOUNT_DETAILS, // SharedFolderUnmountDetails
SHARED_LINK_ADD_EXPIRY_DETAILS, // SharedLinkAddExpiryDetails
Expand Down Expand Up @@ -1105,6 +1106,7 @@ public enum Tag {
private SharedFolderDeclineInvitationDetails sharedFolderDeclineInvitationDetailsValue;
private SharedFolderMountDetails sharedFolderMountDetailsValue;
private SharedFolderNestDetails sharedFolderNestDetailsValue;
private SharedFolderTransferMembershipDetails sharedFolderTransferMembershipDetailsValue;
private SharedFolderTransferOwnershipDetails sharedFolderTransferOwnershipDetailsValue;
private SharedFolderUnmountDetails sharedFolderUnmountDetailsValue;
private SharedLinkAddExpiryDetails sharedLinkAddExpiryDetailsValue;
Expand Down Expand Up @@ -7915,6 +7917,23 @@ private EventDetails withTagAndSharedFolderNestDetails(Tag _tag, SharedFolderNes
return result;
}

/**
* Additional fields depending on the event type.
*
* @param sharedFolderTransferMembershipDetailsValue Must not be {@code
* null}.
* @param _tag Discriminating tag for this instance.
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
private EventDetails withTagAndSharedFolderTransferMembershipDetails(Tag _tag, SharedFolderTransferMembershipDetails sharedFolderTransferMembershipDetailsValue) {
EventDetails result = new EventDetails();
result._tag = _tag;
result.sharedFolderTransferMembershipDetailsValue = sharedFolderTransferMembershipDetailsValue;
return result;
}

/**
* Additional fields depending on the event type.
*
Expand Down Expand Up @@ -31566,6 +31585,56 @@ public SharedFolderNestDetails getSharedFolderNestDetailsValue() {
return sharedFolderNestDetailsValue;
}

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

/**
* Returns an instance of {@code EventDetails} that has its tag set to
* {@link Tag#SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS}.
*
* <p> None </p>
*
* @param value value to assign to this instance.
*
* @return Instance of {@code EventDetails} with its tag set to {@link
* Tag#SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS}.
*
* @throws IllegalArgumentException if {@code value} is {@code null}.
*/
public static EventDetails sharedFolderTransferMembershipDetails(SharedFolderTransferMembershipDetails value) {
if (value == null) {
throw new IllegalArgumentException("Value is null");
}
return new EventDetails().withTagAndSharedFolderTransferMembershipDetails(Tag.SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS, value);
}

/**
* This instance must be tagged as {@link
* Tag#SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS}.
*
* @return The {@link SharedFolderTransferMembershipDetails} value
* associated with this instance if {@link
* #isSharedFolderTransferMembershipDetails} is {@code true}.
*
* @throws IllegalStateException If {@link
* #isSharedFolderTransferMembershipDetails} is {@code false}.
*/
public SharedFolderTransferMembershipDetails getSharedFolderTransferMembershipDetailsValue() {
if (this._tag != Tag.SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS) {
throw new IllegalStateException("Invalid tag: required Tag.SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS, but was Tag." + this._tag.name());
}
return sharedFolderTransferMembershipDetailsValue;
}

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS}, {@code false} otherwise.
Expand Down Expand Up @@ -43900,6 +43969,7 @@ public int hashCode() {
this.sharedFolderDeclineInvitationDetailsValue,
this.sharedFolderMountDetailsValue,
this.sharedFolderNestDetailsValue,
this.sharedFolderTransferMembershipDetailsValue,
this.sharedFolderTransferOwnershipDetailsValue,
this.sharedFolderUnmountDetailsValue,
this.sharedLinkAddExpiryDetailsValue,
Expand Down Expand Up @@ -44963,6 +45033,8 @@ else if (obj instanceof EventDetails) {
return (this.sharedFolderMountDetailsValue == other.sharedFolderMountDetailsValue) || (this.sharedFolderMountDetailsValue.equals(other.sharedFolderMountDetailsValue));
case SHARED_FOLDER_NEST_DETAILS:
return (this.sharedFolderNestDetailsValue == other.sharedFolderNestDetailsValue) || (this.sharedFolderNestDetailsValue.equals(other.sharedFolderNestDetailsValue));
case SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS:
return (this.sharedFolderTransferMembershipDetailsValue == other.sharedFolderTransferMembershipDetailsValue) || (this.sharedFolderTransferMembershipDetailsValue.equals(other.sharedFolderTransferMembershipDetailsValue));
case SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS:
return (this.sharedFolderTransferOwnershipDetailsValue == other.sharedFolderTransferOwnershipDetailsValue) || (this.sharedFolderTransferOwnershipDetailsValue.equals(other.sharedFolderTransferOwnershipDetailsValue));
case SHARED_FOLDER_UNMOUNT_DETAILS:
Expand Down Expand Up @@ -48296,6 +48368,13 @@ public void serialize(EventDetails value, JsonGenerator g) throws IOException, J
g.writeEndObject();
break;
}
case SHARED_FOLDER_TRANSFER_MEMBERSHIP_DETAILS: {
g.writeStartObject();
writeTag("shared_folder_transfer_membership_details", g);
SharedFolderTransferMembershipDetails.Serializer.INSTANCE.serialize(value.sharedFolderTransferMembershipDetailsValue, g, true);
g.writeEndObject();
break;
}
case SHARED_FOLDER_TRANSFER_OWNERSHIP_DETAILS: {
g.writeStartObject();
writeTag("shared_folder_transfer_ownership_details", g);
Expand Down Expand Up @@ -52017,6 +52096,11 @@ else if ("shared_folder_nest_details".equals(tag)) {
fieldValue = SharedFolderNestDetails.Serializer.INSTANCE.deserialize(p, true);
value = EventDetails.sharedFolderNestDetails(fieldValue);
}
else if ("shared_folder_transfer_membership_details".equals(tag)) {
SharedFolderTransferMembershipDetails fieldValue = null;
fieldValue = SharedFolderTransferMembershipDetails.Serializer.INSTANCE.deserialize(p, true);
value = EventDetails.sharedFolderTransferMembershipDetails(fieldValue);
}
else if ("shared_folder_transfer_ownership_details".equals(tag)) {
SharedFolderTransferOwnershipDetails fieldValue = null;
fieldValue = SharedFolderTransferOwnershipDetails.Serializer.INSTANCE.deserialize(p, true);
Expand Down
Loading
Loading