Skip to content
Closed
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
48 changes: 48 additions & 0 deletions Source/SwiftyDropbox/Shared/Generated/Files.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6969,6 +6969,10 @@ public class Files {
case cantMoveIntoVault(Files.MoveIntoVaultError)
/// Some content cannot be moved into the Family Room folder under certain circumstances, see detailed error.
case cantMoveIntoFamily(Files.MoveIntoFamilyError)
/// The destination team folder has reached its storage limit.
case teamFolderInsufficientQuota
/// The user's member folder has reached its storage limit.
case memberFolderInsufficientQuota
/// An unspecified error.
case other

Expand Down Expand Up @@ -7045,6 +7049,14 @@ public class Files {
var d = try ["cant_move_into_family": Files.MoveIntoFamilyErrorSerializer().serialize(arg)]
d[".tag"] = .str("cant_move_into_family")
return .dictionary(d)
case .teamFolderInsufficientQuota:
var d = [String: JSON]()
d[".tag"] = .str("team_folder_insufficient_quota")
return .dictionary(d)
case .memberFolderInsufficientQuota:
var d = [String: JSON]()
d[".tag"] = .str("member_folder_insufficient_quota")
return .dictionary(d)
case .other:
var d = [String: JSON]()
d[".tag"] = .str("other")
Expand Down Expand Up @@ -7090,6 +7102,10 @@ public class Files {
case "cant_move_into_family":
let v = try Files.MoveIntoFamilyErrorSerializer().deserialize(d["cant_move_into_family"] ?? .null)
return RelocationError.cantMoveIntoFamily(v)
case "team_folder_insufficient_quota":
return RelocationError.teamFolderInsufficientQuota
case "member_folder_insufficient_quota":
return RelocationError.memberFolderInsufficientQuota
case "other":
return RelocationError.other
default:
Expand Down Expand Up @@ -7133,6 +7149,10 @@ public class Files {
case cantMoveIntoVault(Files.MoveIntoVaultError)
/// Some content cannot be moved into the Family Room folder under certain circumstances, see detailed error.
case cantMoveIntoFamily(Files.MoveIntoFamilyError)
/// The destination team folder has reached its storage limit.
case teamFolderInsufficientQuota
/// The user's member folder has reached its storage limit.
case memberFolderInsufficientQuota
/// An unspecified error.
case other
/// There are too many write operations in user's Dropbox. Please retry this request.
Expand Down Expand Up @@ -7211,6 +7231,14 @@ public class Files {
var d = try ["cant_move_into_family": Files.MoveIntoFamilyErrorSerializer().serialize(arg)]
d[".tag"] = .str("cant_move_into_family")
return .dictionary(d)
case .teamFolderInsufficientQuota:
var d = [String: JSON]()
d[".tag"] = .str("team_folder_insufficient_quota")
return .dictionary(d)
case .memberFolderInsufficientQuota:
var d = [String: JSON]()
d[".tag"] = .str("member_folder_insufficient_quota")
return .dictionary(d)
case .other:
var d = [String: JSON]()
d[".tag"] = .str("other")
Expand Down Expand Up @@ -7260,6 +7288,10 @@ public class Files {
case "cant_move_into_family":
let v = try Files.MoveIntoFamilyErrorSerializer().deserialize(d["cant_move_into_family"] ?? .null)
return RelocationBatchError.cantMoveIntoFamily(v)
case "team_folder_insufficient_quota":
return RelocationBatchError.teamFolderInsufficientQuota
case "member_folder_insufficient_quota":
return RelocationBatchError.memberFolderInsufficientQuota
case "other":
return RelocationBatchError.other
case "too_many_write_operations":
Expand Down Expand Up @@ -12390,6 +12422,10 @@ public class Files {
case tooManyWriteOperations
/// The user doesn't have permission to perform the action due to restrictions set by a team administrator
case accessRestricted
/// The destination team folder has reached its storage limit.
case teamFolderInsufficientSpace
/// The user's member folder has reached its storage limit.
case memberFolderInsufficientSpace
/// An unspecified error.
case other

Expand Down Expand Up @@ -12446,6 +12482,14 @@ public class Files {
var d = [String: JSON]()
d[".tag"] = .str("access_restricted")
return .dictionary(d)
case .teamFolderInsufficientSpace:
var d = [String: JSON]()
d[".tag"] = .str("team_folder_insufficient_space")
return .dictionary(d)
case .memberFolderInsufficientSpace:
var d = [String: JSON]()
d[".tag"] = .str("member_folder_insufficient_space")
return .dictionary(d)
case .other:
var d = [String: JSON]()
d[".tag"] = .str("other")
Expand Down Expand Up @@ -12478,6 +12522,10 @@ public class Files {
return WriteError.tooManyWriteOperations
case "access_restricted":
return WriteError.accessRestricted
case "team_folder_insufficient_space":
return WriteError.teamFolderInsufficientSpace
case "member_folder_insufficient_space":
return WriteError.memberFolderInsufficientSpace
case "other":
return WriteError.other
default:
Expand Down
19 changes: 9 additions & 10 deletions Source/SwiftyDropbox/Shared/Generated/FilesRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -738,16 +738,15 @@ public class FilesRoutes: DropboxTransportClientOwning {
/// maximum temporary upload link duration is 4 hours. Upon consumption or expiration, a new link will have to
/// be generated. Multiple links may exist for a specific upload path at any given time. The POST request on
/// the temporary upload link must have its Content-Type set to "application/octet-stream". Example temporary
/// upload link consumption request: curl -X POST https://content.dropboxapi.com/apitul/1/bNi2uIYF51cVBND
/// --header "Content-Type: application/octet-stream" --data-binary @local_file.txt A successful temporary
/// upload link consumption request returns the content hash of the uploaded data in JSON format. Example
/// successful temporary upload link consumption response: {"content-hash":
/// "599d71033d700ac892a0e48fa61b125d2f5994"} An unsuccessful temporary upload link consumption request returns
/// any of the following status codes: HTTP 400 Bad Request: Content-Type is not one of
/// application/octet-stream and text/plain or request is invalid. HTTP 409 Conflict: The temporary upload link
/// does not exist or is currently unavailable, the upload failed, or another error happened. HTTP 410 Gone: The
/// temporary upload link is expired or consumed. Example unsuccessful temporary upload link consumption
/// response: Temporary upload link has been recently consumed.
/// upload link consumption request: curl -X POST <temporary_upload_link_url> --header "Content-Type:
/// application/octet-stream" --data-binary @local_file.txt A successful temporary upload link consumption
/// request returns the content hash of the uploaded data in JSON format. Example successful temporary upload
/// link consumption response: {"content-hash": "599d71033d700ac892a0e48fa61b125d2f5994"} An unsuccessful
/// temporary upload link consumption request returns any of the following status codes: HTTP 400 Bad Request:
/// Content-Type is not one of application/octet-stream and text/plain or request is invalid. HTTP 409 Conflict:
/// The temporary upload link does not exist or is currently unavailable, the upload failed, or another error
/// happened. HTTP 410 Gone: The temporary upload link is expired or consumed. Example unsuccessful temporary
/// upload link consumption response: Temporary upload link has been recently consumed.
///
/// - scope: files.content.write
///
Expand Down
Loading
Loading