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
92 changes: 92 additions & 0 deletions core/api/core.api
Original file line number Diff line number Diff line change
Expand Up @@ -13100,6 +13100,8 @@ public class com/dropbox/core/v2/team/DbxTeamTeamRequests {
public fun membersSetProfileV2Builder (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder;
public fun membersSuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;)V
public fun membersSuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;Z)V
public fun membersSuspendBatch (Ljava/util/List;)Lcom/dropbox/core/v2/async/LaunchResultBase;
public fun membersSuspendBatchJobStatusCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
public fun membersUnsuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;)V
public fun namespacesList ()Lcom/dropbox/core/v2/team/TeamNamespacesListResult;
public fun namespacesList (J)Lcom/dropbox/core/v2/team/TeamNamespacesListResult;
Expand Down Expand Up @@ -15280,6 +15282,96 @@ public class com/dropbox/core/v2/team/MembersSetProfileV2Builder {
public fun withNewSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder;
}

public class com/dropbox/core/v2/team/MembersSuspendBatchComplete {
protected final field failed J
protected final field reportDelivery Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
protected final field requested J
protected final field suspended J
protected final field unknown J
public fun <init> (JJJJLcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;)V
public fun equals (Ljava/lang/Object;)Z
public fun getFailed ()J
public fun getReportDelivery ()Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
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/MembersSuspendBatchError : java/lang/Enum {
public static final field ACTING_ADMIN Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
public static final field DUPLICATE_CLIENT_ITEM_ID Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
public static final field DUPLICATE_TEAM_MEMBER_ID Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
public static final field LAST_ADMIN Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
public static final field TOO_MANY_MEMBERS Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
public static fun values ()[Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
}

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

public final class com/dropbox/core/v2/team/MembersSuspendBatchJobStatus {
public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
public static fun complete (Lcom/dropbox/core/v2/team/MembersSuspendBatchComplete;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
public fun equals (Ljava/lang/Object;)Z
public static fun failed (Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
public fun getCompleteValue ()Lcom/dropbox/core/v2/team/MembersSuspendBatchComplete;
public fun getFailedValue ()Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
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/MembersSuspendBatchJobStatus$Tag;
public fun toString ()Ljava/lang/String;
public fun toStringMultiline ()Ljava/lang/String;
}

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

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

public class com/dropbox/core/v2/team/MembersSuspendBatchTarget {
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/MembersSuspendBatchTaskFailure : java/lang/Enum {
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
public static final field UNUSABLE_RESULT Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
public static fun values ()[Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
}

public final class com/dropbox/core/v2/team/MembersSuspendError : java/lang/Enum {
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendError;
public static final field SUSPEND_INACTIVE_USER Lcom/dropbox/core/v2/team/MembersSuspendError;
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
* {@link
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersRemoveJobStatusGet(String)},
* {@link
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersSuspendBatchJobStatusCheck(String)},
* {@link
* com.dropbox.core.v2.team.DbxTeamTeamRequests#teamFolderArchiveCheck(String)},
* {@link
* com.dropbox.core.v2.files.DbxUserFilesRequests#copyBatchCheck(String)},
Expand Down Expand Up @@ -73,6 +75,7 @@ public class PollErrorException extends DbxApiException {
// 2/team/members/bulk_suspend/job_status/check
// 2/team/members/move_former_member_files/job_status/check
// 2/team/members/remove/job_status/get
// 2/team/members/suspend_batch/job_status/check
// 2/team/team_folder/archive/check
// 2/files/copy_batch/check
// 2/files/copy_batch/check_v2
Expand Down Expand Up @@ -114,6 +117,8 @@ public class PollErrorException extends DbxApiException {
* {@link
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersRemoveJobStatusGet(String)},
* {@link
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersSuspendBatchJobStatusCheck(String)},
* {@link
* com.dropbox.core.v2.team.DbxTeamTeamRequests#teamFolderArchiveCheck(String)},
* {@link
* com.dropbox.core.v2.files.DbxUserFilesRequests#copyBatchCheck(String)},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3605,6 +3605,108 @@ public void membersSuspend(UserSelectorArg user, boolean wipeData) throws Member
membersSuspend(_arg);
}

//
// route 2/team/members/suspend_batch
//

/**
* Launch a member suspension batch. The server enforces a maximum of 500
* members.
*
* @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 membersSuspendBatch(MembersSuspendBatchArg arg) throws MembersSuspendBatchErrorException, DbxException {
try {
return this.client.rpcStyle(this.client.getHost().getApi(),
"2/team/members/suspend_batch",
arg,
false,
MembersSuspendBatchArg.Serializer.INSTANCE,
LaunchResultBase.Serializer.INSTANCE,
MembersSuspendBatchError.Serializer.INSTANCE);
}
catch (DbxWrappedException ex) {
throw new MembersSuspendBatchErrorException("2/team/members/suspend_batch", ex.getRequestId(), ex.getUserMessage(), (MembersSuspendBatchError) ex.getErrorValue());
}
}

/**
* Launch a member suspension batch. The server enforces a maximum of 500
* members.
*
* @param members Must contain between 1 and 500 targets. The launch
* handler also rejects duplicate client item IDs and duplicate member
* 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
* 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.
*
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public LaunchResultBase membersSuspendBatch(List<MembersSuspendBatchTarget> members) throws MembersSuspendBatchErrorException, DbxException {
MembersSuspendBatchArg _arg = new MembersSuspendBatchArg(members);
return membersSuspendBatch(_arg);
}

//
// route 2/team/members/suspend_batch/job_status/check
//

/**
* Poll a previously launched member suspension batch job.
*
* @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; the authorized team admin who initiated the
* batch receives row details in the terminal email report.
*/
MembersSuspendBatchJobStatus membersSuspendBatchJobStatusCheck(PollArg arg) throws PollErrorException, DbxException {
try {
return this.client.rpcStyle(this.client.getHost().getApi(),
"2/team/members/suspend_batch/job_status/check",
arg,
false,
PollArg.Serializer.INSTANCE,
MembersSuspendBatchJobStatus.Serializer.INSTANCE,
PollError.Serializer.INSTANCE);
}
catch (DbxWrappedException ex) {
throw new PollErrorException("2/team/members/suspend_batch/job_status/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue());
}
}

/**
* Poll a previously launched member suspension batch job.
*
* @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; 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.
*/
public MembersSuspendBatchJobStatus membersSuspendBatchJobStatusCheck(String asyncJobId) throws PollErrorException, DbxException {
PollArg _arg = new PollArg(asyncJobId);
return membersSuspendBatchJobStatusCheck(_arg);
}

//
// route 2/team/members/unsuspend
//
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/stone
Submodule stone updated 1 files
+79 −0 team.stone
Loading