From 4557c36375922690a199bddad6d2dfffd4caf98d Mon Sep 17 00:00:00 2001 From: Julian Locke Date: Mon, 30 Sep 2024 15:58:40 -0400 Subject: [PATCH] run codegen --- .../Routes/DBFILEREQUESTSUserAuthRoutes.h | 14 +- .../Routes/DBFILEREQUESTSUserAuthRoutes.m | 10 +- .../Generated/Routes/DBFILESUserAuthRoutes.h | 412 +++++++++--------- .../Generated/Routes/DBFILESUserAuthRoutes.m | 178 ++++---- .../Generated/Routes/DBTEAMTeamAuthRoutes.h | 172 ++++---- .../Generated/Routes/DBTEAMTeamAuthRoutes.m | 132 +++--- .../RouteObjects/DBFILEREQUESTSRouteObjects.h | 6 +- .../RouteObjects/DBFILEREQUESTSRouteObjects.m | 34 +- .../Routes/RouteObjects/DBFILESRouteObjects.h | 46 +- .../Routes/RouteObjects/DBFILESRouteObjects.m | 258 +++++------ .../Routes/RouteObjects/DBTEAMRouteObjects.h | 42 +- .../Routes/RouteObjects/DBTEAMRouteObjects.m | 246 +++++------ 12 files changed, 775 insertions(+), 775 deletions(-) diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILEREQUESTSUserAuthRoutes.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILEREQUESTSUserAuthRoutes.h index 157553fe1..ab44751a7 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILEREQUESTSUserAuthRoutes.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILEREQUESTSUserAuthRoutes.h @@ -124,32 +124,32 @@ NS_ASSUME_NONNULL_BEGIN /// file requests with destinations in the app folder. /// /// -/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsV2Result` object on +/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsResult` object on /// success or a `DBFILEREQUESTSListFileRequestsError` object on failure. /// -- (DBRpcTask *)listV2; +- (DBRpcTask *)list; /// /// Returns a list of file requests owned by this user. For apps with the app folder permission, this will only return /// file requests with destinations in the app folder. /// -/// @param limit The maximum number of file requests that should be returned per request. /// /// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsV2Result` object on /// success or a `DBFILEREQUESTSListFileRequestsError` object on failure. /// -- (DBRpcTask *)listV2: - (nullable NSNumber *)limit; +- (DBRpcTask *)listV2; /// /// Returns a list of file requests owned by this user. For apps with the app folder permission, this will only return /// file requests with destinations in the app folder. /// +/// @param limit The maximum number of file requests that should be returned per request. /// -/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsResult` object on +/// @return Through the response callback, the caller will receive a `DBFILEREQUESTSListFileRequestsV2Result` object on /// success or a `DBFILEREQUESTSListFileRequestsError` object on failure. /// -- (DBRpcTask *)list; +- (DBRpcTask *)listV2: + (nullable NSNumber *)limit; /// /// Once a cursor has been retrieved from `list`, use this to paginate through all file requests. The cursor must come diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILEREQUESTSUserAuthRoutes.m b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILEREQUESTSUserAuthRoutes.m index 31879cec8..76f43615f 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILEREQUESTSUserAuthRoutes.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILEREQUESTSUserAuthRoutes.m @@ -87,6 +87,11 @@ - (DBRpcTask *)get:(NSString *)id_ { return [self.client requestRpc:route arg:arg]; } +- (DBRpcTask *)list { + DBRoute *route = DBFILEREQUESTSRouteObjects.DBFILEREQUESTSList; + return [self.client requestRpc:route arg:nil]; +} + - (DBRpcTask *)listV2 { DBRoute *route = DBFILEREQUESTSRouteObjects.DBFILEREQUESTSListV2; DBFILEREQUESTSListFileRequestsArg *arg = [[DBFILEREQUESTSListFileRequestsArg alloc] initDefault]; @@ -99,11 +104,6 @@ - (DBRpcTask *)listV2:(NSNumber *)limit { return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)list { - DBRoute *route = DBFILEREQUESTSRouteObjects.DBFILEREQUESTSList; - return [self.client requestRpc:route arg:nil]; -} - - (DBRpcTask *)listContinue:(NSString *)cursor { DBRoute *route = DBFILEREQUESTSRouteObjects.DBFILEREQUESTSListContinue; DBFILEREQUESTSListFileRequestsContinueArg *arg = diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.h index 2111e0040..a02adeb51 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.h @@ -312,35 +312,6 @@ NS_ASSUME_NONNULL_BEGIN contentHash:(nullable NSString *)contentHash inputStream:(NSInputStream *)inputStream __deprecated_msg("alphaUpload is deprecated. Use upload."); -/// -/// Copy a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents -/// will be copied. -/// -/// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationResult` object on success or a -/// `DBFILESRelocationError` object on failure. -/// -- (DBRpcTask *)dCopyV2:(NSString *)fromPath - toPath:(NSString *)toPath; - -/// -/// Copy a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents -/// will be copied. -/// -/// @param allowSharedFolder This flag has no effect. -/// @param autorename If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. -/// @param allowOwnershipTransfer Allow moves by owner even if it would result in an ownership transfer for the content -/// being moved. This does not apply to copies. -/// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationResult` object on success or a -/// `DBFILESRelocationError` object on failure. -/// -- (DBRpcTask *)dCopyV2:(NSString *)fromPath - toPath:(NSString *)toPath - allowSharedFolder:(nullable NSNumber *)allowSharedFolder - autorename:(nullable NSNumber *)autorename - allowOwnershipTransfer:(nullable NSNumber *)allowOwnershipTransfer; - /// /// DEPRECATED: Copy a file or folder to a different location in the user's Dropbox. If the source path is a folder all /// its contents will be copied. @@ -373,34 +344,33 @@ NS_ASSUME_NONNULL_BEGIN __deprecated_msg("dCopy is deprecated. Use dCopy."); /// -/// Copy multiple files or folders to different locations at once in the user's Dropbox. This route will replace -/// `dCopyBatch`. The main difference is this route will return status for each entry, while `dCopyBatch` raises failure -/// if any entry fails. This route will either finish synchronously, or return a job ID and do the async copy job in -/// background. Please use `dCopyBatchCheck` to check the job status. +/// Copy a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents +/// will be copied. /// -/// @param entries List of entries to be moved or copied. Each entry is RelocationPath. /// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2Launch` object on success -/// or a `void` object on failure. +/// @return Through the response callback, the caller will receive a `DBFILESRelocationResult` object on success or a +/// `DBFILESRelocationError` object on failure. /// -- (DBRpcTask *)dCopyBatchV2: - (NSArray *)entries; +- (DBRpcTask *)dCopyV2:(NSString *)fromPath + toPath:(NSString *)toPath; /// -/// Copy multiple files or folders to different locations at once in the user's Dropbox. This route will replace -/// `dCopyBatch`. The main difference is this route will return status for each entry, while `dCopyBatch` raises failure -/// if any entry fails. This route will either finish synchronously, or return a job ID and do the async copy job in -/// background. Please use `dCopyBatchCheck` to check the job status. +/// Copy a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents +/// will be copied. /// -/// @param entries List of entries to be moved or copied. Each entry is RelocationPath. -/// @param autorename If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid -/// the conflict. +/// @param allowSharedFolder This flag has no effect. +/// @param autorename If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. +/// @param allowOwnershipTransfer Allow moves by owner even if it would result in an ownership transfer for the content +/// being moved. This does not apply to copies. /// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2Launch` object on success -/// or a `void` object on failure. +/// @return Through the response callback, the caller will receive a `DBFILESRelocationResult` object on success or a +/// `DBFILESRelocationError` object on failure. /// -- (DBRpcTask *)dCopyBatchV2:(NSArray *)entries - autorename:(nullable NSNumber *)autorename; +- (DBRpcTask *)dCopyV2:(NSString *)fromPath + toPath:(NSString *)toPath + allowSharedFolder:(nullable NSNumber *)allowSharedFolder + autorename:(nullable NSNumber *)autorename + allowOwnershipTransfer:(nullable NSNumber *)allowOwnershipTransfer; /// /// DEPRECATED: Copy multiple files or folders to different locations at once in the user's Dropbox. This route will @@ -433,15 +403,34 @@ NS_ASSUME_NONNULL_BEGIN __deprecated_msg("dCopyBatch is deprecated. Use dCopyBatch."); /// -/// Returns the status of an asynchronous job for `dCopyBatch`. It returns list of results for each entry. +/// Copy multiple files or folders to different locations at once in the user's Dropbox. This route will replace +/// `dCopyBatch`. The main difference is this route will return status for each entry, while `dCopyBatch` raises failure +/// if any entry fails. This route will either finish synchronously, or return a job ID and do the async copy job in +/// background. Please use `dCopyBatchCheck` to check the job status. /// -/// @param asyncJobId Id of the asynchronous job. This is the value of a response returned from the method that launched -/// the job. +/// @param entries List of entries to be moved or copied. Each entry is RelocationPath. /// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2JobStatus` object on -/// success or a `DBASYNCPollError` object on failure. +/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2Launch` object on success +/// or a `void` object on failure. /// -- (DBRpcTask *)dCopyBatchCheckV2:(NSString *)asyncJobId; +- (DBRpcTask *)dCopyBatchV2: + (NSArray *)entries; + +/// +/// Copy multiple files or folders to different locations at once in the user's Dropbox. This route will replace +/// `dCopyBatch`. The main difference is this route will return status for each entry, while `dCopyBatch` raises failure +/// if any entry fails. This route will either finish synchronously, or return a job ID and do the async copy job in +/// background. Please use `dCopyBatchCheck` to check the job status. +/// +/// @param entries List of entries to be moved or copied. Each entry is RelocationPath. +/// @param autorename If there's a conflict with any file, have the Dropbox server try to autorename that file to avoid +/// the conflict. +/// +/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2Launch` object on success +/// or a `void` object on failure. +/// +- (DBRpcTask *)dCopyBatchV2:(NSArray *)entries + autorename:(nullable NSNumber *)autorename; /// /// DEPRECATED: Returns the status of an asynchronous job for `dCopyBatch`. If success, it returns list of results for @@ -456,6 +445,17 @@ NS_ASSUME_NONNULL_BEGIN - (DBRpcTask *)dCopyBatchCheck:(NSString *)asyncJobId __deprecated_msg("dCopyBatchCheck is deprecated. Use dCopyBatchCheck."); +/// +/// Returns the status of an asynchronous job for `dCopyBatch`. It returns list of results for each entry. +/// +/// @param asyncJobId Id of the asynchronous job. This is the value of a response returned from the method that launched +/// the job. +/// +/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2JobStatus` object on +/// success or a `DBASYNCPollError` object on failure. +/// +- (DBRpcTask *)dCopyBatchCheckV2:(NSString *)asyncJobId; + /// /// Get a copy reference to a file or folder. This reference string can be used to save that file or folder to another /// user's Dropbox by passing it to `dCopyReferenceSave`. @@ -481,50 +481,50 @@ NS_ASSUME_NONNULL_BEGIN path:(NSString *)path; /// -/// Create a folder at a given path. +/// DEPRECATED: Create a folder at a given path. /// /// @param path Path in the user's Dropbox to create. /// -/// @return Through the response callback, the caller will receive a `DBFILESCreateFolderResult` object on success or a +/// @return Through the response callback, the caller will receive a `DBFILESFolderMetadata` object on success or a /// `DBFILESCreateFolderError` object on failure. /// -- (DBRpcTask *)createFolderV2:(NSString *)path; +- (DBRpcTask *)createFolder:(NSString *)path + __deprecated_msg("createFolder is deprecated. Use createFolder."); /// -/// Create a folder at a given path. +/// DEPRECATED: Create a folder at a given path. /// /// @param path Path in the user's Dropbox to create. /// @param autorename If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. /// -/// @return Through the response callback, the caller will receive a `DBFILESCreateFolderResult` object on success or a +/// @return Through the response callback, the caller will receive a `DBFILESFolderMetadata` object on success or a /// `DBFILESCreateFolderError` object on failure. /// -- (DBRpcTask *)createFolderV2:(NSString *)path - autorename:(nullable NSNumber *)autorename; +- (DBRpcTask *)createFolder:(NSString *)path + autorename:(nullable NSNumber *)autorename + __deprecated_msg("createFolder is deprecated. Use createFolder."); /// -/// DEPRECATED: Create a folder at a given path. +/// Create a folder at a given path. /// /// @param path Path in the user's Dropbox to create. /// -/// @return Through the response callback, the caller will receive a `DBFILESFolderMetadata` object on success or a +/// @return Through the response callback, the caller will receive a `DBFILESCreateFolderResult` object on success or a /// `DBFILESCreateFolderError` object on failure. /// -- (DBRpcTask *)createFolder:(NSString *)path - __deprecated_msg("createFolder is deprecated. Use createFolder."); +- (DBRpcTask *)createFolderV2:(NSString *)path; /// -/// DEPRECATED: Create a folder at a given path. +/// Create a folder at a given path. /// /// @param path Path in the user's Dropbox to create. /// @param autorename If there's a conflict, have the Dropbox server try to autorename the folder to avoid the conflict. /// -/// @return Through the response callback, the caller will receive a `DBFILESFolderMetadata` object on success or a +/// @return Through the response callback, the caller will receive a `DBFILESCreateFolderResult` object on success or a /// `DBFILESCreateFolderError` object on failure. /// -- (DBRpcTask *)createFolder:(NSString *)path - autorename:(nullable NSNumber *)autorename - __deprecated_msg("createFolder is deprecated. Use createFolder."); +- (DBRpcTask *)createFolderV2:(NSString *)path + autorename:(nullable NSNumber *)autorename; /// /// Create multiple folders at once. This route is asynchronous for large batches, which returns a job ID immediately @@ -571,60 +571,60 @@ NS_ASSUME_NONNULL_BEGIN - (DBRpcTask *)createFolderBatchCheck:(NSString *)asyncJobId; /// -/// Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted too. A -/// successful response indicates that the file or folder was deleted. The returned metadata will be the corresponding -/// FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object. +/// DEPRECATED: Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted +/// too. A successful response indicates that the file or folder was deleted. The returned metadata will be the +/// corresponding FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object. /// /// @param path Path in the user's Dropbox to delete. /// -/// @return Through the response callback, the caller will receive a `DBFILESDeleteResult` object on success or a +/// @return Through the response callback, the caller will receive a `DBFILESMetadata` object on success or a /// `DBFILESDeleteError` object on failure. /// -- (DBRpcTask *)delete_V2:(NSString *)path; +- (DBRpcTask *)delete_:(NSString *)path + __deprecated_msg("delete_ is deprecated. Use delete_."); /// -/// Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted too. A -/// successful response indicates that the file or folder was deleted. The returned metadata will be the corresponding -/// FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object. +/// DEPRECATED: Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted +/// too. A successful response indicates that the file or folder was deleted. The returned metadata will be the +/// corresponding FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object. /// /// @param path Path in the user's Dropbox to delete. /// @param parentRev Perform delete if given "rev" matches the existing file's latest "rev". This field does not support /// deleting a folder. /// -/// @return Through the response callback, the caller will receive a `DBFILESDeleteResult` object on success or a +/// @return Through the response callback, the caller will receive a `DBFILESMetadata` object on success or a /// `DBFILESDeleteError` object on failure. /// -- (DBRpcTask *)delete_V2:(NSString *)path - parentRev:(nullable NSString *)parentRev; +- (DBRpcTask *)delete_:(NSString *)path + parentRev:(nullable NSString *)parentRev + __deprecated_msg("delete_ is deprecated. Use delete_."); /// -/// DEPRECATED: Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted -/// too. A successful response indicates that the file or folder was deleted. The returned metadata will be the -/// corresponding FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object. +/// Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted too. A +/// successful response indicates that the file or folder was deleted. The returned metadata will be the corresponding +/// FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object. /// /// @param path Path in the user's Dropbox to delete. /// -/// @return Through the response callback, the caller will receive a `DBFILESMetadata` object on success or a +/// @return Through the response callback, the caller will receive a `DBFILESDeleteResult` object on success or a /// `DBFILESDeleteError` object on failure. /// -- (DBRpcTask *)delete_:(NSString *)path - __deprecated_msg("delete_ is deprecated. Use delete_."); +- (DBRpcTask *)delete_V2:(NSString *)path; /// -/// DEPRECATED: Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted -/// too. A successful response indicates that the file or folder was deleted. The returned metadata will be the -/// corresponding FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object. +/// Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted too. A +/// successful response indicates that the file or folder was deleted. The returned metadata will be the corresponding +/// FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object. /// /// @param path Path in the user's Dropbox to delete. /// @param parentRev Perform delete if given "rev" matches the existing file's latest "rev". This field does not support /// deleting a folder. /// -/// @return Through the response callback, the caller will receive a `DBFILESMetadata` object on success or a +/// @return Through the response callback, the caller will receive a `DBFILESDeleteResult` object on success or a /// `DBFILESDeleteError` object on failure. /// -- (DBRpcTask *)delete_:(NSString *)path - parentRev:(nullable NSString *)parentRev - __deprecated_msg("delete_ is deprecated. Use delete_."); +- (DBRpcTask *)delete_V2:(NSString *)path + parentRev:(nullable NSString *)parentRev; /// /// Delete multiple files/folders at once. This route is asynchronous, which returns a job ID immediately and runs the @@ -1871,35 +1871,6 @@ NS_ASSUME_NONNULL_BEGIN - (DBRpcTask *)lockFileBatch: (NSArray *)entries; -/// -/// Move a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents -/// will be moved. Note that we do not currently support case-only renaming. -/// -/// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationResult` object on success or a -/// `DBFILESRelocationError` object on failure. -/// -- (DBRpcTask *)moveV2:(NSString *)fromPath - toPath:(NSString *)toPath; - -/// -/// Move a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents -/// will be moved. Note that we do not currently support case-only renaming. -/// -/// @param allowSharedFolder This flag has no effect. -/// @param autorename If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. -/// @param allowOwnershipTransfer Allow moves by owner even if it would result in an ownership transfer for the content -/// being moved. This does not apply to copies. -/// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationResult` object on success or a -/// `DBFILESRelocationError` object on failure. -/// -- (DBRpcTask *)moveV2:(NSString *)fromPath - toPath:(NSString *)toPath - allowSharedFolder:(nullable NSNumber *)allowSharedFolder - autorename:(nullable NSNumber *)autorename - allowOwnershipTransfer:(nullable NSNumber *)allowOwnershipTransfer; - /// /// DEPRECATED: Move a file or folder to a different location in the user's Dropbox. If the source path is a folder all /// its contents will be moved. @@ -1932,34 +1903,33 @@ NS_ASSUME_NONNULL_BEGIN __deprecated_msg("move is deprecated. Use move."); /// -/// Move multiple files or folders to different locations at once in the user's Dropbox. Note that we do not currently -/// support case-only renaming. This route will replace `moveBatch`. The main difference is this route will return -/// status for each entry, while `moveBatch` raises failure if any entry fails. This route will either finish -/// synchronously, or return a job ID and do the async move job in background. Please use `moveBatchCheck` to check the -/// job status. +/// Move a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents +/// will be moved. Note that we do not currently support case-only renaming. /// /// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2Launch` object on success -/// or a `void` object on failure. +/// @return Through the response callback, the caller will receive a `DBFILESRelocationResult` object on success or a +/// `DBFILESRelocationError` object on failure. /// -- (DBRpcTask *)moveBatchV2:(NSArray *)entries; +- (DBRpcTask *)moveV2:(NSString *)fromPath + toPath:(NSString *)toPath; /// -/// Move multiple files or folders to different locations at once in the user's Dropbox. Note that we do not currently -/// support case-only renaming. This route will replace `moveBatch`. The main difference is this route will return -/// status for each entry, while `moveBatch` raises failure if any entry fails. This route will either finish -/// synchronously, or return a job ID and do the async move job in background. Please use `moveBatchCheck` to check the -/// job status. +/// Move a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents +/// will be moved. Note that we do not currently support case-only renaming. /// +/// @param allowSharedFolder This flag has no effect. +/// @param autorename If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict. /// @param allowOwnershipTransfer Allow moves by owner even if it would result in an ownership transfer for the content /// being moved. This does not apply to copies. /// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2Launch` object on success -/// or a `void` object on failure. +/// @return Through the response callback, the caller will receive a `DBFILESRelocationResult` object on success or a +/// `DBFILESRelocationError` object on failure. /// -- (DBRpcTask *)moveBatchV2:(NSArray *)entries - autorename:(nullable NSNumber *)autorename - allowOwnershipTransfer:(nullable NSNumber *)allowOwnershipTransfer; +- (DBRpcTask *)moveV2:(NSString *)fromPath + toPath:(NSString *)toPath + allowSharedFolder:(nullable NSNumber *)allowSharedFolder + autorename:(nullable NSNumber *)autorename + allowOwnershipTransfer:(nullable NSNumber *)allowOwnershipTransfer; /// /// DEPRECATED: Move multiple files or folders to different locations at once in the user's Dropbox. This route will @@ -1992,15 +1962,34 @@ NS_ASSUME_NONNULL_BEGIN __deprecated_msg("moveBatch is deprecated. Use moveBatch."); /// -/// Returns the status of an asynchronous job for `moveBatch`. It returns list of results for each entry. +/// Move multiple files or folders to different locations at once in the user's Dropbox. Note that we do not currently +/// support case-only renaming. This route will replace `moveBatch`. The main difference is this route will return +/// status for each entry, while `moveBatch` raises failure if any entry fails. This route will either finish +/// synchronously, or return a job ID and do the async move job in background. Please use `moveBatchCheck` to check the +/// job status. /// -/// @param asyncJobId Id of the asynchronous job. This is the value of a response returned from the method that launched -/// the job. /// -/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2JobStatus` object on -/// success or a `DBASYNCPollError` object on failure. +/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2Launch` object on success +/// or a `void` object on failure. /// -- (DBRpcTask *)moveBatchCheckV2:(NSString *)asyncJobId; +- (DBRpcTask *)moveBatchV2:(NSArray *)entries; + +/// +/// Move multiple files or folders to different locations at once in the user's Dropbox. Note that we do not currently +/// support case-only renaming. This route will replace `moveBatch`. The main difference is this route will return +/// status for each entry, while `moveBatch` raises failure if any entry fails. This route will either finish +/// synchronously, or return a job ID and do the async move job in background. Please use `moveBatchCheck` to check the +/// job status. +/// +/// @param allowOwnershipTransfer Allow moves by owner even if it would result in an ownership transfer for the content +/// being moved. This does not apply to copies. +/// +/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2Launch` object on success +/// or a `void` object on failure. +/// +- (DBRpcTask *)moveBatchV2:(NSArray *)entries + autorename:(nullable NSNumber *)autorename + allowOwnershipTransfer:(nullable NSNumber *)allowOwnershipTransfer; /// /// DEPRECATED: Returns the status of an asynchronous job for `moveBatch`. If success, it returns list of results for @@ -2015,6 +2004,17 @@ NS_ASSUME_NONNULL_BEGIN - (DBRpcTask *)moveBatchCheck:(NSString *)asyncJobId __deprecated_msg("moveBatchCheck is deprecated. Use moveBatchCheck."); +/// +/// Returns the status of an asynchronous job for `moveBatch`. It returns list of results for each entry. +/// +/// @param asyncJobId Id of the asynchronous job. This is the value of a response returned from the method that launched +/// the job. +/// +/// @return Through the response callback, the caller will receive a `DBFILESRelocationBatchV2JobStatus` object on +/// success or a `DBASYNCPollError` object on failure. +/// +- (DBRpcTask *)moveBatchCheckV2:(NSString *)asyncJobId; + /// /// Creates a new Paper doc with the provided content. /// @@ -2567,6 +2567,64 @@ NS_ASSUME_NONNULL_BEGIN contentHash:(nullable NSString *)contentHash inputStream:(NSInputStream *)inputStream; +/// +/// DEPRECATED: Append more data to an upload session. A single request should not upload more than 150 MB. The maximum +/// size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will count as data transport +/// calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more +/// information, see the Data transport limit page https://www.dropbox.com/developers/reference/data-transport-limit. +/// +/// @param sessionId The upload session ID (returned by `uploadSessionStart`). +/// @param offset Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or +/// duplicated in the event of a network error. +/// @param inputUrl The file to upload, as an NSString * object. +/// +/// @return Through the response callback, the caller will receive a `void` object on success or a +/// `DBFILESUploadSessionAppendError` object on failure. +/// +- (DBUploadTask *)uploadSessionAppendUrl:(NSString *)sessionId + offset:(NSNumber *)offset + inputUrl:(NSString *)inputUrl + __deprecated_msg("uploadSessionAppend is deprecated. Use uploadSessionAppend."); + +/// +/// DEPRECATED: Append more data to an upload session. A single request should not upload more than 150 MB. The maximum +/// size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will count as data transport +/// calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more +/// information, see the Data transport limit page https://www.dropbox.com/developers/reference/data-transport-limit. +/// +/// @param sessionId The upload session ID (returned by `uploadSessionStart`). +/// @param offset Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or +/// duplicated in the event of a network error. +/// @param inputData The file to upload, as an NSData * object. +/// +/// @return Through the response callback, the caller will receive a `void` object on success or a +/// `DBFILESUploadSessionAppendError` object on failure. +/// +- (DBUploadTask *)uploadSessionAppendData:(NSString *)sessionId + offset:(NSNumber *)offset + inputData:(NSData *)inputData + __deprecated_msg("uploadSessionAppend is deprecated. Use uploadSessionAppend."); + +/// +/// DEPRECATED: Append more data to an upload session. A single request should not upload more than 150 MB. The maximum +/// size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will count as data transport +/// calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more +/// information, see the Data transport limit page https://www.dropbox.com/developers/reference/data-transport-limit. +/// +/// @param sessionId The upload session ID (returned by `uploadSessionStart`). +/// @param offset Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or +/// duplicated in the event of a network error. +/// @param inputStream The file to upload, as an NSInputStream * object. +/// +/// @return Through the response callback, the caller will receive a `void` object on success or a +/// `DBFILESUploadSessionAppendError` object on failure. +/// +- (DBUploadTask *)uploadSessionAppendStream:(NSString *)sessionId + offset:(NSNumber *)offset + inputStream: + (NSInputStream *)inputStream + __deprecated_msg("uploadSessionAppend is deprecated. Use uploadSessionAppend."); + /// /// Append more data to an upload session. When the parameter close is set, this call will close the session. A single /// request should not upload more than 150 MB. The maximum size of a file one can upload to an upload session is 350 @@ -2690,64 +2748,6 @@ NS_ASSUME_NONNULL_BEGIN contentHash:(nullable NSString *)contentHash inputStream:(NSInputStream *)inputStream; -/// -/// DEPRECATED: Append more data to an upload session. A single request should not upload more than 150 MB. The maximum -/// size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will count as data transport -/// calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more -/// information, see the Data transport limit page https://www.dropbox.com/developers/reference/data-transport-limit. -/// -/// @param sessionId The upload session ID (returned by `uploadSessionStart`). -/// @param offset Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or -/// duplicated in the event of a network error. -/// @param inputUrl The file to upload, as an NSString * object. -/// -/// @return Through the response callback, the caller will receive a `void` object on success or a -/// `DBFILESUploadSessionAppendError` object on failure. -/// -- (DBUploadTask *)uploadSessionAppendUrl:(NSString *)sessionId - offset:(NSNumber *)offset - inputUrl:(NSString *)inputUrl - __deprecated_msg("uploadSessionAppend is deprecated. Use uploadSessionAppend."); - -/// -/// DEPRECATED: Append more data to an upload session. A single request should not upload more than 150 MB. The maximum -/// size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will count as data transport -/// calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more -/// information, see the Data transport limit page https://www.dropbox.com/developers/reference/data-transport-limit. -/// -/// @param sessionId The upload session ID (returned by `uploadSessionStart`). -/// @param offset Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or -/// duplicated in the event of a network error. -/// @param inputData The file to upload, as an NSData * object. -/// -/// @return Through the response callback, the caller will receive a `void` object on success or a -/// `DBFILESUploadSessionAppendError` object on failure. -/// -- (DBUploadTask *)uploadSessionAppendData:(NSString *)sessionId - offset:(NSNumber *)offset - inputData:(NSData *)inputData - __deprecated_msg("uploadSessionAppend is deprecated. Use uploadSessionAppend."); - -/// -/// DEPRECATED: Append more data to an upload session. A single request should not upload more than 150 MB. The maximum -/// size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will count as data transport -/// calls for any Dropbox Business teams with a limit on the number of data transport calls allowed per month. For more -/// information, see the Data transport limit page https://www.dropbox.com/developers/reference/data-transport-limit. -/// -/// @param sessionId The upload session ID (returned by `uploadSessionStart`). -/// @param offset Offset in bytes at which data should be appended. We use this to make sure upload data isn't lost or -/// duplicated in the event of a network error. -/// @param inputStream The file to upload, as an NSInputStream * object. -/// -/// @return Through the response callback, the caller will receive a `void` object on success or a -/// `DBFILESUploadSessionAppendError` object on failure. -/// -- (DBUploadTask *)uploadSessionAppendStream:(NSString *)sessionId - offset:(NSNumber *)offset - inputStream: - (NSInputStream *)inputStream - __deprecated_msg("uploadSessionAppend is deprecated. Use uploadSessionAppend."); - /// /// Finish an upload session and save the uploaded data to the given file path. A single request should not upload more /// than 150 MB. The maximum size of a file one can upload to an upload session is 350 GB. Calls to this endpoint will diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.m b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.m index 5b11497f1..0fd1a7af1 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBFILESUserAuthRoutes.m @@ -311,18 +311,18 @@ - (DBUploadTask *)alphaUploadStream:(NSString *)path return [self.client requestUpload:route arg:arg inputStream:inputStream]; } -- (DBRpcTask *)dCopyV2:(NSString *)fromPath toPath:(NSString *)toPath { - DBRoute *route = DBFILESRouteObjects.DBFILESDCopyV2; +- (DBRpcTask *)dCopy:(NSString *)fromPath toPath:(NSString *)toPath { + DBRoute *route = DBFILESRouteObjects.DBFILESDCopy; DBFILESRelocationArg *arg = [[DBFILESRelocationArg alloc] initWithFromPath:fromPath toPath:toPath]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)dCopyV2:(NSString *)fromPath +- (DBRpcTask *)dCopy:(NSString *)fromPath toPath:(NSString *)toPath allowSharedFolder:(NSNumber *)allowSharedFolder autorename:(NSNumber *)autorename allowOwnershipTransfer:(NSNumber *)allowOwnershipTransfer { - DBRoute *route = DBFILESRouteObjects.DBFILESDCopyV2; + DBRoute *route = DBFILESRouteObjects.DBFILESDCopy; DBFILESRelocationArg *arg = [[DBFILESRelocationArg alloc] initWithFromPath:fromPath toPath:toPath allowSharedFolder:allowSharedFolder @@ -331,18 +331,18 @@ - (DBRpcTask *)dCopyV2:(NSString *)fromPath return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)dCopy:(NSString *)fromPath toPath:(NSString *)toPath { - DBRoute *route = DBFILESRouteObjects.DBFILESDCopy; +- (DBRpcTask *)dCopyV2:(NSString *)fromPath toPath:(NSString *)toPath { + DBRoute *route = DBFILESRouteObjects.DBFILESDCopyV2; DBFILESRelocationArg *arg = [[DBFILESRelocationArg alloc] initWithFromPath:fromPath toPath:toPath]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)dCopy:(NSString *)fromPath +- (DBRpcTask *)dCopyV2:(NSString *)fromPath toPath:(NSString *)toPath allowSharedFolder:(NSNumber *)allowSharedFolder autorename:(NSNumber *)autorename allowOwnershipTransfer:(NSNumber *)allowOwnershipTransfer { - DBRoute *route = DBFILESRouteObjects.DBFILESDCopy; + DBRoute *route = DBFILESRouteObjects.DBFILESDCopyV2; DBFILESRelocationArg *arg = [[DBFILESRelocationArg alloc] initWithFromPath:fromPath toPath:toPath allowSharedFolder:allowSharedFolder @@ -351,19 +351,6 @@ - (DBRpcTask *)dCopy:(NSString *)fromPath return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)dCopyBatchV2:(NSArray *)entries { - DBRoute *route = DBFILESRouteObjects.DBFILESDCopyBatchV2; - DBFILESRelocationBatchArgBase *arg = [[DBFILESRelocationBatchArgBase alloc] initWithEntries:entries]; - return [self.client requestRpc:route arg:arg]; -} - -- (DBRpcTask *)dCopyBatchV2:(NSArray *)entries autorename:(NSNumber *)autorename { - DBRoute *route = DBFILESRouteObjects.DBFILESDCopyBatchV2; - DBFILESRelocationBatchArgBase *arg = - [[DBFILESRelocationBatchArgBase alloc] initWithEntries:entries autorename:autorename]; - return [self.client requestRpc:route arg:arg]; -} - - (DBRpcTask *)dCopyBatch:(NSArray *)entries { DBRoute *route = DBFILESRouteObjects.DBFILESDCopyBatch; DBFILESRelocationBatchArg *arg = [[DBFILESRelocationBatchArg alloc] initWithEntries:entries]; @@ -382,9 +369,16 @@ - (DBRpcTask *)dCopyBatch:(NSArray *)entries return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)dCopyBatchCheckV2:(NSString *)asyncJobId { - DBRoute *route = DBFILESRouteObjects.DBFILESDCopyBatchCheckV2; - DBASYNCPollArg *arg = [[DBASYNCPollArg alloc] initWithAsyncJobId:asyncJobId]; +- (DBRpcTask *)dCopyBatchV2:(NSArray *)entries { + DBRoute *route = DBFILESRouteObjects.DBFILESDCopyBatchV2; + DBFILESRelocationBatchArgBase *arg = [[DBFILESRelocationBatchArgBase alloc] initWithEntries:entries]; + return [self.client requestRpc:route arg:arg]; +} + +- (DBRpcTask *)dCopyBatchV2:(NSArray *)entries autorename:(NSNumber *)autorename { + DBRoute *route = DBFILESRouteObjects.DBFILESDCopyBatchV2; + DBFILESRelocationBatchArgBase *arg = + [[DBFILESRelocationBatchArgBase alloc] initWithEntries:entries autorename:autorename]; return [self.client requestRpc:route arg:arg]; } @@ -394,6 +388,12 @@ - (DBRpcTask *)dCopyBatchCheck:(NSString *)asyncJobId { return [self.client requestRpc:route arg:arg]; } +- (DBRpcTask *)dCopyBatchCheckV2:(NSString *)asyncJobId { + DBRoute *route = DBFILESRouteObjects.DBFILESDCopyBatchCheckV2; + DBASYNCPollArg *arg = [[DBASYNCPollArg alloc] initWithAsyncJobId:asyncJobId]; + return [self.client requestRpc:route arg:arg]; +} + - (DBRpcTask *)dCopyReferenceGet:(NSString *)path { DBRoute *route = DBFILESRouteObjects.DBFILESDCopyReferenceGet; DBFILESGetCopyReferenceArg *arg = [[DBFILESGetCopyReferenceArg alloc] initWithPath:path]; @@ -407,26 +407,26 @@ - (DBRpcTask *)dCopyReferenceSave:(NSString *)dCopyReference path:(NSString *)pa return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)createFolderV2:(NSString *)path { - DBRoute *route = DBFILESRouteObjects.DBFILESCreateFolderV2; +- (DBRpcTask *)createFolder:(NSString *)path { + DBRoute *route = DBFILESRouteObjects.DBFILESCreateFolder; DBFILESCreateFolderArg *arg = [[DBFILESCreateFolderArg alloc] initWithPath:path]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)createFolderV2:(NSString *)path autorename:(NSNumber *)autorename { - DBRoute *route = DBFILESRouteObjects.DBFILESCreateFolderV2; +- (DBRpcTask *)createFolder:(NSString *)path autorename:(NSNumber *)autorename { + DBRoute *route = DBFILESRouteObjects.DBFILESCreateFolder; DBFILESCreateFolderArg *arg = [[DBFILESCreateFolderArg alloc] initWithPath:path autorename:autorename]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)createFolder:(NSString *)path { - DBRoute *route = DBFILESRouteObjects.DBFILESCreateFolder; +- (DBRpcTask *)createFolderV2:(NSString *)path { + DBRoute *route = DBFILESRouteObjects.DBFILESCreateFolderV2; DBFILESCreateFolderArg *arg = [[DBFILESCreateFolderArg alloc] initWithPath:path]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)createFolder:(NSString *)path autorename:(NSNumber *)autorename { - DBRoute *route = DBFILESRouteObjects.DBFILESCreateFolder; +- (DBRpcTask *)createFolderV2:(NSString *)path autorename:(NSNumber *)autorename { + DBRoute *route = DBFILESRouteObjects.DBFILESCreateFolderV2; DBFILESCreateFolderArg *arg = [[DBFILESCreateFolderArg alloc] initWithPath:path autorename:autorename]; return [self.client requestRpc:route arg:arg]; } @@ -452,26 +452,26 @@ - (DBRpcTask *)createFolderBatchCheck:(NSString *)asyncJobId { return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)delete_V2:(NSString *)path { - DBRoute *route = DBFILESRouteObjects.DBFILESDelete_V2; +- (DBRpcTask *)delete_:(NSString *)path { + DBRoute *route = DBFILESRouteObjects.DBFILESDelete_; DBFILESDeleteArg *arg = [[DBFILESDeleteArg alloc] initWithPath:path]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)delete_V2:(NSString *)path parentRev:(NSString *)parentRev { - DBRoute *route = DBFILESRouteObjects.DBFILESDelete_V2; +- (DBRpcTask *)delete_:(NSString *)path parentRev:(NSString *)parentRev { + DBRoute *route = DBFILESRouteObjects.DBFILESDelete_; DBFILESDeleteArg *arg = [[DBFILESDeleteArg alloc] initWithPath:path parentRev:parentRev]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)delete_:(NSString *)path { - DBRoute *route = DBFILESRouteObjects.DBFILESDelete_; +- (DBRpcTask *)delete_V2:(NSString *)path { + DBRoute *route = DBFILESRouteObjects.DBFILESDelete_V2; DBFILESDeleteArg *arg = [[DBFILESDeleteArg alloc] initWithPath:path]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)delete_:(NSString *)path parentRev:(NSString *)parentRev { - DBRoute *route = DBFILESRouteObjects.DBFILESDelete_; +- (DBRpcTask *)delete_V2:(NSString *)path parentRev:(NSString *)parentRev { + DBRoute *route = DBFILESRouteObjects.DBFILESDelete_V2; DBFILESDeleteArg *arg = [[DBFILESDeleteArg alloc] initWithPath:path parentRev:parentRev]; return [self.client requestRpc:route arg:arg]; } @@ -1069,18 +1069,18 @@ - (DBRpcTask *)lockFileBatch:(NSArray *)entries { return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)moveV2:(NSString *)fromPath toPath:(NSString *)toPath { - DBRoute *route = DBFILESRouteObjects.DBFILESMoveV2; +- (DBRpcTask *)move:(NSString *)fromPath toPath:(NSString *)toPath { + DBRoute *route = DBFILESRouteObjects.DBFILESMove; DBFILESRelocationArg *arg = [[DBFILESRelocationArg alloc] initWithFromPath:fromPath toPath:toPath]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)moveV2:(NSString *)fromPath +- (DBRpcTask *)move:(NSString *)fromPath toPath:(NSString *)toPath allowSharedFolder:(NSNumber *)allowSharedFolder autorename:(NSNumber *)autorename allowOwnershipTransfer:(NSNumber *)allowOwnershipTransfer { - DBRoute *route = DBFILESRouteObjects.DBFILESMoveV2; + DBRoute *route = DBFILESRouteObjects.DBFILESMove; DBFILESRelocationArg *arg = [[DBFILESRelocationArg alloc] initWithFromPath:fromPath toPath:toPath allowSharedFolder:allowSharedFolder @@ -1089,18 +1089,18 @@ - (DBRpcTask *)moveV2:(NSString *)fromPath return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)move:(NSString *)fromPath toPath:(NSString *)toPath { - DBRoute *route = DBFILESRouteObjects.DBFILESMove; +- (DBRpcTask *)moveV2:(NSString *)fromPath toPath:(NSString *)toPath { + DBRoute *route = DBFILESRouteObjects.DBFILESMoveV2; DBFILESRelocationArg *arg = [[DBFILESRelocationArg alloc] initWithFromPath:fromPath toPath:toPath]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)move:(NSString *)fromPath +- (DBRpcTask *)moveV2:(NSString *)fromPath toPath:(NSString *)toPath allowSharedFolder:(NSNumber *)allowSharedFolder autorename:(NSNumber *)autorename allowOwnershipTransfer:(NSNumber *)allowOwnershipTransfer { - DBRoute *route = DBFILESRouteObjects.DBFILESMove; + DBRoute *route = DBFILESRouteObjects.DBFILESMoveV2; DBFILESRelocationArg *arg = [[DBFILESRelocationArg alloc] initWithFromPath:fromPath toPath:toPath allowSharedFolder:allowSharedFolder @@ -1109,22 +1109,6 @@ - (DBRpcTask *)move:(NSString *)fromPath return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)moveBatchV2:(NSArray *)entries { - DBRoute *route = DBFILESRouteObjects.DBFILESMoveBatchV2; - DBFILESMoveBatchArg *arg = [[DBFILESMoveBatchArg alloc] initWithEntries:entries]; - return [self.client requestRpc:route arg:arg]; -} - -- (DBRpcTask *)moveBatchV2:(NSArray *)entries - autorename:(NSNumber *)autorename - allowOwnershipTransfer:(NSNumber *)allowOwnershipTransfer { - DBRoute *route = DBFILESRouteObjects.DBFILESMoveBatchV2; - DBFILESMoveBatchArg *arg = [[DBFILESMoveBatchArg alloc] initWithEntries:entries - autorename:autorename - allowOwnershipTransfer:allowOwnershipTransfer]; - return [self.client requestRpc:route arg:arg]; -} - - (DBRpcTask *)moveBatch:(NSArray *)entries { DBRoute *route = DBFILESRouteObjects.DBFILESMoveBatch; DBFILESRelocationBatchArg *arg = [[DBFILESRelocationBatchArg alloc] initWithEntries:entries]; @@ -1143,9 +1127,19 @@ - (DBRpcTask *)moveBatch:(NSArray *)entries return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)moveBatchCheckV2:(NSString *)asyncJobId { - DBRoute *route = DBFILESRouteObjects.DBFILESMoveBatchCheckV2; - DBASYNCPollArg *arg = [[DBASYNCPollArg alloc] initWithAsyncJobId:asyncJobId]; +- (DBRpcTask *)moveBatchV2:(NSArray *)entries { + DBRoute *route = DBFILESRouteObjects.DBFILESMoveBatchV2; + DBFILESMoveBatchArg *arg = [[DBFILESMoveBatchArg alloc] initWithEntries:entries]; + return [self.client requestRpc:route arg:arg]; +} + +- (DBRpcTask *)moveBatchV2:(NSArray *)entries + autorename:(NSNumber *)autorename + allowOwnershipTransfer:(NSNumber *)allowOwnershipTransfer { + DBRoute *route = DBFILESRouteObjects.DBFILESMoveBatchV2; + DBFILESMoveBatchArg *arg = [[DBFILESMoveBatchArg alloc] initWithEntries:entries + autorename:autorename + allowOwnershipTransfer:allowOwnershipTransfer]; return [self.client requestRpc:route arg:arg]; } @@ -1155,6 +1149,12 @@ - (DBRpcTask *)moveBatchCheck:(NSString *)asyncJobId { return [self.client requestRpc:route arg:arg]; } +- (DBRpcTask *)moveBatchCheckV2:(NSString *)asyncJobId { + DBRoute *route = DBFILESRouteObjects.DBFILESMoveBatchCheckV2; + DBASYNCPollArg *arg = [[DBASYNCPollArg alloc] initWithAsyncJobId:asyncJobId]; + return [self.client requestRpc:route arg:arg]; +} + - (DBUploadTask *)paperCreateUrl:(NSString *)path importFormat:(DBFILESImportFormat *)importFormat inputUrl:(NSString *)inputUrl { @@ -1466,6 +1466,28 @@ - (DBUploadTask *)uploadStream:(NSString *)path return [self.client requestUpload:route arg:arg inputStream:inputStream]; } +- (DBUploadTask *)uploadSessionAppendUrl:(NSString *)sessionId offset:(NSNumber *)offset inputUrl:(NSString *)inputUrl { + DBRoute *route = DBFILESRouteObjects.DBFILESUploadSessionAppend; + DBFILESUploadSessionCursor *arg = [[DBFILESUploadSessionCursor alloc] initWithSessionId:sessionId offset:offset]; + return [self.client requestUpload:route arg:arg inputUrl:inputUrl]; +} + +- (DBUploadTask *)uploadSessionAppendData:(NSString *)sessionId + offset:(NSNumber *)offset + inputData:(NSData *)inputData { + DBRoute *route = DBFILESRouteObjects.DBFILESUploadSessionAppend; + DBFILESUploadSessionCursor *arg = [[DBFILESUploadSessionCursor alloc] initWithSessionId:sessionId offset:offset]; + return [self.client requestUpload:route arg:arg inputData:inputData]; +} + +- (DBUploadTask *)uploadSessionAppendStream:(NSString *)sessionId + offset:(NSNumber *)offset + inputStream:(NSInputStream *)inputStream { + DBRoute *route = DBFILESRouteObjects.DBFILESUploadSessionAppend; + DBFILESUploadSessionCursor *arg = [[DBFILESUploadSessionCursor alloc] initWithSessionId:sessionId offset:offset]; + return [self.client requestUpload:route arg:arg inputStream:inputStream]; +} + - (DBUploadTask *)uploadSessionAppendV2Url:(DBFILESUploadSessionCursor *)cursor inputUrl:(NSString *)inputUrl { DBRoute *route = DBFILESRouteObjects.DBFILESUploadSessionAppendV2; DBFILESUploadSessionAppendArg *arg = [[DBFILESUploadSessionAppendArg alloc] initWithCursor:cursor]; @@ -1515,28 +1537,6 @@ - (DBUploadTask *)uploadSessionAppendV2Stream:(DBFILESUploadSessionCursor *)curs return [self.client requestUpload:route arg:arg inputStream:inputStream]; } -- (DBUploadTask *)uploadSessionAppendUrl:(NSString *)sessionId offset:(NSNumber *)offset inputUrl:(NSString *)inputUrl { - DBRoute *route = DBFILESRouteObjects.DBFILESUploadSessionAppend; - DBFILESUploadSessionCursor *arg = [[DBFILESUploadSessionCursor alloc] initWithSessionId:sessionId offset:offset]; - return [self.client requestUpload:route arg:arg inputUrl:inputUrl]; -} - -- (DBUploadTask *)uploadSessionAppendData:(NSString *)sessionId - offset:(NSNumber *)offset - inputData:(NSData *)inputData { - DBRoute *route = DBFILESRouteObjects.DBFILESUploadSessionAppend; - DBFILESUploadSessionCursor *arg = [[DBFILESUploadSessionCursor alloc] initWithSessionId:sessionId offset:offset]; - return [self.client requestUpload:route arg:arg inputData:inputData]; -} - -- (DBUploadTask *)uploadSessionAppendStream:(NSString *)sessionId - offset:(NSNumber *)offset - inputStream:(NSInputStream *)inputStream { - DBRoute *route = DBFILESRouteObjects.DBFILESUploadSessionAppend; - DBFILESUploadSessionCursor *arg = [[DBFILESUploadSessionCursor alloc] initWithSessionId:sessionId offset:offset]; - return [self.client requestUpload:route arg:arg inputStream:inputStream]; -} - - (DBUploadTask *)uploadSessionFinishUrl:(DBFILESUploadSessionCursor *)cursor commit:(DBFILESCommitInfo *)commit inputUrl:(NSString *)inputUrl { diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBTEAMTeamAuthRoutes.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBTEAMTeamAuthRoutes.h index 3e8310228..e9cef4575 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBTEAMTeamAuthRoutes.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBTEAMTeamAuthRoutes.h @@ -960,11 +960,10 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param dNewMembers Details of new members to be added to the team. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddLaunchV2Result` object on success -/// or a `void` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddLaunch` object on success or a +/// `void` object on failure. /// -- (DBRpcTask *)membersAddV2: - (NSArray *)dNewMembers; +- (DBRpcTask *)membersAdd:(NSArray *)dNewMembers; /// /// Adds members to a team. Permission : Team member management A maximum of 20 members can be specified in a single @@ -977,12 +976,11 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param dNewMembers Details of new members to be added to the team. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddLaunchV2Result` object on success -/// or a `void` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddLaunch` object on success or a +/// `void` object on failure. /// -- (DBRpcTask *)membersAddV2: - (NSArray *)dNewMembers - forceAsync:(nullable NSNumber *)forceAsync; +- (DBRpcTask *)membersAdd:(NSArray *)dNewMembers + forceAsync:(nullable NSNumber *)forceAsync; /// /// Adds members to a team. Permission : Team member management A maximum of 20 members can be specified in a single @@ -995,10 +993,11 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param dNewMembers Details of new members to be added to the team. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddLaunch` object on success or a -/// `void` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddLaunchV2Result` object on success +/// or a `void` object on failure. /// -- (DBRpcTask *)membersAdd:(NSArray *)dNewMembers; +- (DBRpcTask *)membersAddV2: + (NSArray *)dNewMembers; /// /// Adds members to a team. Permission : Team member management A maximum of 20 members can be specified in a single @@ -1011,11 +1010,12 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param dNewMembers Details of new members to be added to the team. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddLaunch` object on success or a -/// `void` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddLaunchV2Result` object on success +/// or a `void` object on failure. /// -- (DBRpcTask *)membersAdd:(NSArray *)dNewMembers - forceAsync:(nullable NSNumber *)forceAsync; +- (DBRpcTask *)membersAddV2: + (NSArray *)dNewMembers + forceAsync:(nullable NSNumber *)forceAsync; /// /// Once an async_job_id is returned from `membersAdd` , use this to poll the status of the asynchronous request. @@ -1024,10 +1024,10 @@ NS_ASSUME_NONNULL_BEGIN /// @param asyncJobId Id of the asynchronous job. This is the value of a response returned from the method that launched /// the job. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddJobStatusV2Result` object on -/// success or a `DBASYNCPollError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddJobStatus` object on success or a +/// `DBASYNCPollError` object on failure. /// -- (DBRpcTask *)membersAddJobStatusGetV2:(NSString *)asyncJobId; +- (DBRpcTask *)membersAddJobStatusGet:(NSString *)asyncJobId; /// /// Once an async_job_id is returned from `membersAdd` , use this to poll the status of the asynchronous request. @@ -1036,20 +1036,20 @@ NS_ASSUME_NONNULL_BEGIN /// @param asyncJobId Id of the asynchronous job. This is the value of a response returned from the method that launched /// the job. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddJobStatus` object on success or a -/// `DBASYNCPollError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMMembersAddJobStatusV2Result` object on +/// success or a `DBASYNCPollError` object on failure. /// -- (DBRpcTask *)membersAddJobStatusGet:(NSString *)asyncJobId; +- (DBRpcTask *)membersAddJobStatusGetV2:(NSString *)asyncJobId; /// /// Deletes a team member's profile photo. Permission : Team member management. /// /// @param user Identity of the user whose profile photo will be deleted. /// -/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfoV2Result` object on success or -/// a `DBTEAMMembersDeleteProfilePhotoError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfo` object on success or a +/// `DBTEAMMembersDeleteProfilePhotoError` object on failure. /// -- (DBRpcTask *)membersDeleteProfilePhotoV2: +- (DBRpcTask *)membersDeleteProfilePhoto: (DBTEAMUserSelectorArg *)user; /// @@ -1057,10 +1057,10 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param user Identity of the user whose profile photo will be deleted. /// -/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfo` object on success or a -/// `DBTEAMMembersDeleteProfilePhotoError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfoV2Result` object on success or +/// a `DBTEAMMembersDeleteProfilePhotoError` object on failure. /// -- (DBRpcTask *)membersDeleteProfilePhoto: +- (DBRpcTask *)membersDeleteProfilePhotoV2: (DBTEAMUserSelectorArg *)user; /// @@ -1079,10 +1079,10 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param members List of team members. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersGetInfoV2Result` object on success or -/// a `DBTEAMMembersGetInfoError` object on failure. +/// @return Through the response callback, the caller will receive a `NSArray` object on +/// success or a `DBTEAMMembersGetInfoError` object on failure. /// -- (DBRpcTask *)membersGetInfoV2: +- (DBRpcTask *, DBTEAMMembersGetInfoError *> *)membersGetInfo: (NSArray *)members; /// @@ -1091,20 +1091,20 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param members List of team members. /// -/// @return Through the response callback, the caller will receive a `NSArray` object on -/// success or a `DBTEAMMembersGetInfoError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMMembersGetInfoV2Result` object on success or +/// a `DBTEAMMembersGetInfoError` object on failure. /// -- (DBRpcTask *, DBTEAMMembersGetInfoError *> *)membersGetInfo: +- (DBRpcTask *)membersGetInfoV2: (NSArray *)members; /// /// Lists members of a team. Permission : Team information. /// /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersListV2Result` object on success or a +/// @return Through the response callback, the caller will receive a `DBTEAMMembersListResult` object on success or a /// `DBTEAMMembersListError` object on failure. /// -- (DBRpcTask *)membersListV2; +- (DBRpcTask *)membersList; /// /// Lists members of a team. Permission : Team information. @@ -1112,20 +1112,20 @@ NS_ASSUME_NONNULL_BEGIN /// @param limit Number of results to return per call. /// @param includeRemoved Whether to return removed members. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersListV2Result` object on success or a +/// @return Through the response callback, the caller will receive a `DBTEAMMembersListResult` object on success or a /// `DBTEAMMembersListError` object on failure. /// -- (DBRpcTask *)membersListV2:(nullable NSNumber *)limit - includeRemoved:(nullable NSNumber *)includeRemoved; +- (DBRpcTask *)membersList:(nullable NSNumber *)limit + includeRemoved:(nullable NSNumber *)includeRemoved; /// /// Lists members of a team. Permission : Team information. /// /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersListResult` object on success or a +/// @return Through the response callback, the caller will receive a `DBTEAMMembersListV2Result` object on success or a /// `DBTEAMMembersListError` object on failure. /// -- (DBRpcTask *)membersList; +- (DBRpcTask *)membersListV2; /// /// Lists members of a team. Permission : Team information. @@ -1133,11 +1133,11 @@ NS_ASSUME_NONNULL_BEGIN /// @param limit Number of results to return per call. /// @param includeRemoved Whether to return removed members. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersListResult` object on success or a +/// @return Through the response callback, the caller will receive a `DBTEAMMembersListV2Result` object on success or a /// `DBTEAMMembersListError` object on failure. /// -- (DBRpcTask *)membersList:(nullable NSNumber *)limit - includeRemoved:(nullable NSNumber *)includeRemoved; +- (DBRpcTask *)membersListV2:(nullable NSNumber *)limit + includeRemoved:(nullable NSNumber *)includeRemoved; /// /// Once a cursor has been retrieved from `membersList`, use this to paginate through all team members. Permission : @@ -1145,10 +1145,10 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param cursor Indicates from what point to get the next set of members. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersListV2Result` object on success or a +/// @return Through the response callback, the caller will receive a `DBTEAMMembersListResult` object on success or a /// `DBTEAMMembersListContinueError` object on failure. /// -- (DBRpcTask *)membersListContinueV2:(NSString *)cursor; +- (DBRpcTask *)membersListContinue:(NSString *)cursor; /// /// Once a cursor has been retrieved from `membersList`, use this to paginate through all team members. Permission : @@ -1156,10 +1156,10 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param cursor Indicates from what point to get the next set of members. /// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersListResult` object on success or a +/// @return Through the response callback, the caller will receive a `DBTEAMMembersListV2Result` object on success or a /// `DBTEAMMembersListContinueError` object on failure. /// -- (DBRpcTask *)membersListContinue:(NSString *)cursor; +- (DBRpcTask *)membersListContinueV2:(NSString *)cursor; /// /// Moves removed member's files to a different member. This endpoint initiates an asynchronous job. To obtain the final @@ -1308,6 +1308,19 @@ NS_ASSUME_NONNULL_BEGIN - (DBRpcTask *)membersSendWelcomeEmail: (DBTEAMUserSelectorArg *)userSelectorArg; +/// +/// Updates a team member's permissions. Permission : Team member management. +/// +/// @param user Identity of user whose role will be set. +/// @param dNewRole The new role of the member. +/// +/// @return Through the response callback, the caller will receive a `DBTEAMMembersSetPermissionsResult` object on +/// success or a `DBTEAMMembersSetPermissionsError` object on failure. +/// +- (DBRpcTask *) + membersSetAdminPermissions:(DBTEAMUserSelectorArg *)user + dNewRole:(DBTEAMAdminTier *)dNewRole; + /// /// Updates a team member's permissions. Permission : Team member management. /// @@ -1333,29 +1346,15 @@ NS_ASSUME_NONNULL_BEGIN membersSetAdminPermissionsV2:(DBTEAMUserSelectorArg *)user dNewRoles:(nullable NSArray *)dNewRoles; -/// -/// Updates a team member's permissions. Permission : Team member management. -/// -/// @param user Identity of user whose role will be set. -/// @param dNewRole The new role of the member. -/// -/// @return Through the response callback, the caller will receive a `DBTEAMMembersSetPermissionsResult` object on -/// success or a `DBTEAMMembersSetPermissionsError` object on failure. -/// -- (DBRpcTask *) - membersSetAdminPermissions:(DBTEAMUserSelectorArg *)user - dNewRole:(DBTEAMAdminTier *)dNewRole; - /// /// Updates a team member's profile. Permission : Team member management. /// /// @param user Identity of user whose profile will be set. /// -/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfoV2Result` object on success or -/// a `DBTEAMMembersSetProfileError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfo` object on success or a +/// `DBTEAMMembersSetProfileError` object on failure. /// -- (DBRpcTask *)membersSetProfileV2: - (DBTEAMUserSelectorArg *)user; +- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user; /// /// Updates a team member's profile. Permission : Team member management. @@ -1369,11 +1368,11 @@ NS_ASSUME_NONNULL_BEGIN /// configuration. /// @param dNewIsDirectoryRestricted New value for whether the user is a directory restricted user. /// -/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfoV2Result` object on success or -/// a `DBTEAMMembersSetProfileError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfo` object on success or a +/// `DBTEAMMembersSetProfileError` object on failure. /// -- (DBRpcTask *) - membersSetProfileV2:(DBTEAMUserSelectorArg *)user +- (DBRpcTask *) + membersSetProfile:(DBTEAMUserSelectorArg *)user dNewEmail:(nullable NSString *)dNewEmail dNewExternalId:(nullable NSString *)dNewExternalId dNewGivenName:(nullable NSString *)dNewGivenName @@ -1386,10 +1385,11 @@ NS_ASSUME_NONNULL_BEGIN /// /// @param user Identity of user whose profile will be set. /// -/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfo` object on success or a -/// `DBTEAMMembersSetProfileError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfoV2Result` object on success or +/// a `DBTEAMMembersSetProfileError` object on failure. /// -- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user; +- (DBRpcTask *)membersSetProfileV2: + (DBTEAMUserSelectorArg *)user; /// /// Updates a team member's profile. Permission : Team member management. @@ -1403,11 +1403,11 @@ NS_ASSUME_NONNULL_BEGIN /// configuration. /// @param dNewIsDirectoryRestricted New value for whether the user is a directory restricted user. /// -/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfo` object on success or a -/// `DBTEAMMembersSetProfileError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfoV2Result` object on success or +/// a `DBTEAMMembersSetProfileError` object on failure. /// -- (DBRpcTask *) - membersSetProfile:(DBTEAMUserSelectorArg *)user +- (DBRpcTask *) + membersSetProfileV2:(DBTEAMUserSelectorArg *)user dNewEmail:(nullable NSString *)dNewEmail dNewExternalId:(nullable NSString *)dNewExternalId dNewGivenName:(nullable NSString *)dNewGivenName @@ -1421,12 +1421,12 @@ NS_ASSUME_NONNULL_BEGIN /// @param user Identity of the user whose profile photo will be set. /// @param photo Image to set as the member's new profile photo. /// -/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfoV2Result` object on success or -/// a `DBTEAMMembersSetProfilePhotoError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfo` object on success or a +/// `DBTEAMMembersSetProfilePhotoError` object on failure. /// -- (DBRpcTask *) - membersSetProfilePhotoV2:(DBTEAMUserSelectorArg *)user - photo:(DBACCOUNTPhotoSourceArg *)photo; +- (DBRpcTask *) + membersSetProfilePhoto:(DBTEAMUserSelectorArg *)user + photo:(DBACCOUNTPhotoSourceArg *)photo; /// /// Updates a team member's profile photo. Permission : Team member management. @@ -1434,12 +1434,12 @@ NS_ASSUME_NONNULL_BEGIN /// @param user Identity of the user whose profile photo will be set. /// @param photo Image to set as the member's new profile photo. /// -/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfo` object on success or a -/// `DBTEAMMembersSetProfilePhotoError` object on failure. +/// @return Through the response callback, the caller will receive a `DBTEAMTeamMemberInfoV2Result` object on success or +/// a `DBTEAMMembersSetProfilePhotoError` object on failure. /// -- (DBRpcTask *) - membersSetProfilePhoto:(DBTEAMUserSelectorArg *)user - photo:(DBACCOUNTPhotoSourceArg *)photo; +- (DBRpcTask *) + membersSetProfilePhotoV2:(DBTEAMUserSelectorArg *)user + photo:(DBACCOUNTPhotoSourceArg *)photo; /// /// Suspend a member from a team. Permission : Team member management Exactly one of team_member_id, email, or diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBTEAMTeamAuthRoutes.m b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBTEAMTeamAuthRoutes.m index f343e2c9b..1a46ea7c5 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBTEAMTeamAuthRoutes.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/DBTEAMTeamAuthRoutes.m @@ -704,18 +704,6 @@ - (DBRpcTask *)memberSpaceLimitsSetCustomQuota:(NSArray *)dNewMembers { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddV2; - DBTEAMMembersAddV2Arg *arg = [[DBTEAMMembersAddV2Arg alloc] initWithDNewMembers:dNewMembers]; - return [self.client requestRpc:route arg:arg]; -} - -- (DBRpcTask *)membersAddV2:(NSArray *)dNewMembers forceAsync:(NSNumber *)forceAsync { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddV2; - DBTEAMMembersAddV2Arg *arg = [[DBTEAMMembersAddV2Arg alloc] initWithDNewMembers:dNewMembers forceAsync:forceAsync]; - return [self.client requestRpc:route arg:arg]; -} - - (DBRpcTask *)membersAdd:(NSArray *)dNewMembers { DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAdd; DBTEAMMembersAddArg *arg = [[DBTEAMMembersAddArg alloc] initWithDNewMembers:dNewMembers]; @@ -728,9 +716,15 @@ - (DBRpcTask *)membersAdd:(NSArray *)dNewMembers forceAsyn return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersAddJobStatusGetV2:(NSString *)asyncJobId { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddJobStatusGetV2; - DBASYNCPollArg *arg = [[DBASYNCPollArg alloc] initWithAsyncJobId:asyncJobId]; +- (DBRpcTask *)membersAddV2:(NSArray *)dNewMembers { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddV2; + DBTEAMMembersAddV2Arg *arg = [[DBTEAMMembersAddV2Arg alloc] initWithDNewMembers:dNewMembers]; + return [self.client requestRpc:route arg:arg]; +} + +- (DBRpcTask *)membersAddV2:(NSArray *)dNewMembers forceAsync:(NSNumber *)forceAsync { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddV2; + DBTEAMMembersAddV2Arg *arg = [[DBTEAMMembersAddV2Arg alloc] initWithDNewMembers:dNewMembers forceAsync:forceAsync]; return [self.client requestRpc:route arg:arg]; } @@ -740,9 +734,9 @@ - (DBRpcTask *)membersAddJobStatusGet:(NSString *)asyncJobId { return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersDeleteProfilePhotoV2:(DBTEAMUserSelectorArg *)user { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersDeleteProfilePhotoV2; - DBTEAMMembersDeleteProfilePhotoArg *arg = [[DBTEAMMembersDeleteProfilePhotoArg alloc] initWithUser:user]; +- (DBRpcTask *)membersAddJobStatusGetV2:(NSString *)asyncJobId { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersAddJobStatusGetV2; + DBASYNCPollArg *arg = [[DBASYNCPollArg alloc] initWithAsyncJobId:asyncJobId]; return [self.client requestRpc:route arg:arg]; } @@ -752,32 +746,26 @@ - (DBRpcTask *)membersDeleteProfilePhoto:(DBTEAMUserSelectorArg *)user { return [self.client requestRpc:route arg:arg]; } +- (DBRpcTask *)membersDeleteProfilePhotoV2:(DBTEAMUserSelectorArg *)user { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersDeleteProfilePhotoV2; + DBTEAMMembersDeleteProfilePhotoArg *arg = [[DBTEAMMembersDeleteProfilePhotoArg alloc] initWithUser:user]; + return [self.client requestRpc:route arg:arg]; +} + - (DBRpcTask *)membersGetAvailableTeamMemberRoles { DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersGetAvailableTeamMemberRoles; return [self.client requestRpc:route arg:nil]; } -- (DBRpcTask *)membersGetInfoV2:(NSArray *)members { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersGetInfoV2; - DBTEAMMembersGetInfoV2Arg *arg = [[DBTEAMMembersGetInfoV2Arg alloc] initWithMembers:members]; - return [self.client requestRpc:route arg:arg]; -} - - (DBRpcTask *)membersGetInfo:(NSArray *)members { DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersGetInfo; DBTEAMMembersGetInfoArgs *arg = [[DBTEAMMembersGetInfoArgs alloc] initWithMembers:members]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersListV2 { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListV2; - DBTEAMMembersListArg *arg = [[DBTEAMMembersListArg alloc] initDefault]; - return [self.client requestRpc:route arg:arg]; -} - -- (DBRpcTask *)membersListV2:(NSNumber *)limit includeRemoved:(NSNumber *)includeRemoved { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListV2; - DBTEAMMembersListArg *arg = [[DBTEAMMembersListArg alloc] initWithLimit:limit includeRemoved:includeRemoved]; +- (DBRpcTask *)membersGetInfoV2:(NSArray *)members { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersGetInfoV2; + DBTEAMMembersGetInfoV2Arg *arg = [[DBTEAMMembersGetInfoV2Arg alloc] initWithMembers:members]; return [self.client requestRpc:route arg:arg]; } @@ -793,9 +781,15 @@ - (DBRpcTask *)membersList:(NSNumber *)limit includeRemoved:(NSNumber *)includeR return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersListContinueV2:(NSString *)cursor { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListContinueV2; - DBTEAMMembersListContinueArg *arg = [[DBTEAMMembersListContinueArg alloc] initWithCursor:cursor]; +- (DBRpcTask *)membersListV2 { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListV2; + DBTEAMMembersListArg *arg = [[DBTEAMMembersListArg alloc] initDefault]; + return [self.client requestRpc:route arg:arg]; +} + +- (DBRpcTask *)membersListV2:(NSNumber *)limit includeRemoved:(NSNumber *)includeRemoved { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListV2; + DBTEAMMembersListArg *arg = [[DBTEAMMembersListArg alloc] initWithLimit:limit includeRemoved:includeRemoved]; return [self.client requestRpc:route arg:arg]; } @@ -805,6 +799,12 @@ - (DBRpcTask *)membersListContinue:(NSString *)cursor { return [self.client requestRpc:route arg:arg]; } +- (DBRpcTask *)membersListContinueV2:(NSString *)cursor { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersListContinueV2; + DBTEAMMembersListContinueArg *arg = [[DBTEAMMembersListContinueArg alloc] initWithCursor:cursor]; + return [self.client requestRpc:route arg:arg]; +} + - (DBRpcTask *)membersMoveFormerMemberFiles:(DBTEAMUserSelectorArg *)user transferDestId:(DBTEAMUserSelectorArg *)transferDestId transferAdminId:(DBTEAMUserSelectorArg *)transferAdminId { @@ -882,6 +882,12 @@ - (DBRpcTask *)membersSendWelcomeEmail:(DBTEAMUserSelectorArg *)userSelectorArg return [self.client requestRpc:route arg:arg]; } +- (DBRpcTask *)membersSetAdminPermissions:(DBTEAMUserSelectorArg *)user dNewRole:(DBTEAMAdminTier *)dNewRole { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetAdminPermissions; + DBTEAMMembersSetPermissionsArg *arg = [[DBTEAMMembersSetPermissionsArg alloc] initWithUser:user dNewRole:dNewRole]; + return [self.client requestRpc:route arg:arg]; +} + - (DBRpcTask *)membersSetAdminPermissionsV2:(DBTEAMUserSelectorArg *)user { DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetAdminPermissionsV2; DBTEAMMembersSetPermissions2Arg *arg = [[DBTEAMMembersSetPermissions2Arg alloc] initWithUser:user]; @@ -895,26 +901,20 @@ - (DBRpcTask *)membersSetAdminPermissionsV2:(DBTEAMUserSelectorArg *)user dNewRo return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersSetAdminPermissions:(DBTEAMUserSelectorArg *)user dNewRole:(DBTEAMAdminTier *)dNewRole { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetAdminPermissions; - DBTEAMMembersSetPermissionsArg *arg = [[DBTEAMMembersSetPermissionsArg alloc] initWithUser:user dNewRole:dNewRole]; - return [self.client requestRpc:route arg:arg]; -} - -- (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfileV2; +- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfile; DBTEAMMembersSetProfileArg *arg = [[DBTEAMMembersSetProfileArg alloc] initWithUser:user]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user - dNewEmail:(NSString *)dNewEmail - dNewExternalId:(NSString *)dNewExternalId - dNewGivenName:(NSString *)dNewGivenName - dNewSurname:(NSString *)dNewSurname - dNewPersistentId:(NSString *)dNewPersistentId - dNewIsDirectoryRestricted:(NSNumber *)dNewIsDirectoryRestricted { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfileV2; +- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user + dNewEmail:(NSString *)dNewEmail + dNewExternalId:(NSString *)dNewExternalId + dNewGivenName:(NSString *)dNewGivenName + dNewSurname:(NSString *)dNewSurname + dNewPersistentId:(NSString *)dNewPersistentId + dNewIsDirectoryRestricted:(NSNumber *)dNewIsDirectoryRestricted { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfile; DBTEAMMembersSetProfileArg *arg = [[DBTEAMMembersSetProfileArg alloc] initWithUser:user dNewEmail:dNewEmail dNewExternalId:dNewExternalId @@ -925,20 +925,20 @@ - (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfile; +- (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfileV2; DBTEAMMembersSetProfileArg *arg = [[DBTEAMMembersSetProfileArg alloc] initWithUser:user]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user - dNewEmail:(NSString *)dNewEmail - dNewExternalId:(NSString *)dNewExternalId - dNewGivenName:(NSString *)dNewGivenName - dNewSurname:(NSString *)dNewSurname - dNewPersistentId:(NSString *)dNewPersistentId - dNewIsDirectoryRestricted:(NSNumber *)dNewIsDirectoryRestricted { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfile; +- (DBRpcTask *)membersSetProfileV2:(DBTEAMUserSelectorArg *)user + dNewEmail:(NSString *)dNewEmail + dNewExternalId:(NSString *)dNewExternalId + dNewGivenName:(NSString *)dNewGivenName + dNewSurname:(NSString *)dNewSurname + dNewPersistentId:(NSString *)dNewPersistentId + dNewIsDirectoryRestricted:(NSNumber *)dNewIsDirectoryRestricted { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfileV2; DBTEAMMembersSetProfileArg *arg = [[DBTEAMMembersSetProfileArg alloc] initWithUser:user dNewEmail:dNewEmail dNewExternalId:dNewExternalId @@ -949,14 +949,14 @@ - (DBRpcTask *)membersSetProfile:(DBTEAMUserSelectorArg *)user return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersSetProfilePhotoV2:(DBTEAMUserSelectorArg *)user photo:(DBACCOUNTPhotoSourceArg *)photo { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfilePhotoV2; +- (DBRpcTask *)membersSetProfilePhoto:(DBTEAMUserSelectorArg *)user photo:(DBACCOUNTPhotoSourceArg *)photo { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfilePhoto; DBTEAMMembersSetProfilePhotoArg *arg = [[DBTEAMMembersSetProfilePhotoArg alloc] initWithUser:user photo:photo]; return [self.client requestRpc:route arg:arg]; } -- (DBRpcTask *)membersSetProfilePhoto:(DBTEAMUserSelectorArg *)user photo:(DBACCOUNTPhotoSourceArg *)photo { - DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfilePhoto; +- (DBRpcTask *)membersSetProfilePhotoV2:(DBTEAMUserSelectorArg *)user photo:(DBACCOUNTPhotoSourceArg *)photo { + DBRoute *route = DBTEAMRouteObjects.DBTEAMMembersSetProfilePhotoV2; DBTEAMMembersSetProfilePhotoArg *arg = [[DBTEAMMembersSetProfilePhotoArg alloc] initWithUser:user photo:photo]; return [self.client requestRpc:route arg:arg]; } diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.h index e18d61ec5..4c38d4f05 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.h @@ -32,12 +32,12 @@ NS_ASSUME_NONNULL_BEGIN /// Accessor method for the get route object. + (DBRoute *)DBFILEREQUESTSGet; -/// Accessor method for the listV2 route object. -+ (DBRoute *)DBFILEREQUESTSListV2; - /// Accessor method for the list route object. + (DBRoute *)DBFILEREQUESTSList; +/// Accessor method for the listV2 route object. ++ (DBRoute *)DBFILEREQUESTSListV2; + /// Accessor method for the listContinue route object. + (DBRoute *)DBFILEREQUESTSListContinue; diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.m b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.m index 93850a90d..313ed5dd7 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILEREQUESTSRouteObjects.m @@ -33,8 +33,8 @@ @implementation DBFILEREQUESTSRouteObjects static DBRoute *DBFILEREQUESTSDelete_; static DBRoute *DBFILEREQUESTSDeleteAllClosed; static DBRoute *DBFILEREQUESTSGet; -static DBRoute *DBFILEREQUESTSListV2; static DBRoute *DBFILEREQUESTSList; +static DBRoute *DBFILEREQUESTSListV2; static DBRoute *DBFILEREQUESTSListContinue; static DBRoute *DBFILEREQUESTSUpdate; @@ -126,22 +126,6 @@ + (DBRoute *)DBFILEREQUESTSGet { } } -+ (DBRoute *)DBFILEREQUESTSListV2 { - @synchronized(lockObj) { - if (!DBFILEREQUESTSListV2) { - DBFILEREQUESTSListV2 = [[DBRoute alloc] init:@"list_v2" - namespace_:@"file_requests" - deprecated:@NO - resultType:[DBFILEREQUESTSListFileRequestsV2Result class] - errorType:[DBFILEREQUESTSListFileRequestsError class] - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; - } - return DBFILEREQUESTSListV2; - } -} - + (DBRoute *)DBFILEREQUESTSList { @synchronized(lockObj) { if (!DBFILEREQUESTSList) { @@ -158,6 +142,22 @@ + (DBRoute *)DBFILEREQUESTSList { } } ++ (DBRoute *)DBFILEREQUESTSListV2 { + @synchronized(lockObj) { + if (!DBFILEREQUESTSListV2) { + DBFILEREQUESTSListV2 = [[DBRoute alloc] init:@"list_v2" + namespace_:@"file_requests" + deprecated:@NO + resultType:[DBFILEREQUESTSListFileRequestsV2Result class] + errorType:[DBFILEREQUESTSListFileRequestsError class] + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; + } + return DBFILEREQUESTSListV2; + } +} + + (DBRoute *)DBFILEREQUESTSListContinue { @synchronized(lockObj) { if (!DBFILEREQUESTSListContinue) { diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILESRouteObjects.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILESRouteObjects.h index a891e487e..0cfef3f20 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILESRouteObjects.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILESRouteObjects.h @@ -23,48 +23,48 @@ NS_ASSUME_NONNULL_BEGIN /// Accessor method for the alphaUpload route object. + (DBRoute *)DBFILESAlphaUpload; -/// Accessor method for the dCopyV2 route object. -+ (DBRoute *)DBFILESDCopyV2; - /// Accessor method for the dCopy route object. + (DBRoute *)DBFILESDCopy; -/// Accessor method for the dCopyBatchV2 route object. -+ (DBRoute *)DBFILESDCopyBatchV2; +/// Accessor method for the dCopyV2 route object. ++ (DBRoute *)DBFILESDCopyV2; /// Accessor method for the dCopyBatch route object. + (DBRoute *)DBFILESDCopyBatch; -/// Accessor method for the dCopyBatchCheckV2 route object. -+ (DBRoute *)DBFILESDCopyBatchCheckV2; +/// Accessor method for the dCopyBatchV2 route object. ++ (DBRoute *)DBFILESDCopyBatchV2; /// Accessor method for the dCopyBatchCheck route object. + (DBRoute *)DBFILESDCopyBatchCheck; +/// Accessor method for the dCopyBatchCheckV2 route object. ++ (DBRoute *)DBFILESDCopyBatchCheckV2; + /// Accessor method for the dCopyReferenceGet route object. + (DBRoute *)DBFILESDCopyReferenceGet; /// Accessor method for the dCopyReferenceSave route object. + (DBRoute *)DBFILESDCopyReferenceSave; -/// Accessor method for the createFolderV2 route object. -+ (DBRoute *)DBFILESCreateFolderV2; - /// Accessor method for the createFolder route object. + (DBRoute *)DBFILESCreateFolder; +/// Accessor method for the createFolderV2 route object. ++ (DBRoute *)DBFILESCreateFolderV2; + /// Accessor method for the createFolderBatch route object. + (DBRoute *)DBFILESCreateFolderBatch; /// Accessor method for the createFolderBatchCheck route object. + (DBRoute *)DBFILESCreateFolderBatchCheck; -/// Accessor method for the delete_V2 route object. -+ (DBRoute *)DBFILESDelete_V2; - /// Accessor method for the delete_ route object. + (DBRoute *)DBFILESDelete_; +/// Accessor method for the delete_V2 route object. ++ (DBRoute *)DBFILESDelete_V2; + /// Accessor method for the deleteBatch route object. + (DBRoute *)DBFILESDeleteBatch; @@ -122,24 +122,24 @@ NS_ASSUME_NONNULL_BEGIN /// Accessor method for the lockFileBatch route object. + (DBRoute *)DBFILESLockFileBatch; -/// Accessor method for the moveV2 route object. -+ (DBRoute *)DBFILESMoveV2; - /// Accessor method for the move route object. + (DBRoute *)DBFILESMove; -/// Accessor method for the moveBatchV2 route object. -+ (DBRoute *)DBFILESMoveBatchV2; +/// Accessor method for the moveV2 route object. ++ (DBRoute *)DBFILESMoveV2; /// Accessor method for the moveBatch route object. + (DBRoute *)DBFILESMoveBatch; -/// Accessor method for the moveBatchCheckV2 route object. -+ (DBRoute *)DBFILESMoveBatchCheckV2; +/// Accessor method for the moveBatchV2 route object. ++ (DBRoute *)DBFILESMoveBatchV2; /// Accessor method for the moveBatchCheck route object. + (DBRoute *)DBFILESMoveBatchCheck; +/// Accessor method for the moveBatchCheckV2 route object. ++ (DBRoute *)DBFILESMoveBatchCheckV2; + /// Accessor method for the paperCreate route object. + (DBRoute *)DBFILESPaperCreate; @@ -200,12 +200,12 @@ NS_ASSUME_NONNULL_BEGIN /// Accessor method for the upload route object. + (DBRoute *)DBFILESUpload; -/// Accessor method for the uploadSessionAppendV2 route object. -+ (DBRoute *)DBFILESUploadSessionAppendV2; - /// Accessor method for the uploadSessionAppend route object. + (DBRoute *)DBFILESUploadSessionAppend; +/// Accessor method for the uploadSessionAppendV2 route object. ++ (DBRoute *)DBFILESUploadSessionAppendV2; + /// Accessor method for the uploadSessionFinish route object. + (DBRoute *)DBFILESUploadSessionFinish; diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILESRouteObjects.m b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILESRouteObjects.m index b185b29a7..a991dc747 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILESRouteObjects.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBFILESRouteObjects.m @@ -133,20 +133,20 @@ @implementation DBFILESRouteObjects static DBRoute *DBFILESAlphaGetMetadata; static DBRoute *DBFILESAlphaUpload; -static DBRoute *DBFILESDCopyV2; static DBRoute *DBFILESDCopy; -static DBRoute *DBFILESDCopyBatchV2; +static DBRoute *DBFILESDCopyV2; static DBRoute *DBFILESDCopyBatch; -static DBRoute *DBFILESDCopyBatchCheckV2; +static DBRoute *DBFILESDCopyBatchV2; static DBRoute *DBFILESDCopyBatchCheck; +static DBRoute *DBFILESDCopyBatchCheckV2; static DBRoute *DBFILESDCopyReferenceGet; static DBRoute *DBFILESDCopyReferenceSave; -static DBRoute *DBFILESCreateFolderV2; static DBRoute *DBFILESCreateFolder; +static DBRoute *DBFILESCreateFolderV2; static DBRoute *DBFILESCreateFolderBatch; static DBRoute *DBFILESCreateFolderBatchCheck; -static DBRoute *DBFILESDelete_V2; static DBRoute *DBFILESDelete_; +static DBRoute *DBFILESDelete_V2; static DBRoute *DBFILESDeleteBatch; static DBRoute *DBFILESDeleteBatchCheck; static DBRoute *DBFILESDownload; @@ -166,12 +166,12 @@ @implementation DBFILESRouteObjects static DBRoute *DBFILESListFolderLongpoll; static DBRoute *DBFILESListRevisions; static DBRoute *DBFILESLockFileBatch; -static DBRoute *DBFILESMoveV2; static DBRoute *DBFILESMove; -static DBRoute *DBFILESMoveBatchV2; +static DBRoute *DBFILESMoveV2; static DBRoute *DBFILESMoveBatch; -static DBRoute *DBFILESMoveBatchCheckV2; +static DBRoute *DBFILESMoveBatchV2; static DBRoute *DBFILESMoveBatchCheck; +static DBRoute *DBFILESMoveBatchCheckV2; static DBRoute *DBFILESPaperCreate; static DBRoute *DBFILESPaperUpdate; static DBRoute *DBFILESPermanentlyDelete; @@ -192,8 +192,8 @@ @implementation DBFILESRouteObjects static DBRoute *DBFILESTagsRemove; static DBRoute *DBFILESUnlockFileBatch; static DBRoute *DBFILESUpload; -static DBRoute *DBFILESUploadSessionAppendV2; static DBRoute *DBFILESUploadSessionAppend; +static DBRoute *DBFILESUploadSessionAppendV2; static DBRoute *DBFILESUploadSessionFinish; static DBRoute *DBFILESUploadSessionFinishBatch; static DBRoute *DBFILESUploadSessionFinishBatchV2; @@ -241,22 +241,6 @@ + (DBRoute *)DBFILESAlphaUpload { } } -+ (DBRoute *)DBFILESDCopyV2 { - @synchronized(lockObj) { - if (!DBFILESDCopyV2) { - DBFILESDCopyV2 = [[DBRoute alloc] init:@"copy_v2" - namespace_:@"files" - deprecated:@NO - resultType:[DBFILESRelocationResult class] - errorType:[DBFILESRelocationError class] - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; - } - return DBFILESDCopyV2; - } -} - + (DBRoute *)DBFILESDCopy { @synchronized(lockObj) { if (!DBFILESDCopy) { @@ -273,19 +257,19 @@ + (DBRoute *)DBFILESDCopy { } } -+ (DBRoute *)DBFILESDCopyBatchV2 { ++ (DBRoute *)DBFILESDCopyV2 { @synchronized(lockObj) { - if (!DBFILESDCopyBatchV2) { - DBFILESDCopyBatchV2 = [[DBRoute alloc] init:@"copy_batch_v2" - namespace_:@"files" - deprecated:@NO - resultType:[DBFILESRelocationBatchV2Launch class] - errorType:nil - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBFILESDCopyV2) { + DBFILESDCopyV2 = [[DBRoute alloc] init:@"copy_v2" + namespace_:@"files" + deprecated:@NO + resultType:[DBFILESRelocationResult class] + errorType:[DBFILESRelocationError class] + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBFILESDCopyBatchV2; + return DBFILESDCopyV2; } } @@ -305,19 +289,19 @@ + (DBRoute *)DBFILESDCopyBatch { } } -+ (DBRoute *)DBFILESDCopyBatchCheckV2 { ++ (DBRoute *)DBFILESDCopyBatchV2 { @synchronized(lockObj) { - if (!DBFILESDCopyBatchCheckV2) { - DBFILESDCopyBatchCheckV2 = [[DBRoute alloc] init:@"copy_batch/check_v2" - namespace_:@"files" - deprecated:@NO - resultType:[DBFILESRelocationBatchV2JobStatus class] - errorType:[DBASYNCPollError class] - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBFILESDCopyBatchV2) { + DBFILESDCopyBatchV2 = [[DBRoute alloc] init:@"copy_batch_v2" + namespace_:@"files" + deprecated:@NO + resultType:[DBFILESRelocationBatchV2Launch class] + errorType:nil + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBFILESDCopyBatchCheckV2; + return DBFILESDCopyBatchV2; } } @@ -337,6 +321,22 @@ + (DBRoute *)DBFILESDCopyBatchCheck { } } ++ (DBRoute *)DBFILESDCopyBatchCheckV2 { + @synchronized(lockObj) { + if (!DBFILESDCopyBatchCheckV2) { + DBFILESDCopyBatchCheckV2 = [[DBRoute alloc] init:@"copy_batch/check_v2" + namespace_:@"files" + deprecated:@NO + resultType:[DBFILESRelocationBatchV2JobStatus class] + errorType:[DBASYNCPollError class] + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; + } + return DBFILESDCopyBatchCheckV2; + } +} + + (DBRoute *)DBFILESDCopyReferenceGet { @synchronized(lockObj) { if (!DBFILESDCopyReferenceGet) { @@ -369,22 +369,6 @@ + (DBRoute *)DBFILESDCopyReferenceSave { } } -+ (DBRoute *)DBFILESCreateFolderV2 { - @synchronized(lockObj) { - if (!DBFILESCreateFolderV2) { - DBFILESCreateFolderV2 = [[DBRoute alloc] init:@"create_folder_v2" - namespace_:@"files" - deprecated:@NO - resultType:[DBFILESCreateFolderResult class] - errorType:[DBFILESCreateFolderError class] - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; - } - return DBFILESCreateFolderV2; - } -} - + (DBRoute *)DBFILESCreateFolder { @synchronized(lockObj) { if (!DBFILESCreateFolder) { @@ -401,6 +385,22 @@ + (DBRoute *)DBFILESCreateFolder { } } ++ (DBRoute *)DBFILESCreateFolderV2 { + @synchronized(lockObj) { + if (!DBFILESCreateFolderV2) { + DBFILESCreateFolderV2 = [[DBRoute alloc] init:@"create_folder_v2" + namespace_:@"files" + deprecated:@NO + resultType:[DBFILESCreateFolderResult class] + errorType:[DBFILESCreateFolderError class] + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; + } + return DBFILESCreateFolderV2; + } +} + + (DBRoute *)DBFILESCreateFolderBatch { @synchronized(lockObj) { if (!DBFILESCreateFolderBatch) { @@ -433,22 +433,6 @@ + (DBRoute *)DBFILESCreateFolderBatchCheck { } } -+ (DBRoute *)DBFILESDelete_V2 { - @synchronized(lockObj) { - if (!DBFILESDelete_V2) { - DBFILESDelete_V2 = [[DBRoute alloc] init:@"delete_v2" - namespace_:@"files" - deprecated:@NO - resultType:[DBFILESDeleteResult class] - errorType:[DBFILESDeleteError class] - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; - } - return DBFILESDelete_V2; - } -} - + (DBRoute *)DBFILESDelete_ { @synchronized(lockObj) { if (!DBFILESDelete_) { @@ -465,6 +449,22 @@ + (DBRoute *)DBFILESDelete_ { } } ++ (DBRoute *)DBFILESDelete_V2 { + @synchronized(lockObj) { + if (!DBFILESDelete_V2) { + DBFILESDelete_V2 = [[DBRoute alloc] init:@"delete_v2" + namespace_:@"files" + deprecated:@NO + resultType:[DBFILESDeleteResult class] + errorType:[DBFILESDeleteError class] + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; + } + return DBFILESDelete_V2; + } +} + + (DBRoute *)DBFILESDeleteBatch { @synchronized(lockObj) { if (!DBFILESDeleteBatch) { @@ -770,22 +770,6 @@ + (DBRoute *)DBFILESLockFileBatch { } } -+ (DBRoute *)DBFILESMoveV2 { - @synchronized(lockObj) { - if (!DBFILESMoveV2) { - DBFILESMoveV2 = [[DBRoute alloc] init:@"move_v2" - namespace_:@"files" - deprecated:@NO - resultType:[DBFILESRelocationResult class] - errorType:[DBFILESRelocationError class] - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; - } - return DBFILESMoveV2; - } -} - + (DBRoute *)DBFILESMove { @synchronized(lockObj) { if (!DBFILESMove) { @@ -802,19 +786,19 @@ + (DBRoute *)DBFILESMove { } } -+ (DBRoute *)DBFILESMoveBatchV2 { ++ (DBRoute *)DBFILESMoveV2 { @synchronized(lockObj) { - if (!DBFILESMoveBatchV2) { - DBFILESMoveBatchV2 = [[DBRoute alloc] init:@"move_batch_v2" - namespace_:@"files" - deprecated:@NO - resultType:[DBFILESRelocationBatchV2Launch class] - errorType:nil - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBFILESMoveV2) { + DBFILESMoveV2 = [[DBRoute alloc] init:@"move_v2" + namespace_:@"files" + deprecated:@NO + resultType:[DBFILESRelocationResult class] + errorType:[DBFILESRelocationError class] + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBFILESMoveBatchV2; + return DBFILESMoveV2; } } @@ -834,19 +818,19 @@ + (DBRoute *)DBFILESMoveBatch { } } -+ (DBRoute *)DBFILESMoveBatchCheckV2 { ++ (DBRoute *)DBFILESMoveBatchV2 { @synchronized(lockObj) { - if (!DBFILESMoveBatchCheckV2) { - DBFILESMoveBatchCheckV2 = [[DBRoute alloc] init:@"move_batch/check_v2" - namespace_:@"files" - deprecated:@NO - resultType:[DBFILESRelocationBatchV2JobStatus class] - errorType:[DBASYNCPollError class] - attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBFILESMoveBatchV2) { + DBFILESMoveBatchV2 = [[DBRoute alloc] init:@"move_batch_v2" + namespace_:@"files" + deprecated:@NO + resultType:[DBFILESRelocationBatchV2Launch class] + errorType:nil + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBFILESMoveBatchCheckV2; + return DBFILESMoveBatchV2; } } @@ -866,6 +850,22 @@ + (DBRoute *)DBFILESMoveBatchCheck { } } ++ (DBRoute *)DBFILESMoveBatchCheckV2 { + @synchronized(lockObj) { + if (!DBFILESMoveBatchCheckV2) { + DBFILESMoveBatchCheckV2 = [[DBRoute alloc] init:@"move_batch/check_v2" + namespace_:@"files" + deprecated:@NO + resultType:[DBFILESRelocationBatchV2JobStatus class] + errorType:[DBASYNCPollError class] + attrs:@{@"auth" : @"user", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; + } + return DBFILESMoveBatchCheckV2; + } +} + + (DBRoute *)DBFILESPaperCreate { @synchronized(lockObj) { if (!DBFILESPaperCreate) { @@ -1186,37 +1186,37 @@ + (DBRoute *)DBFILESUpload { } } -+ (DBRoute *)DBFILESUploadSessionAppendV2 { ++ (DBRoute *)DBFILESUploadSessionAppend { @synchronized(lockObj) { - if (!DBFILESUploadSessionAppendV2) { - DBFILESUploadSessionAppendV2 = - [[DBRoute alloc] init:@"upload_session/append_v2" + if (!DBFILESUploadSessionAppend) { + DBFILESUploadSessionAppend = + [[DBRoute alloc] init:@"upload_session/append" namespace_:@"files" - deprecated:@NO + deprecated:@YES resultType:nil errorType:[DBFILESUploadSessionAppendError class] attrs:@{@"auth" : @"user", @"host" : @"content", @"style" : @"upload"} dataStructSerialBlock:nil dataStructDeserialBlock:nil]; } - return DBFILESUploadSessionAppendV2; + return DBFILESUploadSessionAppend; } } -+ (DBRoute *)DBFILESUploadSessionAppend { ++ (DBRoute *)DBFILESUploadSessionAppendV2 { @synchronized(lockObj) { - if (!DBFILESUploadSessionAppend) { - DBFILESUploadSessionAppend = - [[DBRoute alloc] init:@"upload_session/append" + if (!DBFILESUploadSessionAppendV2) { + DBFILESUploadSessionAppendV2 = + [[DBRoute alloc] init:@"upload_session/append_v2" namespace_:@"files" - deprecated:@YES + deprecated:@NO resultType:nil errorType:[DBFILESUploadSessionAppendError class] attrs:@{@"auth" : @"user", @"host" : @"content", @"style" : @"upload"} dataStructSerialBlock:nil dataStructDeserialBlock:nil]; } - return DBFILESUploadSessionAppend; + return DBFILESUploadSessionAppendV2; } } diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMRouteObjects.h b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMRouteObjects.h index 0cc1f8e7d..b4bb7180d 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMRouteObjects.h +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMRouteObjects.h @@ -131,45 +131,45 @@ NS_ASSUME_NONNULL_BEGIN /// Accessor method for the memberSpaceLimitsSetCustomQuota route object. + (DBRoute *)DBTEAMMemberSpaceLimitsSetCustomQuota; -/// Accessor method for the membersAddV2 route object. -+ (DBRoute *)DBTEAMMembersAddV2; - /// Accessor method for the membersAdd route object. + (DBRoute *)DBTEAMMembersAdd; -/// Accessor method for the membersAddJobStatusGetV2 route object. -+ (DBRoute *)DBTEAMMembersAddJobStatusGetV2; +/// Accessor method for the membersAddV2 route object. ++ (DBRoute *)DBTEAMMembersAddV2; /// Accessor method for the membersAddJobStatusGet route object. + (DBRoute *)DBTEAMMembersAddJobStatusGet; -/// Accessor method for the membersDeleteProfilePhotoV2 route object. -+ (DBRoute *)DBTEAMMembersDeleteProfilePhotoV2; +/// Accessor method for the membersAddJobStatusGetV2 route object. ++ (DBRoute *)DBTEAMMembersAddJobStatusGetV2; /// Accessor method for the membersDeleteProfilePhoto route object. + (DBRoute *)DBTEAMMembersDeleteProfilePhoto; +/// Accessor method for the membersDeleteProfilePhotoV2 route object. ++ (DBRoute *)DBTEAMMembersDeleteProfilePhotoV2; + /// Accessor method for the membersGetAvailableTeamMemberRoles route object. + (DBRoute *)DBTEAMMembersGetAvailableTeamMemberRoles; -/// Accessor method for the membersGetInfoV2 route object. -+ (DBRoute *)DBTEAMMembersGetInfoV2; - /// Accessor method for the membersGetInfo route object. + (DBRoute *)DBTEAMMembersGetInfo; -/// Accessor method for the membersListV2 route object. -+ (DBRoute *)DBTEAMMembersListV2; +/// Accessor method for the membersGetInfoV2 route object. ++ (DBRoute *)DBTEAMMembersGetInfoV2; /// Accessor method for the membersList route object. + (DBRoute *)DBTEAMMembersList; -/// Accessor method for the membersListContinueV2 route object. -+ (DBRoute *)DBTEAMMembersListContinueV2; +/// Accessor method for the membersListV2 route object. ++ (DBRoute *)DBTEAMMembersListV2; /// Accessor method for the membersListContinue route object. + (DBRoute *)DBTEAMMembersListContinue; +/// Accessor method for the membersListContinueV2 route object. ++ (DBRoute *)DBTEAMMembersListContinueV2; + /// Accessor method for the membersMoveFormerMemberFiles route object. + (DBRoute *)DBTEAMMembersMoveFormerMemberFiles; @@ -199,24 +199,24 @@ NS_ASSUME_NONNULL_BEGIN /// Accessor method for the membersSendWelcomeEmail route object. + (DBRoute *)DBTEAMMembersSendWelcomeEmail; -/// Accessor method for the membersSetAdminPermissionsV2 route object. -+ (DBRoute *)DBTEAMMembersSetAdminPermissionsV2; - /// Accessor method for the membersSetAdminPermissions route object. + (DBRoute *)DBTEAMMembersSetAdminPermissions; -/// Accessor method for the membersSetProfileV2 route object. -+ (DBRoute *)DBTEAMMembersSetProfileV2; +/// Accessor method for the membersSetAdminPermissionsV2 route object. ++ (DBRoute *)DBTEAMMembersSetAdminPermissionsV2; /// Accessor method for the membersSetProfile route object. + (DBRoute *)DBTEAMMembersSetProfile; -/// Accessor method for the membersSetProfilePhotoV2 route object. -+ (DBRoute *)DBTEAMMembersSetProfilePhotoV2; +/// Accessor method for the membersSetProfileV2 route object. ++ (DBRoute *)DBTEAMMembersSetProfileV2; /// Accessor method for the membersSetProfilePhoto route object. + (DBRoute *)DBTEAMMembersSetProfilePhoto; +/// Accessor method for the membersSetProfilePhotoV2 route object. ++ (DBRoute *)DBTEAMMembersSetProfilePhotoV2; + /// Accessor method for the membersSuspend route object. + (DBRoute *)DBTEAMMembersSuspend; diff --git a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMRouteObjects.m b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMRouteObjects.m index 2d7e9f59e..1d805ba75 100644 --- a/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMRouteObjects.m +++ b/Source/ObjectiveDropboxOfficial/Shared/Generated/Routes/RouteObjects/DBTEAMRouteObjects.m @@ -230,19 +230,19 @@ @implementation DBTEAMRouteObjects static DBRoute *DBTEAMMemberSpaceLimitsGetCustomQuota; static DBRoute *DBTEAMMemberSpaceLimitsRemoveCustomQuota; static DBRoute *DBTEAMMemberSpaceLimitsSetCustomQuota; -static DBRoute *DBTEAMMembersAddV2; static DBRoute *DBTEAMMembersAdd; -static DBRoute *DBTEAMMembersAddJobStatusGetV2; +static DBRoute *DBTEAMMembersAddV2; static DBRoute *DBTEAMMembersAddJobStatusGet; -static DBRoute *DBTEAMMembersDeleteProfilePhotoV2; +static DBRoute *DBTEAMMembersAddJobStatusGetV2; static DBRoute *DBTEAMMembersDeleteProfilePhoto; +static DBRoute *DBTEAMMembersDeleteProfilePhotoV2; static DBRoute *DBTEAMMembersGetAvailableTeamMemberRoles; -static DBRoute *DBTEAMMembersGetInfoV2; static DBRoute *DBTEAMMembersGetInfo; -static DBRoute *DBTEAMMembersListV2; +static DBRoute *DBTEAMMembersGetInfoV2; static DBRoute *DBTEAMMembersList; -static DBRoute *DBTEAMMembersListContinueV2; +static DBRoute *DBTEAMMembersListV2; static DBRoute *DBTEAMMembersListContinue; +static DBRoute *DBTEAMMembersListContinueV2; static DBRoute *DBTEAMMembersMoveFormerMemberFiles; static DBRoute *DBTEAMMembersMoveFormerMemberFilesJobStatusCheck; static DBRoute *DBTEAMMembersRecover; @@ -252,12 +252,12 @@ @implementation DBTEAMRouteObjects static DBRoute *DBTEAMMembersSecondaryEmailsDelete; static DBRoute *DBTEAMMembersSecondaryEmailsResendVerificationEmails; static DBRoute *DBTEAMMembersSendWelcomeEmail; -static DBRoute *DBTEAMMembersSetAdminPermissionsV2; static DBRoute *DBTEAMMembersSetAdminPermissions; -static DBRoute *DBTEAMMembersSetProfileV2; +static DBRoute *DBTEAMMembersSetAdminPermissionsV2; static DBRoute *DBTEAMMembersSetProfile; -static DBRoute *DBTEAMMembersSetProfilePhotoV2; +static DBRoute *DBTEAMMembersSetProfileV2; static DBRoute *DBTEAMMembersSetProfilePhoto; +static DBRoute *DBTEAMMembersSetProfilePhotoV2; static DBRoute *DBTEAMMembersSuspend; static DBRoute *DBTEAMMembersUnsuspend; static DBRoute *DBTEAMNamespacesList; @@ -942,6 +942,22 @@ + (DBRoute *)DBTEAMMemberSpaceLimitsSetCustomQuota { } } ++ (DBRoute *)DBTEAMMembersAdd { + @synchronized(lockObj) { + if (!DBTEAMMembersAdd) { + DBTEAMMembersAdd = [[DBRoute alloc] init:@"members/add" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMMembersAddLaunch class] + errorType:nil + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; + } + return DBTEAMMembersAdd; + } +} + + (DBRoute *)DBTEAMMembersAddV2 { @synchronized(lockObj) { if (!DBTEAMMembersAddV2) { @@ -958,19 +974,19 @@ + (DBRoute *)DBTEAMMembersAddV2 { } } -+ (DBRoute *)DBTEAMMembersAdd { ++ (DBRoute *)DBTEAMMembersAddJobStatusGet { @synchronized(lockObj) { - if (!DBTEAMMembersAdd) { - DBTEAMMembersAdd = [[DBRoute alloc] init:@"members/add" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMMembersAddLaunch class] - errorType:nil - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBTEAMMembersAddJobStatusGet) { + DBTEAMMembersAddJobStatusGet = [[DBRoute alloc] init:@"members/add/job_status/get" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMMembersAddJobStatus class] + errorType:[DBASYNCPollError class] + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBTEAMMembersAdd; + return DBTEAMMembersAddJobStatusGet; } } @@ -990,19 +1006,19 @@ + (DBRoute *)DBTEAMMembersAddJobStatusGetV2 { } } -+ (DBRoute *)DBTEAMMembersAddJobStatusGet { ++ (DBRoute *)DBTEAMMembersDeleteProfilePhoto { @synchronized(lockObj) { - if (!DBTEAMMembersAddJobStatusGet) { - DBTEAMMembersAddJobStatusGet = [[DBRoute alloc] init:@"members/add/job_status/get" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMMembersAddJobStatus class] - errorType:[DBASYNCPollError class] - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBTEAMMembersDeleteProfilePhoto) { + DBTEAMMembersDeleteProfilePhoto = [[DBRoute alloc] init:@"members/delete_profile_photo" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMTeamMemberInfo class] + errorType:[DBTEAMMembersDeleteProfilePhotoError class] + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBTEAMMembersAddJobStatusGet; + return DBTEAMMembersDeleteProfilePhoto; } } @@ -1023,22 +1039,6 @@ + (DBRoute *)DBTEAMMembersDeleteProfilePhotoV2 { } } -+ (DBRoute *)DBTEAMMembersDeleteProfilePhoto { - @synchronized(lockObj) { - if (!DBTEAMMembersDeleteProfilePhoto) { - DBTEAMMembersDeleteProfilePhoto = [[DBRoute alloc] init:@"members/delete_profile_photo" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMTeamMemberInfo class] - errorType:[DBTEAMMembersDeleteProfilePhotoError class] - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; - } - return DBTEAMMembersDeleteProfilePhoto; - } -} - + (DBRoute *)DBTEAMMembersGetAvailableTeamMemberRoles { @synchronized(lockObj) { if (!DBTEAMMembersGetAvailableTeamMemberRoles) { @@ -1056,22 +1056,6 @@ + (DBRoute *)DBTEAMMembersGetAvailableTeamMemberRoles { } } -+ (DBRoute *)DBTEAMMembersGetInfoV2 { - @synchronized(lockObj) { - if (!DBTEAMMembersGetInfoV2) { - DBTEAMMembersGetInfoV2 = [[DBRoute alloc] init:@"members/get_info_v2" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMMembersGetInfoV2Result class] - errorType:[DBTEAMMembersGetInfoError class] - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; - } - return DBTEAMMembersGetInfoV2; - } -} - + (DBRoute *)DBTEAMMembersGetInfo { @synchronized(lockObj) { if (!DBTEAMMembersGetInfo) { @@ -1094,19 +1078,19 @@ + (DBRoute *)DBTEAMMembersGetInfo { } } -+ (DBRoute *)DBTEAMMembersListV2 { ++ (DBRoute *)DBTEAMMembersGetInfoV2 { @synchronized(lockObj) { - if (!DBTEAMMembersListV2) { - DBTEAMMembersListV2 = [[DBRoute alloc] init:@"members/list_v2" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMMembersListV2Result class] - errorType:[DBTEAMMembersListError class] - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBTEAMMembersGetInfoV2) { + DBTEAMMembersGetInfoV2 = [[DBRoute alloc] init:@"members/get_info_v2" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMMembersGetInfoV2Result class] + errorType:[DBTEAMMembersGetInfoError class] + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBTEAMMembersListV2; + return DBTEAMMembersGetInfoV2; } } @@ -1126,19 +1110,19 @@ + (DBRoute *)DBTEAMMembersList { } } -+ (DBRoute *)DBTEAMMembersListContinueV2 { ++ (DBRoute *)DBTEAMMembersListV2 { @synchronized(lockObj) { - if (!DBTEAMMembersListContinueV2) { - DBTEAMMembersListContinueV2 = [[DBRoute alloc] init:@"members/list/continue_v2" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMMembersListV2Result class] - errorType:[DBTEAMMembersListContinueError class] - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBTEAMMembersListV2) { + DBTEAMMembersListV2 = [[DBRoute alloc] init:@"members/list_v2" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMMembersListV2Result class] + errorType:[DBTEAMMembersListError class] + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBTEAMMembersListContinueV2; + return DBTEAMMembersListV2; } } @@ -1158,6 +1142,22 @@ + (DBRoute *)DBTEAMMembersListContinue { } } ++ (DBRoute *)DBTEAMMembersListContinueV2 { + @synchronized(lockObj) { + if (!DBTEAMMembersListContinueV2) { + DBTEAMMembersListContinueV2 = [[DBRoute alloc] init:@"members/list/continue_v2" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMMembersListV2Result class] + errorType:[DBTEAMMembersListContinueError class] + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; + } + return DBTEAMMembersListContinueV2; + } +} + + (DBRoute *)DBTEAMMembersMoveFormerMemberFiles { @synchronized(lockObj) { if (!DBTEAMMembersMoveFormerMemberFiles) { @@ -1306,6 +1306,22 @@ + (DBRoute *)DBTEAMMembersSendWelcomeEmail { } } ++ (DBRoute *)DBTEAMMembersSetAdminPermissions { + @synchronized(lockObj) { + if (!DBTEAMMembersSetAdminPermissions) { + DBTEAMMembersSetAdminPermissions = [[DBRoute alloc] init:@"members/set_admin_permissions" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMMembersSetPermissionsResult class] + errorType:[DBTEAMMembersSetPermissionsError class] + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; + } + return DBTEAMMembersSetAdminPermissions; + } +} + + (DBRoute *)DBTEAMMembersSetAdminPermissionsV2 { @synchronized(lockObj) { if (!DBTEAMMembersSetAdminPermissionsV2) { @@ -1323,19 +1339,19 @@ + (DBRoute *)DBTEAMMembersSetAdminPermissionsV2 { } } -+ (DBRoute *)DBTEAMMembersSetAdminPermissions { ++ (DBRoute *)DBTEAMMembersSetProfile { @synchronized(lockObj) { - if (!DBTEAMMembersSetAdminPermissions) { - DBTEAMMembersSetAdminPermissions = [[DBRoute alloc] init:@"members/set_admin_permissions" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMMembersSetPermissionsResult class] - errorType:[DBTEAMMembersSetPermissionsError class] - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBTEAMMembersSetProfile) { + DBTEAMMembersSetProfile = [[DBRoute alloc] init:@"members/set_profile" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMTeamMemberInfo class] + errorType:[DBTEAMMembersSetProfileError class] + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBTEAMMembersSetAdminPermissions; + return DBTEAMMembersSetProfile; } } @@ -1355,19 +1371,19 @@ + (DBRoute *)DBTEAMMembersSetProfileV2 { } } -+ (DBRoute *)DBTEAMMembersSetProfile { ++ (DBRoute *)DBTEAMMembersSetProfilePhoto { @synchronized(lockObj) { - if (!DBTEAMMembersSetProfile) { - DBTEAMMembersSetProfile = [[DBRoute alloc] init:@"members/set_profile" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMTeamMemberInfo class] - errorType:[DBTEAMMembersSetProfileError class] - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; + if (!DBTEAMMembersSetProfilePhoto) { + DBTEAMMembersSetProfilePhoto = [[DBRoute alloc] init:@"members/set_profile_photo" + namespace_:@"team" + deprecated:@NO + resultType:[DBTEAMTeamMemberInfo class] + errorType:[DBTEAMMembersSetProfilePhotoError class] + attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} + dataStructSerialBlock:nil + dataStructDeserialBlock:nil]; } - return DBTEAMMembersSetProfile; + return DBTEAMMembersSetProfilePhoto; } } @@ -1387,22 +1403,6 @@ + (DBRoute *)DBTEAMMembersSetProfilePhotoV2 { } } -+ (DBRoute *)DBTEAMMembersSetProfilePhoto { - @synchronized(lockObj) { - if (!DBTEAMMembersSetProfilePhoto) { - DBTEAMMembersSetProfilePhoto = [[DBRoute alloc] init:@"members/set_profile_photo" - namespace_:@"team" - deprecated:@NO - resultType:[DBTEAMTeamMemberInfo class] - errorType:[DBTEAMMembersSetProfilePhotoError class] - attrs:@{@"auth" : @"team", @"host" : @"api", @"style" : @"rpc"} - dataStructSerialBlock:nil - dataStructDeserialBlock:nil]; - } - return DBTEAMMembersSetProfilePhoto; - } -} - + (DBRoute *)DBTEAMMembersSuspend { @synchronized(lockObj) { if (!DBTEAMMembersSuspend) {