Skip to content

Commit ef6b168

Browse files
Brent1LTBrent Bumann
and
Brent Bumann
authored
Spec Update 04/20/2022 (dropbox#70)
Change Notes: files Namespace - Add upload_session/start_batch routes - Add UploadSessionStartBatchArg, UploadSessionStartBatchResult structs team_log_generated Namespace - Add ExternalDriveBackupEligibilityStatusCheckedDetails, ExternalDriveBackupStatusChangedDetails, ExternalDriveBackupEligibilityStatusCheckedType, ExternalDriveBackupStatusChangedType structs - Add ExternalDriveBackupEligibilityStatus, ExternalDriveBackupStatus unions Co-authored-by: Brent Bumann <bbumann@dropbox.com>
1 parent eec4b43 commit ef6b168

File tree

2 files changed

+95
-0
lines changed

2 files changed

+95
-0
lines changed

files.stone

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,35 @@ struct UploadSessionStartResult
890890
example default
891891
session_id = "1234faaf0678bcde"
892892

893+
route upload_session/start_batch (UploadSessionStartBatchArg, UploadSessionStartBatchResult, Void)
894+
"This route starts batch of upload_sessions. Please refer to `upload_session/start` usage."
895+
896+
attrs
897+
style = "rpc"
898+
allow_app_folder_app = true
899+
select_admin_mode = "team_admin"
900+
scope = "files.content.write"
901+
902+
struct UploadSessionStartBatchArg
903+
session_type UploadSessionType?
904+
"Type of upload session you want to start. If not specified, default is
905+
:field:`UploadSessionType.sequential`."
906+
907+
num_sessions UInt64(min_value=1, max_value=1000)
908+
"The number of upload sessions to start."
909+
910+
example default
911+
num_sessions = 1
912+
913+
struct UploadSessionStartBatchResult
914+
session_ids List(String)
915+
"A List of unique identifiers for the upload session. Pass each session_id to
916+
:route:`upload_session/append:2` and
917+
:route:`upload_session/finish`."
918+
919+
example default
920+
session_ids = ["1234faaf0678bcde"]
921+
893922
route upload_session/start (UploadSessionStartArg, UploadSessionStartResult, UploadSessionStartError)
894923
"Upload sessions allow you to upload a single file in one or more
895924
requests, for example where the size of the file is greater than 150

team_log_generated.stone

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,26 @@ union ExtendedVersionHistoryPolicy
428428
implicitly_limited
429429
implicitly_unlimited
430430

431+
union ExternalDriveBackupEligibilityStatus
432+
"External Drive Backup eligibility status"
433+
exceed_license_cap
434+
success
435+
431436
union ExternalDriveBackupPolicy
432437
"Policy for controlling team access to external drive backup feature"
433438
default
434439
disabled
435440
enabled
436441

442+
union ExternalDriveBackupStatus
443+
"External Drive Backup status"
444+
broken
445+
created
446+
created_or_broken
447+
deleted
448+
empty
449+
unknown
450+
437451
struct FailureDetailsLogInfo
438452
"Provides details about a failure"
439453

@@ -2648,6 +2662,36 @@ struct DropboxPasswordsNewDeviceEnrolledDetails
26482662
struct EmmRefreshAuthTokenDetails
26492663
"Refreshed auth token used for setting up EMM."
26502664

2665+
struct ExternalDriveBackupEligibilityStatusCheckedDetails
2666+
"Checked external drive backup eligibility status."
2667+
2668+
desktop_device_session_info DesktopDeviceSessionLogInfo
2669+
"Device's session logged information."
2670+
status ExternalDriveBackupEligibilityStatus
2671+
"Current eligibility status of external drive backup."
2672+
number_of_external_drive_backup UInt64
2673+
"Total number of valid external drive backup for all the team members."
2674+
2675+
example default
2676+
desktop_device_session_info = default
2677+
status = success
2678+
number_of_external_drive_backup = 3
2679+
2680+
struct ExternalDriveBackupStatusChangedDetails
2681+
"Modified external drive backup."
2682+
2683+
desktop_device_session_info DesktopDeviceSessionLogInfo
2684+
"Device's session logged information."
2685+
previous_value ExternalDriveBackupStatus
2686+
"Previous status of this external drive backup."
2687+
new_value ExternalDriveBackupStatus
2688+
"Next status of this external drive backup."
2689+
2690+
example default
2691+
desktop_device_session_info = default
2692+
previous_value = empty
2693+
new_value = empty
2694+
26512695
struct AccountCaptureChangeAvailabilityDetails
26522696
"Granted/revoked option to enable account capture on team domains."
26532697

@@ -6761,6 +6805,8 @@ union EventDetails
67616805
dropbox_passwords_exported_details DropboxPasswordsExportedDetails
67626806
dropbox_passwords_new_device_enrolled_details DropboxPasswordsNewDeviceEnrolledDetails
67636807
emm_refresh_auth_token_details EmmRefreshAuthTokenDetails
6808+
external_drive_backup_eligibility_status_checked_details ExternalDriveBackupEligibilityStatusCheckedDetails
6809+
external_drive_backup_status_changed_details ExternalDriveBackupStatusChangedDetails
67646810
account_capture_change_availability_details AccountCaptureChangeAvailabilityDetails
67656811
account_capture_migrate_account_details AccountCaptureMigrateAccountDetails
67666812
account_capture_notification_emails_sent_details AccountCaptureNotificationEmailsSentDetails
@@ -7526,6 +7572,18 @@ struct EmmRefreshAuthTokenType
75267572
example default
75277573
description = "(devices) Refreshed auth token used for setting up EMM"
75287574

7575+
struct ExternalDriveBackupEligibilityStatusCheckedType
7576+
description String
7577+
7578+
example default
7579+
description = "(devices) Checked external drive backup eligibility status"
7580+
7581+
struct ExternalDriveBackupStatusChangedType
7582+
description String
7583+
7584+
example default
7585+
description = "(devices) Modified external drive backup"
7586+
75297587
struct AccountCaptureChangeAvailabilityType
75307588
description String
75317589

@@ -10184,6 +10242,10 @@ union EventType
1018410242
"(devices) Enrolled new Dropbox Passwords device"
1018510243
emm_refresh_auth_token EmmRefreshAuthTokenType
1018610244
"(devices) Refreshed auth token used for setting up EMM"
10245+
external_drive_backup_eligibility_status_checked ExternalDriveBackupEligibilityStatusCheckedType
10246+
"(devices) Checked external drive backup eligibility status"
10247+
external_drive_backup_status_changed ExternalDriveBackupStatusChangedType
10248+
"(devices) Modified external drive backup"
1018710249
account_capture_change_availability AccountCaptureChangeAvailabilityType
1018810250
"(domains) Granted/revoked option to enable account capture on team domains"
1018910251
account_capture_migrate_account AccountCaptureMigrateAccountType
@@ -11150,6 +11212,10 @@ union EventTypeArg
1115011212
"(devices) Enrolled new Dropbox Passwords device"
1115111213
emm_refresh_auth_token
1115211214
"(devices) Refreshed auth token used for setting up EMM"
11215+
external_drive_backup_eligibility_status_checked
11216+
"(devices) Checked external drive backup eligibility status"
11217+
external_drive_backup_status_changed
11218+
"(devices) Modified external drive backup"
1115311219
account_capture_change_availability
1115411220
"(domains) Granted/revoked option to enable account capture on team domains"
1115511221
account_capture_migrate_account

0 commit comments

Comments
 (0)