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
93 changes: 1 addition & 92 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -12861,97 +12861,6 @@ public class com/dropbox/core/v2/team/BaseDfbReport {
public fun toStringMultiline ()Ljava/lang/String;
}

public class com/dropbox/core/v2/team/BulkSuspendComplete {
protected final field failed J
protected final field reportDelivery Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
protected final field requested J
protected final field suspended J
protected final field unknown J
public fun <init> (JJJJLcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;)V
public fun equals (Ljava/lang/Object;)Z
public fun getFailed ()J
public fun getReportDelivery ()Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
public fun getRequested ()J
public fun getSuspended ()J
public fun getUnknown ()J
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
public fun toStringMultiline ()Ljava/lang/String;
}

public final class com/dropbox/core/v2/team/BulkSuspendError : java/lang/Enum {
public static final field ACTING_ADMIN Lcom/dropbox/core/v2/team/BulkSuspendError;
public static final field DUPLICATE_CLIENT_ITEM_ID Lcom/dropbox/core/v2/team/BulkSuspendError;
public static final field DUPLICATE_TEAM_MEMBER_ID Lcom/dropbox/core/v2/team/BulkSuspendError;
public static final field INVALID_REQUEST Lcom/dropbox/core/v2/team/BulkSuspendError;
public static final field LAST_ADMIN Lcom/dropbox/core/v2/team/BulkSuspendError;
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendError;
public static final field TOO_MANY_MEMBERS Lcom/dropbox/core/v2/team/BulkSuspendError;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendError;
public static fun values ()[Lcom/dropbox/core/v2/team/BulkSuspendError;
}

public class com/dropbox/core/v2/team/BulkSuspendErrorException : com/dropbox/core/DbxApiException {
public final field errorValue Lcom/dropbox/core/v2/team/BulkSuspendError;
public fun <init> (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/BulkSuspendError;)V
}

public final class com/dropbox/core/v2/team/BulkSuspendJobStatus {
public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
public static fun complete (Lcom/dropbox/core/v2/team/BulkSuspendComplete;)Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
public fun equals (Ljava/lang/Object;)Z
public static fun failed (Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;)Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
public fun getCompleteValue ()Lcom/dropbox/core/v2/team/BulkSuspendComplete;
public fun getFailedValue ()Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
public fun hashCode ()I
public fun isComplete ()Z
public fun isFailed ()Z
public fun isInProgress ()Z
public fun isOther ()Z
public fun tag ()Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
public fun toString ()Ljava/lang/String;
public fun toStringMultiline ()Ljava/lang/String;
}

public final class com/dropbox/core/v2/team/BulkSuspendJobStatus$Tag : java/lang/Enum {
public static final field COMPLETE Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
public static final field FAILED Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
public static fun values ()[Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
}

public class com/dropbox/core/v2/team/BulkSuspendMemberTarget {
protected final field clientItemId Ljava/lang/String;
protected final field suspendArg Lcom/dropbox/core/v2/team/MembersDeactivateArg;
public fun <init> (Ljava/lang/String;Lcom/dropbox/core/v2/team/MembersDeactivateArg;)V
public fun equals (Ljava/lang/Object;)Z
public fun getClientItemId ()Ljava/lang/String;
public fun getSuspendArg ()Lcom/dropbox/core/v2/team/MembersDeactivateArg;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
public fun toStringMultiline ()Ljava/lang/String;
}

public final class com/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus : java/lang/Enum {
public static final field BULK_SUSPEND_REPORT_DELIVERY_STATUS_DELIVERED Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
public static final field BULK_SUSPEND_REPORT_DELIVERY_STATUS_FAILED Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
public static final field BULK_SUSPEND_REPORT_DELIVERY_STATUS_PENDING Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
public static final field BULK_SUSPEND_REPORT_DELIVERY_STATUS_UNSPECIFIED Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
public static fun values ()[Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
}

public final class com/dropbox/core/v2/team/BulkSuspendTaskFailure : java/lang/Enum {
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
public static final field UNUSABLE_RESULT Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
public static fun values ()[Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
}

public final class com/dropbox/core/v2/team/CustomQuotaError : java/lang/Enum {
public static final field OTHER Lcom/dropbox/core/v2/team/CustomQuotaError;
public static final field TOO_MANY_USERS Lcom/dropbox/core/v2/team/CustomQuotaError;
Expand Down Expand Up @@ -13066,7 +12975,7 @@ public class com/dropbox/core/v2/team/DbxTeamTeamRequests {
public fun membersAddV2 (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result;
public fun membersAddV2 (Ljava/util/List;Z)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result;
public fun membersBulkSuspend (Ljava/util/List;)Lcom/dropbox/core/v2/async/LaunchResultBase;
public fun membersBulkSuspendJobStatusCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
public fun membersBulkSuspendJobStatusCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
public fun membersDeleteFormerMemberFiles (Lcom/dropbox/core/v2/team/UserSelectorArg;)V
public fun membersDeleteProfilePhoto (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/TeamMemberInfo;
public fun membersDeleteProfilePhotoV2 (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/TeamMemberInfoV2Result;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2225,38 +2225,38 @@ public MembersAddJobStatusV2Result membersAddJobStatusGetV2(String asyncJobId) t
//

/**
* Launch a bulk suspend job. The server enforces a maximum of 500 members.
* Deprecated compatibility alias for MembersSuspendBatch.
*
* @param arg Launches one action-specific bulk suspend job.
* @param arg Launches one action-specific member suspension batch job.
*
* @return Result returned by methods that launch an asynchronous job. A
* method who may either launch an asynchronous job, or complete the
* request synchronously, can use this union by extending it, and adding
* a 'complete' field with the type of the synchronous response. See
* {@link LaunchEmptyResult} for an example.
*/
LaunchResultBase membersBulkSuspend(BulkSuspendArg arg) throws BulkSuspendErrorException, DbxException {
LaunchResultBase membersBulkSuspend(MembersSuspendBatchArg arg) throws MembersSuspendBatchErrorException, DbxException {
try {
return this.client.rpcStyle(this.client.getHost().getApi(),
"2/team/members/bulk_suspend",
arg,
false,
BulkSuspendArg.Serializer.INSTANCE,
MembersSuspendBatchArg.Serializer.INSTANCE,
LaunchResultBase.Serializer.INSTANCE,
BulkSuspendError.Serializer.INSTANCE);
MembersSuspendBatchError.Serializer.INSTANCE);
}
catch (DbxWrappedException ex) {
throw new BulkSuspendErrorException("2/team/members/bulk_suspend", ex.getRequestId(), ex.getUserMessage(), (BulkSuspendError) ex.getErrorValue());
throw new MembersSuspendBatchErrorException("2/team/members/bulk_suspend", ex.getRequestId(), ex.getUserMessage(), (MembersSuspendBatchError) ex.getErrorValue());
}
}

/**
* Launch a bulk suspend job. The server enforces a maximum of 500 members.
* Deprecated compatibility alias for MembersSuspendBatch.
*
* @param members Must contain between 1 and 500 targets. The launch
* handler also rejects duplicate client item IDs and duplicate member
* selectors. Must not contain a {@code null} item and not be {@code
* null}.
* selectors. Must contain at least 1 items, contain at most 500 items,
* not contain a {@code null} item, and not be {@code null}.
*
* @return Result returned by methods that launch an asynchronous job. A
* method who may either launch an asynchronous job, or complete the
Expand All @@ -2266,9 +2266,12 @@ LaunchResultBase membersBulkSuspend(BulkSuspendArg arg) throws BulkSuspendErrorE
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*
* @deprecated
*/
public LaunchResultBase membersBulkSuspend(List<BulkSuspendMemberTarget> members) throws BulkSuspendErrorException, DbxException {
BulkSuspendArg _arg = new BulkSuspendArg(members);
@Deprecated
public LaunchResultBase membersBulkSuspend(List<MembersSuspendBatchTarget> members) throws MembersSuspendBatchErrorException, DbxException {
MembersSuspendBatchArg _arg = new MembersSuspendBatchArg(members);
return membersBulkSuspend(_arg);
}

Expand All @@ -2277,23 +2280,23 @@ public LaunchResultBase membersBulkSuspend(List<BulkSuspendMemberTarget> members
//

/**
* Poll a previously launched bulk suspend job.
* Deprecated compatibility alias for MembersSuspendBatchJobStatusCheck.
*
* @param arg Arguments for methods that poll the status of an asynchronous
* job.
*
* @return Coarse job state. Live row progress and report contents are
* intentionally omitted; callers receive row details in the terminal
* email report.
* intentionally omitted; the authorized team admin who initiated the
* batch receives row details in the terminal email report.
*/
BulkSuspendJobStatus membersBulkSuspendJobStatusCheck(PollArg arg) throws PollErrorException, DbxException {
MembersSuspendBatchJobStatus membersBulkSuspendJobStatusCheck(PollArg arg) throws PollErrorException, DbxException {
try {
return this.client.rpcStyle(this.client.getHost().getApi(),
"2/team/members/bulk_suspend/job_status/check",
arg,
false,
PollArg.Serializer.INSTANCE,
BulkSuspendJobStatus.Serializer.INSTANCE,
MembersSuspendBatchJobStatus.Serializer.INSTANCE,
PollError.Serializer.INSTANCE);
}
catch (DbxWrappedException ex) {
Expand All @@ -2302,20 +2305,23 @@ BulkSuspendJobStatus membersBulkSuspendJobStatusCheck(PollArg arg) throws PollEr
}

/**
* Poll a previously launched bulk suspend job.
* Deprecated compatibility alias for MembersSuspendBatchJobStatusCheck.
*
* @param asyncJobId Id of the asynchronous job. This is the value of a
* response returned from the method that launched the job. Must have
* length of at least 1 and not be {@code null}.
*
* @return Coarse job state. Live row progress and report contents are
* intentionally omitted; callers receive row details in the terminal
* email report.
* intentionally omitted; the authorized team admin who initiated the
* batch receives row details in the terminal email report.
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*
* @deprecated
*/
public BulkSuspendJobStatus membersBulkSuspendJobStatusCheck(String asyncJobId) throws PollErrorException, DbxException {
@Deprecated
public MembersSuspendBatchJobStatus membersBulkSuspendJobStatusCheck(String asyncJobId) throws PollErrorException, DbxException {
PollArg _arg = new PollArg(asyncJobId);
return membersBulkSuspendJobStatusCheck(_arg);
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/stone
Submodule stone updated 1 files
+14 −73 team.stone
Loading