protected UploadSessionLookupErrorException newException(DbxWrappedException error) { return new UploadSessionLookupErrorException("2/files/upload_session/append_v2", error.getRequestId(), error.getUserMessage(), (UploadSessionLookupError) error.getErrorValue()); } }
protected DbxApiException newException(DbxWrappedException error) { return new DbxApiException(error.getRequestId(), error.getUserMessage(), "Unexpected error response for \"upload_session/start\":" + error.getErrorValue()); } }
protected UploadErrorException newException(DbxWrappedException error) { return new UploadErrorException("2/files/upload", error.getRequestId(), error.getUserMessage(), (UploadError) error.getErrorValue()); } }
protected PaperDocCreateErrorException newException(DbxWrappedException error) { return new PaperDocCreateErrorException("2/paper/docs/create", error.getRequestId(), error.getUserMessage(), (PaperDocCreateError) error.getErrorValue()); } }
protected UploadSessionFinishErrorException newException(DbxWrappedException error) { return new UploadSessionFinishErrorException("2/files/upload_session/finish", error.getRequestId(), error.getUserMessage(), (UploadSessionFinishError) error.getErrorValue()); } }
protected UploadSessionLookupErrorException newException(DbxWrappedException error) { return new UploadSessionLookupErrorException("2/files/upload_session/append", error.getRequestId(), error.getUserMessage(), (UploadSessionLookupError) error.getErrorValue()); } }
protected UploadErrorWithPropertiesException newException(DbxWrappedException error) { return new UploadErrorWithPropertiesException("2/files/alpha/upload", error.getRequestId(), error.getUserMessage(), (UploadErrorWithProperties) error.getErrorValue()); } }
protected PaperDocUpdateErrorException newException(DbxWrappedException error) { return new PaperDocUpdateErrorException("2/paper/docs/update", error.getRequestId(), error.getUserMessage(), (PaperDocUpdateError) error.getErrorValue()); } }
/** * */ GetTemplateResult propertiesTemplateGet(GetTemplateArg arg) throws TemplateErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/files/properties/template/get", arg, false, GetTemplateArg.Serializer.INSTANCE, GetTemplateResult.Serializer.INSTANCE, TemplateError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new TemplateErrorException("2/files/properties/template/get", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); } }
/** * List all device sessions of a team. Permission : Team member file access. * */ ListMembersDevicesResult devicesListMembersDevices(ListMembersDevicesArg arg) throws ListMembersDevicesErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/devices/list_members_devices", arg, false, ListMembersDevicesArg.Serializer.INSTANCE, ListMembersDevicesResult.Serializer.INSTANCE, ListMembersDevicesError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new ListMembersDevicesErrorException("2/team/devices/list_members_devices", ex.getRequestId(), ex.getUserMessage(), (ListMembersDevicesError) ex.getErrorValue()); } }
/** * Revoke a list of linked applications of the team members. * */ RevokeLinkedAppBatchResult linkedAppsRevokeLinkedAppBatch(RevokeLinkedApiAppBatchArg arg) throws RevokeLinkedAppBatchErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/linked_apps/revoke_linked_app_batch", arg, false, RevokeLinkedApiAppBatchArg.Serializer.INSTANCE, RevokeLinkedAppBatchResult.Serializer.INSTANCE, RevokeLinkedAppBatchError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new RevokeLinkedAppBatchErrorException("2/team/linked_apps/revoke_linked_app_batch", ex.getRequestId(), ex.getUserMessage(), (RevokeLinkedAppBatchError) ex.getErrorValue()); } }
/** * Revoke a list of device sessions of team members. * */ RevokeDeviceSessionBatchResult devicesRevokeDeviceSessionBatch(RevokeDeviceSessionBatchArg arg) throws RevokeDeviceSessionBatchErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/devices/revoke_device_session_batch", arg, false, RevokeDeviceSessionBatchArg.Serializer.INSTANCE, RevokeDeviceSessionBatchResult.Serializer.INSTANCE, RevokeDeviceSessionBatchError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new RevokeDeviceSessionBatchErrorException("2/team/devices/revoke_device_session_batch", ex.getRequestId(), ex.getUserMessage(), (RevokeDeviceSessionBatchError) ex.getErrorValue()); } }
/** * Create a folder at a given path. * */ CreateFolderResult createFolderV2(CreateFolderArg arg) throws CreateFolderErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/files/create_folder_v2", arg, false, CreateFolderArg.Serializer.INSTANCE, CreateFolderResult.Serializer.INSTANCE, CreateFolderError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new CreateFolderErrorException("2/files/create_folder_v2", ex.getRequestId(), ex.getUserMessage(), (CreateFolderError) ex.getErrorValue()); } }
/** * */ void propertiesRemove(RemovePropertiesArg arg) throws RemovePropertiesErrorException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/files/properties/remove", arg, false, RemovePropertiesArg.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_(), RemovePropertiesError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new RemovePropertiesErrorException("2/files/properties/remove", ex.getRequestId(), ex.getUserMessage(), (RemovePropertiesError) ex.getErrorValue()); } }
/** * */ void propertiesAdd(AddPropertiesArg arg) throws AddPropertiesErrorException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/files/properties/add", arg, false, AddPropertiesArg.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_(), AddPropertiesError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new AddPropertiesErrorException("2/files/properties/add", ex.getRequestId(), ex.getUserMessage(), (AddPropertiesError) ex.getErrorValue()); } }
/** * */ void propertiesUpdate(UpdatePropertiesArg arg) throws UpdatePropertiesErrorException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/files/properties/update", arg, false, UpdatePropertiesArg.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_(), UpdatePropertiesError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new UpdatePropertiesErrorException("2/files/properties/update", ex.getRequestId(), ex.getUserMessage(), (UpdatePropertiesError) ex.getErrorValue()); } }
/** * */ void propertiesOverwrite(OverwritePropertyGroupArg arg) throws InvalidPropertyGroupErrorException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/files/properties/overwrite", arg, false, OverwritePropertyGroupArg.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_(), InvalidPropertyGroupError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new InvalidPropertyGroupErrorException("2/files/properties/overwrite", ex.getRequestId(), ex.getUserMessage(), (InvalidPropertyGroupError) ex.getErrorValue()); } }
/** * Revoke a linked application of the team member. * */ void linkedAppsRevokeLinkedApp(RevokeLinkedApiAppArg arg) throws RevokeLinkedAppErrorException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/team/linked_apps/revoke_linked_app", arg, false, RevokeLinkedApiAppArg.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_(), RevokeLinkedAppError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new RevokeLinkedAppErrorException("2/team/linked_apps/revoke_linked_app", ex.getRequestId(), ex.getUserMessage(), (RevokeLinkedAppError) ex.getErrorValue()); } }
/** * Removes manually added contacts from the given list. * */ void deleteManualContactsBatch(DeleteManualContactsArg arg) throws DeleteManualContactsErrorException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/contacts/delete_manual_contacts_batch", arg, false, DeleteManualContactsArg.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_(), DeleteManualContactsError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new DeleteManualContactsErrorException("2/contacts/delete_manual_contacts_batch", ex.getRequestId(), ex.getUserMessage(), (DeleteManualContactsError) ex.getErrorValue()); } }
/** * Retrieves information about a team. */ public TeamGetInfoResult getInfo() throws DbxApiException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/get_info", null, false, com.dropbox.core.stone.StoneSerializers.void_(), TeamGetInfoResult.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_()); } catch (DbxWrappedException ex) { throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"get_info\":" + ex.getErrorValue()); } }