Skip to content

Commit f8396c3

Browse files
Automated Spec Update (#629)
248109f2fb632e0f545e13ed1852d2b39f5c45ad 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 f45d421 commit f8396c3

4 files changed

Lines changed: 29 additions & 114 deletions

File tree

‎core/api/core.api‎

Lines changed: 1 addition & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -12861,97 +12861,6 @@ public class com/dropbox/core/v2/team/BaseDfbReport {
1286112861
public fun toStringMultiline ()Ljava/lang/String;
1286212862
}
1286312863

12864-
public class com/dropbox/core/v2/team/BulkSuspendComplete {
12865-
protected final field failed J
12866-
protected final field reportDelivery Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12867-
protected final field requested J
12868-
protected final field suspended J
12869-
protected final field unknown J
12870-
public fun <init> (JJJJLcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;)V
12871-
public fun equals (Ljava/lang/Object;)Z
12872-
public fun getFailed ()J
12873-
public fun getReportDelivery ()Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12874-
public fun getRequested ()J
12875-
public fun getSuspended ()J
12876-
public fun getUnknown ()J
12877-
public fun hashCode ()I
12878-
public fun toString ()Ljava/lang/String;
12879-
public fun toStringMultiline ()Ljava/lang/String;
12880-
}
12881-
12882-
public final class com/dropbox/core/v2/team/BulkSuspendError : java/lang/Enum {
12883-
public static final field ACTING_ADMIN Lcom/dropbox/core/v2/team/BulkSuspendError;
12884-
public static final field DUPLICATE_CLIENT_ITEM_ID Lcom/dropbox/core/v2/team/BulkSuspendError;
12885-
public static final field DUPLICATE_TEAM_MEMBER_ID Lcom/dropbox/core/v2/team/BulkSuspendError;
12886-
public static final field INVALID_REQUEST Lcom/dropbox/core/v2/team/BulkSuspendError;
12887-
public static final field LAST_ADMIN Lcom/dropbox/core/v2/team/BulkSuspendError;
12888-
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendError;
12889-
public static final field TOO_MANY_MEMBERS Lcom/dropbox/core/v2/team/BulkSuspendError;
12890-
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendError;
12891-
public static fun values ()[Lcom/dropbox/core/v2/team/BulkSuspendError;
12892-
}
12893-
12894-
public class com/dropbox/core/v2/team/BulkSuspendErrorException : com/dropbox/core/DbxApiException {
12895-
public final field errorValue Lcom/dropbox/core/v2/team/BulkSuspendError;
12896-
public fun <init> (Ljava/lang/String;Ljava/lang/String;Lcom/dropbox/core/LocalizedText;Lcom/dropbox/core/v2/team/BulkSuspendError;)V
12897-
}
12898-
12899-
public final class com/dropbox/core/v2/team/BulkSuspendJobStatus {
12900-
public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
12901-
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
12902-
public static fun complete (Lcom/dropbox/core/v2/team/BulkSuspendComplete;)Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
12903-
public fun equals (Ljava/lang/Object;)Z
12904-
public static fun failed (Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;)Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
12905-
public fun getCompleteValue ()Lcom/dropbox/core/v2/team/BulkSuspendComplete;
12906-
public fun getFailedValue ()Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
12907-
public fun hashCode ()I
12908-
public fun isComplete ()Z
12909-
public fun isFailed ()Z
12910-
public fun isInProgress ()Z
12911-
public fun isOther ()Z
12912-
public fun tag ()Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
12913-
public fun toString ()Ljava/lang/String;
12914-
public fun toStringMultiline ()Ljava/lang/String;
12915-
}
12916-
12917-
public final class com/dropbox/core/v2/team/BulkSuspendJobStatus$Tag : java/lang/Enum {
12918-
public static final field COMPLETE Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
12919-
public static final field FAILED Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
12920-
public static final field IN_PROGRESS Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
12921-
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
12922-
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
12923-
public static fun values ()[Lcom/dropbox/core/v2/team/BulkSuspendJobStatus$Tag;
12924-
}
12925-
12926-
public class com/dropbox/core/v2/team/BulkSuspendMemberTarget {
12927-
protected final field clientItemId Ljava/lang/String;
12928-
protected final field suspendArg Lcom/dropbox/core/v2/team/MembersDeactivateArg;
12929-
public fun <init> (Ljava/lang/String;Lcom/dropbox/core/v2/team/MembersDeactivateArg;)V
12930-
public fun equals (Ljava/lang/Object;)Z
12931-
public fun getClientItemId ()Ljava/lang/String;
12932-
public fun getSuspendArg ()Lcom/dropbox/core/v2/team/MembersDeactivateArg;
12933-
public fun hashCode ()I
12934-
public fun toString ()Ljava/lang/String;
12935-
public fun toStringMultiline ()Ljava/lang/String;
12936-
}
12937-
12938-
public final class com/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus : java/lang/Enum {
12939-
public static final field BULK_SUSPEND_REPORT_DELIVERY_STATUS_DELIVERED Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12940-
public static final field BULK_SUSPEND_REPORT_DELIVERY_STATUS_FAILED Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12941-
public static final field BULK_SUSPEND_REPORT_DELIVERY_STATUS_PENDING Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12942-
public static final field BULK_SUSPEND_REPORT_DELIVERY_STATUS_UNSPECIFIED Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12943-
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12944-
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12945-
public static fun values ()[Lcom/dropbox/core/v2/team/BulkSuspendReportDeliveryStatus;
12946-
}
12947-
12948-
public final class com/dropbox/core/v2/team/BulkSuspendTaskFailure : java/lang/Enum {
12949-
public static final field OTHER Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
12950-
public static final field UNUSABLE_RESULT Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
12951-
public static fun valueOf (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
12952-
public static fun values ()[Lcom/dropbox/core/v2/team/BulkSuspendTaskFailure;
12953-
}
12954-
1295512864
public final class com/dropbox/core/v2/team/CustomQuotaError : java/lang/Enum {
1295612865
public static final field OTHER Lcom/dropbox/core/v2/team/CustomQuotaError;
1295712866
public static final field TOO_MANY_USERS Lcom/dropbox/core/v2/team/CustomQuotaError;
@@ -13066,7 +12975,7 @@ public class com/dropbox/core/v2/team/DbxTeamTeamRequests {
1306612975
public fun membersAddV2 (Ljava/util/List;)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result;
1306712976
public fun membersAddV2 (Ljava/util/List;Z)Lcom/dropbox/core/v2/team/MembersAddLaunchV2Result;
1306812977
public fun membersBulkSuspend (Ljava/util/List;)Lcom/dropbox/core/v2/async/LaunchResultBase;
13069-
public fun membersBulkSuspendJobStatusCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/team/BulkSuspendJobStatus;
12978+
public fun membersBulkSuspendJobStatusCheck (Ljava/lang/String;)Lcom/dropbox/core/v2/team/MembersSuspendBatchJobStatus;
1307012979
public fun membersDeleteFormerMemberFiles (Lcom/dropbox/core/v2/team/UserSelectorArg;)V
1307112980
public fun membersDeleteProfilePhoto (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/TeamMemberInfo;
1307212981
public fun membersDeleteProfilePhotoV2 (Lcom/dropbox/core/v2/team/UserSelectorArg;)Lcom/dropbox/core/v2/team/TeamMemberInfoV2Result;

‎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/team/DbxTeamTeamRequests.java‎

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,38 +2225,38 @@ public MembersAddJobStatusV2Result membersAddJobStatusGetV2(String asyncJobId) t
22252225
//
22262226

22272227
/**
2228-
* Launch a bulk suspend job. The server enforces a maximum of 500 members.
2228+
* Deprecated compatibility alias for MembersSuspendBatch.
22292229
*
2230-
* @param arg Launches one action-specific bulk suspend job.
2230+
* @param arg Launches one action-specific member suspension batch job.
22312231
*
22322232
* @return Result returned by methods that launch an asynchronous job. A
22332233
* method who may either launch an asynchronous job, or complete the
22342234
* request synchronously, can use this union by extending it, and adding
22352235
* a 'complete' field with the type of the synchronous response. See
22362236
* {@link LaunchEmptyResult} for an example.
22372237
*/
2238-
LaunchResultBase membersBulkSuspend(BulkSuspendArg arg) throws BulkSuspendErrorException, DbxException {
2238+
LaunchResultBase membersBulkSuspend(MembersSuspendBatchArg arg) throws MembersSuspendBatchErrorException, DbxException {
22392239
try {
22402240
return this.client.rpcStyle(this.client.getHost().getApi(),
22412241
"2/team/members/bulk_suspend",
22422242
arg,
22432243
false,
2244-
BulkSuspendArg.Serializer.INSTANCE,
2244+
MembersSuspendBatchArg.Serializer.INSTANCE,
22452245
LaunchResultBase.Serializer.INSTANCE,
2246-
BulkSuspendError.Serializer.INSTANCE);
2246+
MembersSuspendBatchError.Serializer.INSTANCE);
22472247
}
22482248
catch (DbxWrappedException ex) {
2249-
throw new BulkSuspendErrorException("2/team/members/bulk_suspend", ex.getRequestId(), ex.getUserMessage(), (BulkSuspendError) ex.getErrorValue());
2249+
throw new MembersSuspendBatchErrorException("2/team/members/bulk_suspend", ex.getRequestId(), ex.getUserMessage(), (MembersSuspendBatchError) ex.getErrorValue());
22502250
}
22512251
}
22522252

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

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

22792282
/**
2280-
* Poll a previously launched bulk suspend job.
2283+
* Deprecated compatibility alias for MembersSuspendBatchJobStatusCheck.
22812284
*
22822285
* @param arg Arguments for methods that poll the status of an asynchronous
22832286
* job.
22842287
*
22852288
* @return Coarse job state. Live row progress and report contents are
2286-
* intentionally omitted; callers receive row details in the terminal
2287-
* email report.
2289+
* intentionally omitted; the authorized team admin who initiated the
2290+
* batch receives row details in the terminal email report.
22882291
*/
2289-
BulkSuspendJobStatus membersBulkSuspendJobStatusCheck(PollArg arg) throws PollErrorException, DbxException {
2292+
MembersSuspendBatchJobStatus membersBulkSuspendJobStatusCheck(PollArg arg) throws PollErrorException, DbxException {
22902293
try {
22912294
return this.client.rpcStyle(this.client.getHost().getApi(),
22922295
"2/team/members/bulk_suspend/job_status/check",
22932296
arg,
22942297
false,
22952298
PollArg.Serializer.INSTANCE,
2296-
BulkSuspendJobStatus.Serializer.INSTANCE,
2299+
MembersSuspendBatchJobStatus.Serializer.INSTANCE,
22972300
PollError.Serializer.INSTANCE);
22982301
}
22992302
catch (DbxWrappedException ex) {
@@ -2302,20 +2305,23 @@ BulkSuspendJobStatus membersBulkSuspendJobStatusCheck(PollArg arg) throws PollEr
23022305
}
23032306

23042307
/**
2305-
* Poll a previously launched bulk suspend job.
2308+
* Deprecated compatibility alias for MembersSuspendBatchJobStatusCheck.
23062309
*
23072310
* @param asyncJobId Id of the asynchronous job. This is the value of a
23082311
* response returned from the method that launched the job. Must have
23092312
* length of at least 1 and not be {@code null}.
23102313
*
23112314
* @return Coarse job state. Live row progress and report contents are
2312-
* intentionally omitted; callers receive row details in the terminal
2313-
* email report.
2315+
* intentionally omitted; the authorized team admin who initiated the
2316+
* batch receives row details in the terminal email report.
23142317
*
23152318
* @throws IllegalArgumentException If any argument does not meet its
23162319
* preconditions.
2320+
*
2321+
* @deprecated
23172322
*/
2318-
public BulkSuspendJobStatus membersBulkSuspendJobStatusCheck(String asyncJobId) throws PollErrorException, DbxException {
2323+
@Deprecated
2324+
public MembersSuspendBatchJobStatus membersBulkSuspendJobStatusCheck(String asyncJobId) throws PollErrorException, DbxException {
23192325
PollArg _arg = new PollArg(asyncJobId);
23202326
return membersBulkSuspendJobStatusCheck(_arg);
23212327
}

‎core/src/main/stone‎

Submodule stone updated 1 file

0 commit comments

Comments
 (0)