Skip to content

Commit f45d421

Browse files
Automated Spec Update (#628)
0adcebc8331935c905bceac02237314074ff5a4a Automated update of the API specification Co-authored-by: dropbox-sdk-updater[bot] <306210582+dropbox-sdk-updater[bot]@users.noreply.github.com> Co-authored-by: dropbox-spec-updater[bot] <306253022+dropbox-spec-updater[bot]@users.noreply.github.com>
1 parent 70501da commit f45d421

5 files changed

Lines changed: 201 additions & 2 deletions

File tree

‎core/api/core.api‎

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13100,6 +13100,8 @@ public class com/dropbox/core/v2/team/DbxTeamTeamRequests {
1310013100
public fun membersSetProfileV2Builder (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder;
1310113101
public fun membersSuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;)V
1310213102
public fun membersSuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;Z)V
13103+
public fun membersSuspendBatch (Ljava/util/List;)Lcom/dropbox/core/v2/async/LaunchResultBase;
13104+
public fun membersSuspendBatchJobStatusCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
1310313105
public fun membersUnsuspend (Lcom/dropbox/core/v2/team/UserSelectorArg;)V
1310413106
public fun namespacesList ()Lcom/dropbox/core/v2/team/TeamNamespacesListResult;
1310513107
public fun namespacesList (J)Lcom/dropbox/core/v2/team/TeamNamespacesListResult;
@@ -15280,6 +15282,96 @@ public class com/dropbox/core/v2/team/MembersSetProfileV2Builder {
1528015282
public fun withNewSurname (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSetProfileV2Builder;
1528115283
}
1528215284

15285+
public class com/dropbox/core/v2/team/MembersSuspendBatchComplete {
15286+
protected final field failed J
15287+
protected final field reportDelivery Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15288+
protected final field requested J
15289+
protected final field suspended J
15290+
protected final field unknown J
15291+
public fun <init> (JJJJLcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;)V
15292+
public fun equals (Ljava/lang/Object;)Z
15293+
public fun getFailed ()J
15294+
public fun getReportDelivery ()Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15295+
public fun getRequested ()J
15296+
public fun getSuspended ()J
15297+
public fun getUnknown ()J
15298+
public fun hashCode ()I
15299+
public fun toString ()Ljava/lang/String;
15300+
public fun toStringMultiline ()Ljava/lang/String;
15301+
}
15302+
15303+
public final class com/dropbox/core/v2/team/MembersSuspendBatchError : java/lang/Enum {
15304+
public static final field ACTING_ADMIN Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15305+
public static final field DUPLICATE_CLIENT_ITEM_ID Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15306+
public static final field DUPLICATE_TEAM_MEMBER_ID Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15307+
public static final field LAST_ADMIN Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15308+
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15309+
public static final field TOO_MANY_MEMBERS Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15310+
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15311+
public static fun values ()[Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15312+
}
15313+
15314+
public class com/dropbox/core/v2/team/MembersSuspendBatchErrorException : com/dropbox/core/DbxApiException {
15315+
public final field errorValue Lcom/dropbox/core/v2/team/MembersSuspendBatchError;
15316+
public fun <init> (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/MembersSuspendBatchError;)V
15317+
}
15318+
15319+
public final class com/dropbox/core/v2/team/MembersSuspendBatchJobStatus {
15320+
public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
15321+
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
15322+
public static fun complete (Lcom/dropbox/core/v2/team/MembersSuspendBatchComplete;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
15323+
public fun equals (Ljava/lang/Object;)Z
15324+
public static fun failed (Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
15325+
public fun getCompleteValue ()Lcom/dropbox/core/v2/team/MembersSuspendBatchComplete;
15326+
public fun getFailedValue ()Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
15327+
public fun hashCode ()I
15328+
public fun isComplete ()Z
15329+
public fun isFailed ()Z
15330+
public fun isInProgress ()Z
15331+
public fun isOther ()Z
15332+
public fun tag ()Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus$Tag;
15333+
public fun toString ()Ljava/lang/String;
15334+
public fun toStringMultiline ()Ljava/lang/String;
15335+
}
15336+
15337+
public final class com/dropbox/core/v2/team/MembersSuspendBatchJobStatus$Tag : java/lang/Enum {
15338+
public static final field COMPLETE Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus$Tag;
15339+
public static final field FAILED Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus$Tag;
15340+
public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus$Tag;
15341+
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus$Tag;
15342+
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus$Tag;
15343+
public static fun values ()[Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus$Tag;
15344+
}
15345+
15346+
public final class com/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus : java/lang/Enum {
15347+
public static final field MEMBERS_SUSPEND_BATCH_REPORT_DELIVERY_STATUS_DELIVERED Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15348+
public static final field MEMBERS_SUSPEND_BATCH_REPORT_DELIVERY_STATUS_FAILED Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15349+
public static final field MEMBERS_SUSPEND_BATCH_REPORT_DELIVERY_STATUS_PENDING Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15350+
public static final field MEMBERS_SUSPEND_BATCH_REPORT_DELIVERY_STATUS_UNSPECIFIED Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15351+
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15352+
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15353+
public static fun values ()[Lcom/dropbox/core/v2/team/MembersSuspendBatchReportDeliveryStatus;
15354+
}
15355+
15356+
public class com/dropbox/core/v2/team/MembersSuspendBatchTarget {
15357+
protected final field clientItemId Ljava/lang/String;
15358+
protected final field suspendArg Lcom/dropbox/core/v2/team/MembersDeactivateArg;
15359+
public fun <init> (Ljava/lang/String;Lcom/dropbox/core/v2/team/MembersDeactivateArg;)V
15360+
public fun equals (Ljava/lang/Object;)Z
15361+
public fun getClientItemId ()Ljava/lang/String;
15362+
public fun getSuspendArg ()Lcom/dropbox/core/v2/team/MembersDeactivateArg;
15363+
public fun hashCode ()I
15364+
public fun toString ()Ljava/lang/String;
15365+
public fun toStringMultiline ()Ljava/lang/String;
15366+
}
15367+
15368+
public final class com/dropbox/core/v2/team/MembersSuspendBatchTaskFailure : java/lang/Enum {
15369+
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
15370+
public static final field UNUSABLE_RESULT Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
15371+
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
15372+
public static fun values ()[Lcom/dropbox/core/v2/team/MembersSuspendBatchTaskFailure;
15373+
}
15374+
1528315375
public final class com/dropbox/core/v2/team/MembersSuspendError : java/lang/Enum {
1528415376
public static final field OTHER Lcom/dropbox/core/v2/team/MembersSuspendError;
1528515377
public static final field SUSPEND_INACTIVE_USER Lcom/dropbox/core/v2/team/MembersSuspendError;

‎core/build/generated_stone_source/main/refs/javadoc-refs.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎core/build/generated_stone_source/main/src/com/dropbox/core/v2/async/PollErrorException.java‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
* {@link
3535
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersRemoveJobStatusGet(String)},
3636
* {@link
37+
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersSuspendBatchJobStatusCheck(String)},
38+
* {@link
3739
* com.dropbox.core.v2.team.DbxTeamTeamRequests#teamFolderArchiveCheck(String)},
3840
* {@link
3941
* com.dropbox.core.v2.files.DbxUserFilesRequests#copyBatchCheck(String)},
@@ -73,6 +75,7 @@ public class PollErrorException extends DbxApiException {
7375
// 2/team/members/bulk_suspend/job_status/check
7476
// 2/team/members/move_former_member_files/job_status/check
7577
// 2/team/members/remove/job_status/get
78+
// 2/team/members/suspend_batch/job_status/check
7679
// 2/team/team_folder/archive/check
7780
// 2/files/copy_batch/check
7881
// 2/files/copy_batch/check_v2
@@ -114,6 +117,8 @@ public class PollErrorException extends DbxApiException {
114117
* {@link
115118
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersRemoveJobStatusGet(String)},
116119
* {@link
120+
* com.dropbox.core.v2.team.DbxTeamTeamRequests#membersSuspendBatchJobStatusCheck(String)},
121+
* {@link
117122
* com.dropbox.core.v2.team.DbxTeamTeamRequests#teamFolderArchiveCheck(String)},
118123
* {@link
119124
* com.dropbox.core.v2.files.DbxUserFilesRequests#copyBatchCheck(String)},

‎core/build/generated_stone_source/main/src/com/dropbox/core/v2/team/DbxTeamTeamRequests.java‎

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3605,6 +3605,108 @@ public void membersSuspend(UserSelectorArg user, boolean wipeData) throws Member
36053605
membersSuspend(_arg);
36063606
}
36073607

3608+
//
3609+
// route 2/team/members/suspend_batch
3610+
//
3611+
3612+
/**
3613+
* Launch a member suspension batch. The server enforces a maximum of 500
3614+
* members.
3615+
*
3616+
* @param arg Launches one action-specific member suspension batch job.
3617+
*
3618+
* @return Result returned by methods that launch an asynchronous job. A
3619+
* method who may either launch an asynchronous job, or complete the
3620+
* request synchronously, can use this union by extending it, and adding
3621+
* a 'complete' field with the type of the synchronous response. See
3622+
* {@link LaunchEmptyResult} for an example.
3623+
*/
3624+
LaunchResultBase membersSuspendBatch(MembersSuspendBatchArg arg) throws MembersSuspendBatchErrorException, DbxException {
3625+
try {
3626+
return this.client.rpcStyle(this.client.getHost().getApi(),
3627+
"2/team/members/suspend_batch",
3628+
arg,
3629+
false,
3630+
MembersSuspendBatchArg.Serializer.INSTANCE,
3631+
LaunchResultBase.Serializer.INSTANCE,
3632+
MembersSuspendBatchError.Serializer.INSTANCE);
3633+
}
3634+
catch (DbxWrappedException ex) {
3635+
throw new MembersSuspendBatchErrorException("2/team/members/suspend_batch", ex.getRequestId(), ex.getUserMessage(), (MembersSuspendBatchError) ex.getErrorValue());
3636+
}
3637+
}
3638+
3639+
/**
3640+
* Launch a member suspension batch. The server enforces a maximum of 500
3641+
* members.
3642+
*
3643+
* @param members Must contain between 1 and 500 targets. The launch
3644+
* handler also rejects duplicate client item IDs and duplicate member
3645+
* selectors. Must contain at least 1 items, contain at most 500 items,
3646+
* not contain a {@code null} item, and not be {@code null}.
3647+
*
3648+
* @return Result returned by methods that launch an asynchronous job. A
3649+
* method who may either launch an asynchronous job, or complete the
3650+
* request synchronously, can use this union by extending it, and adding
3651+
* a 'complete' field with the type of the synchronous response. See
3652+
* {@link LaunchEmptyResult} for an example.
3653+
*
3654+
* @throws IllegalArgumentException If any argument does not meet its
3655+
* preconditions.
3656+
*/
3657+
public LaunchResultBase membersSuspendBatch(List<MembersSuspendBatchTarget> members) throws MembersSuspendBatchErrorException, DbxException {
3658+
MembersSuspendBatchArg _arg = new MembersSuspendBatchArg(members);
3659+
return membersSuspendBatch(_arg);
3660+
}
3661+
3662+
//
3663+
// route 2/team/members/suspend_batch/job_status/check
3664+
//
3665+
3666+
/**
3667+
* Poll a previously launched member suspension batch job.
3668+
*
3669+
* @param arg Arguments for methods that poll the status of an asynchronous
3670+
* job.
3671+
*
3672+
* @return Coarse job state. Live row progress and report contents are
3673+
* intentionally omitted; the authorized team admin who initiated the
3674+
* batch receives row details in the terminal email report.
3675+
*/
3676+
MembersSuspendBatchJobStatus membersSuspendBatchJobStatusCheck(PollArg arg) throws PollErrorException, DbxException {
3677+
try {
3678+
return this.client.rpcStyle(this.client.getHost().getApi(),
3679+
"2/team/members/suspend_batch/job_status/check",
3680+
arg,
3681+
false,
3682+
PollArg.Serializer.INSTANCE,
3683+
MembersSuspendBatchJobStatus.Serializer.INSTANCE,
3684+
PollError.Serializer.INSTANCE);
3685+
}
3686+
catch (DbxWrappedException ex) {
3687+
throw new PollErrorException("2/team/members/suspend_batch/job_status/check", ex.getRequestId(), ex.getUserMessage(), (PollError) ex.getErrorValue());
3688+
}
3689+
}
3690+
3691+
/**
3692+
* Poll a previously launched member suspension batch job.
3693+
*
3694+
* @param asyncJobId Id of the asynchronous job. This is the value of a
3695+
* response returned from the method that launched the job. Must have
3696+
* length of at least 1 and not be {@code null}.
3697+
*
3698+
* @return Coarse job state. Live row progress and report contents are
3699+
* intentionally omitted; the authorized team admin who initiated the
3700+
* batch receives row details in the terminal email report.
3701+
*
3702+
* @throws IllegalArgumentException If any argument does not meet its
3703+
* preconditions.
3704+
*/
3705+
public MembersSuspendBatchJobStatus membersSuspendBatchJobStatusCheck(String asyncJobId) throws PollErrorException, DbxException {
3706+
PollArg _arg = new PollArg(asyncJobId);
3707+
return membersSuspendBatchJobStatusCheck(_arg);
3708+
}
3709+
36083710
//
36093711
// route 2/team/members/unsuspend
36103712
//

‎core/src/main/stone‎

Submodule stone updated 1 file

0 commit comments

Comments
 (0)