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
29 changes: 29 additions & 0 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -20871,6 +20871,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public fun getProtectInternalDomainsChangedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectInternalDomainsChangedDetails;
public fun getProtectPolicyActivatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectPolicyActivatedDetails;
public fun getProtectPolicyDeactivatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectPolicyDeactivatedDetails;
public fun getProtectPolicyScheduledDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectPolicyScheduledDetails;
public fun getProtectPolicyUpdatedDetailsValue ()Lcom/dropbox/core/v2/teamlog/ProtectPolicyUpdatedDetails;
public fun getRansomwareAlertCreateReportDetailsValue ()Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportDetails;
public fun getRansomwareAlertCreateReportFailedDetailsValue ()Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedDetails;
Expand Down Expand Up @@ -21538,6 +21539,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public fun isProtectInternalDomainsChangedDetails ()Z
public fun isProtectPolicyActivatedDetails ()Z
public fun isProtectPolicyDeactivatedDetails ()Z
public fun isProtectPolicyScheduledDetails ()Z
public fun isProtectPolicyUpdatedDetails ()Z
public fun isRansomwareAlertCreateReportDetails ()Z
public fun isRansomwareAlertCreateReportFailedDetails ()Z
Expand Down Expand Up @@ -21938,6 +21940,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails {
public static fun protectInternalDomainsChangedDetails (Lcom/dropbox/core/v2/teamlog/ProtectInternalDomainsChangedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectPolicyActivatedDetails (Lcom/dropbox/core/v2/teamlog/ProtectPolicyActivatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectPolicyDeactivatedDetails (Lcom/dropbox/core/v2/teamlog/ProtectPolicyDeactivatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectPolicyScheduledDetails (Lcom/dropbox/core/v2/teamlog/ProtectPolicyScheduledDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun protectPolicyUpdatedDetails (Lcom/dropbox/core/v2/teamlog/ProtectPolicyUpdatedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun ransomwareAlertCreateReportDetails (Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
public static fun ransomwareAlertCreateReportFailedDetails (Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedDetails;)Lcom/dropbox/core/v2/teamlog/EventDetails;
Expand Down Expand Up @@ -22575,6 +22578,7 @@ public final class com/dropbox/core/v2/teamlog/EventDetails$Tag : java/lang/Enum
public static final field PROTECT_INTERNAL_DOMAINS_CHANGED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_POLICY_ACTIVATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_POLICY_DEACTIVATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_POLICY_SCHEDULED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field PROTECT_POLICY_UPDATED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field RANSOMWARE_ALERT_CREATE_REPORT_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
public static final field RANSOMWARE_ALERT_CREATE_REPORT_FAILED_DETAILS Lcom/dropbox/core/v2/teamlog/EventDetails$Tag;
Expand Down Expand Up @@ -23406,6 +23410,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public fun getProtectInternalDomainsChangedValue ()Lcom/dropbox/core/v2/teamlog/ProtectInternalDomainsChangedType;
public fun getProtectPolicyActivatedValue ()Lcom/dropbox/core/v2/teamlog/ProtectPolicyActivatedType;
public fun getProtectPolicyDeactivatedValue ()Lcom/dropbox/core/v2/teamlog/ProtectPolicyDeactivatedType;
public fun getProtectPolicyScheduledValue ()Lcom/dropbox/core/v2/teamlog/ProtectPolicyScheduledType;
public fun getProtectPolicyUpdatedValue ()Lcom/dropbox/core/v2/teamlog/ProtectPolicyUpdatedType;
public fun getRansomwareAlertCreateReportFailedValue ()Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedType;
public fun getRansomwareAlertCreateReportValue ()Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportType;
Expand Down Expand Up @@ -24072,6 +24077,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public fun isProtectInternalDomainsChanged ()Z
public fun isProtectPolicyActivated ()Z
public fun isProtectPolicyDeactivated ()Z
public fun isProtectPolicyScheduled ()Z
public fun isProtectPolicyUpdated ()Z
public fun isRansomwareAlertCreateReport ()Z
public fun isRansomwareAlertCreateReportFailed ()Z
Expand Down Expand Up @@ -24471,6 +24477,7 @@ public final class com/dropbox/core/v2/teamlog/EventType {
public static fun protectInternalDomainsChanged (Lcom/dropbox/core/v2/teamlog/ProtectInternalDomainsChangedType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectPolicyActivated (Lcom/dropbox/core/v2/teamlog/ProtectPolicyActivatedType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectPolicyDeactivated (Lcom/dropbox/core/v2/teamlog/ProtectPolicyDeactivatedType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectPolicyScheduled (Lcom/dropbox/core/v2/teamlog/ProtectPolicyScheduledType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun protectPolicyUpdated (Lcom/dropbox/core/v2/teamlog/ProtectPolicyUpdatedType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun ransomwareAlertCreateReport (Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportType;)Lcom/dropbox/core/v2/teamlog/EventType;
public static fun ransomwareAlertCreateReportFailed (Lcom/dropbox/core/v2/teamlog/RansomwareAlertCreateReportFailedType;)Lcom/dropbox/core/v2/teamlog/EventType;
Expand Down Expand Up @@ -25107,6 +25114,7 @@ public final class com/dropbox/core/v2/teamlog/EventType$Tag : java/lang/Enum {
public static final field PROTECT_INTERNAL_DOMAINS_CHANGED Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_POLICY_ACTIVATED Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_POLICY_DEACTIVATED Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_POLICY_SCHEDULED Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field PROTECT_POLICY_UPDATED Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field RANSOMWARE_ALERT_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventType$Tag;
public static final field RANSOMWARE_ALERT_CREATE_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventType$Tag;
Expand Down Expand Up @@ -25742,6 +25750,7 @@ public final class com/dropbox/core/v2/teamlog/EventTypeArg : java/lang/Enum {
public static final field PROTECT_INTERNAL_DOMAINS_CHANGED Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_POLICY_ACTIVATED Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_POLICY_DEACTIVATED Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_POLICY_SCHEDULED Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field PROTECT_POLICY_UPDATED Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field RANSOMWARE_ALERT_CREATE_REPORT Lcom/dropbox/core/v2/teamlog/EventTypeArg;
public static final field RANSOMWARE_ALERT_CREATE_REPORT_FAILED Lcom/dropbox/core/v2/teamlog/EventTypeArg;
Expand Down Expand Up @@ -32669,6 +32678,26 @@ public class com/dropbox/core/v2/teamlog/ProtectPolicyDeactivatedType {
public fun toStringMultiline ()Ljava/lang/String;
}

public class com/dropbox/core/v2/teamlog/ProtectPolicyScheduledDetails {
protected final field policyId Ljava/lang/String;
public fun <init> (Ljava/lang/String;)V
public fun equals (Ljava/lang/Object;)Z
public fun getPolicyId ()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/ProtectPolicyScheduledType {
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/ProtectPolicyUpdatedDetails {
protected final field policyId Ljava/lang/String;
public fun <init> (Ljava/lang/String;)V
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ public enum Tag {
PROTECT_INTERNAL_DOMAINS_CHANGED_DETAILS, // ProtectInternalDomainsChangedDetails
PROTECT_POLICY_ACTIVATED_DETAILS, // ProtectPolicyActivatedDetails
PROTECT_POLICY_DEACTIVATED_DETAILS, // ProtectPolicyDeactivatedDetails
PROTECT_POLICY_SCHEDULED_DETAILS, // ProtectPolicyScheduledDetails
PROTECT_POLICY_UPDATED_DETAILS, // ProtectPolicyUpdatedDetails
CLASSIFICATION_CREATE_REPORT_DETAILS, // ClassificationCreateReportDetails
CLASSIFICATION_CREATE_REPORT_FAIL_DETAILS, // ClassificationCreateReportFailDetails
Expand Down Expand Up @@ -977,6 +978,7 @@ public enum Tag {
private ProtectInternalDomainsChangedDetails protectInternalDomainsChangedDetailsValue;
private ProtectPolicyActivatedDetails protectPolicyActivatedDetailsValue;
private ProtectPolicyDeactivatedDetails protectPolicyDeactivatedDetailsValue;
private ProtectPolicyScheduledDetails protectPolicyScheduledDetailsValue;
private ProtectPolicyUpdatedDetails protectPolicyUpdatedDetailsValue;
private ClassificationCreateReportDetails classificationCreateReportDetailsValue;
private ClassificationCreateReportFailDetails classificationCreateReportFailDetailsValue;
Expand Down Expand Up @@ -6002,6 +6004,22 @@ private EventDetails withTagAndProtectPolicyDeactivatedDetails(Tag _tag, Protect
return result;
}

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

/**
* Additional fields depending on the event type.
*
Expand Down Expand Up @@ -25655,6 +25673,55 @@ public ProtectPolicyDeactivatedDetails getProtectPolicyDeactivatedDetailsValue()
return protectPolicyDeactivatedDetailsValue;
}

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

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

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

/**
* Returns {@code true} if this instance has the tag {@link
* Tag#PROTECT_POLICY_UPDATED_DETAILS}, {@code false} otherwise.
Expand Down Expand Up @@ -42884,6 +42951,7 @@ public int hashCode() {
this.protectInternalDomainsChangedDetailsValue,
this.protectPolicyActivatedDetailsValue,
this.protectPolicyDeactivatedDetailsValue,
this.protectPolicyScheduledDetailsValue,
this.protectPolicyUpdatedDetailsValue,
this.classificationCreateReportDetailsValue,
this.classificationCreateReportFailDetailsValue,
Expand Down Expand Up @@ -43819,6 +43887,8 @@ else if (obj instanceof EventDetails) {
return (this.protectPolicyActivatedDetailsValue == other.protectPolicyActivatedDetailsValue) || (this.protectPolicyActivatedDetailsValue.equals(other.protectPolicyActivatedDetailsValue));
case PROTECT_POLICY_DEACTIVATED_DETAILS:
return (this.protectPolicyDeactivatedDetailsValue == other.protectPolicyDeactivatedDetailsValue) || (this.protectPolicyDeactivatedDetailsValue.equals(other.protectPolicyDeactivatedDetailsValue));
case PROTECT_POLICY_SCHEDULED_DETAILS:
return (this.protectPolicyScheduledDetailsValue == other.protectPolicyScheduledDetailsValue) || (this.protectPolicyScheduledDetailsValue.equals(other.protectPolicyScheduledDetailsValue));
case PROTECT_POLICY_UPDATED_DETAILS:
return (this.protectPolicyUpdatedDetailsValue == other.protectPolicyUpdatedDetailsValue) || (this.protectPolicyUpdatedDetailsValue.equals(other.protectPolicyUpdatedDetailsValue));
case CLASSIFICATION_CREATE_REPORT_DETAILS:
Expand Down Expand Up @@ -46551,6 +46621,13 @@ public void serialize(EventDetails value, JsonGenerator g) throws IOException, J
g.writeEndObject();
break;
}
case PROTECT_POLICY_SCHEDULED_DETAILS: {
g.writeStartObject();
writeTag("protect_policy_scheduled_details", g);
ProtectPolicyScheduledDetails.Serializer.INSTANCE.serialize(value.protectPolicyScheduledDetailsValue, g, true);
g.writeEndObject();
break;
}
case PROTECT_POLICY_UPDATED_DETAILS: {
g.writeStartObject();
writeTag("protect_policy_updated_details", g);
Expand Down Expand Up @@ -50411,6 +50488,11 @@ else if ("protect_policy_deactivated_details".equals(tag)) {
fieldValue = ProtectPolicyDeactivatedDetails.Serializer.INSTANCE.deserialize(p, true);
value = EventDetails.protectPolicyDeactivatedDetails(fieldValue);
}
else if ("protect_policy_scheduled_details".equals(tag)) {
ProtectPolicyScheduledDetails fieldValue = null;
fieldValue = ProtectPolicyScheduledDetails.Serializer.INSTANCE.deserialize(p, true);
value = EventDetails.protectPolicyScheduledDetails(fieldValue);
}
else if ("protect_policy_updated_details".equals(tag)) {
ProtectPolicyUpdatedDetails fieldValue = null;
fieldValue = ProtectPolicyUpdatedDetails.Serializer.INSTANCE.deserialize(p, true);
Expand Down
Loading
Loading