/** * */ 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()); } }
/** * List all device sessions of a team. Permission : Team member file access. * */ ListTeamDevicesResult devicesListTeamDevices(ListTeamDevicesArg arg) throws ListTeamDevicesErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/devices/list_team_devices", arg, false, ListTeamDevicesArg.Serializer.INSTANCE, ListTeamDevicesResult.Serializer.INSTANCE, ListTeamDevicesError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new ListTeamDevicesErrorException("2/team/devices/list_team_devices", ex.getRequestId(), ex.getUserMessage(), (ListTeamDevicesError) 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()); } }
/** * Restore a specific revision of a file to the given path. * */ FileMetadata restore(RestoreArg arg) throws RestoreErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/files/restore", arg, false, RestoreArg.Serializer.INSTANCE, FileMetadata.Serializer.INSTANCE, RestoreError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new RestoreErrorException("2/files/restore", ex.getRequestId(), ex.getUserMessage(), (RestoreError) ex.getErrorValue()); } }
/** * 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. * */ RelocationResult copyV2(RelocationArg arg) throws RelocationErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/files/copy_v2", arg, false, RelocationArg.Serializer.INSTANCE, RelocationResult.Serializer.INSTANCE, RelocationError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new RelocationErrorException("2/files/copy_v2", ex.getRequestId(), ex.getUserMessage(), (RelocationError) ex.getErrorValue()); } }
/** * List all device sessions of a team's member. * */ ListMemberDevicesResult devicesListMemberDevices(ListMemberDevicesArg arg) throws ListMemberDevicesErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/devices/list_member_devices", arg, false, ListMemberDevicesArg.Serializer.INSTANCE, ListMemberDevicesResult.Serializer.INSTANCE, ListMemberDevicesError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new ListMemberDevicesErrorException("2/team/devices/list_member_devices", ex.getRequestId(), ex.getUserMessage(), (ListMemberDevicesError) ex.getErrorValue()); } }
/** * Permission : Team member file access. * */ AddTemplateResult propertiesTemplateAdd(AddTemplateArg arg) throws ModifyTemplateErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/properties/template/add", arg, false, AddTemplateArg.Serializer.INSTANCE, AddTemplateResult.Serializer.INSTANCE, ModifyTemplateError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new ModifyTemplateErrorException("2/team/properties/template/add", ex.getRequestId(), ex.getUserMessage(), (ModifyTemplateError) ex.getErrorValue()); } }
/** * Search across property templates for particular property field values. * */ PropertiesSearchResult propertiesSearch(PropertiesSearchArg arg) throws PropertiesSearchErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/file_properties/properties/search", arg, false, PropertiesSearchArg.Serializer.INSTANCE, PropertiesSearchResult.Serializer.INSTANCE, PropertiesSearchError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new PropertiesSearchErrorException("2/file_properties/properties/search", ex.getRequestId(), ex.getUserMessage(), (PropertiesSearchError) 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()); } }
/** * Permanently deletes an archived team folder. Permission : Team member * file access. * */ void teamFolderPermanentlyDelete(TeamFolderIdArg arg) throws TeamFolderPermanentlyDeleteErrorException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/team/team_folder/permanently_delete", arg, false, TeamFolderIdArg.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_(), TeamFolderPermanentlyDeleteError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new TeamFolderPermanentlyDeleteErrorException("2/team/team_folder/permanently_delete", ex.getRequestId(), ex.getUserMessage(), (TeamFolderPermanentlyDeleteError) 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()); } }
/** * Removes all manually added contacts. You'll still keep contacts who are * on your team or who you imported. New contacts will be added when you * share. */ public void deleteManualContacts() throws DbxApiException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/contacts/delete_manual_contacts", null, false, com.dropbox.core.stone.StoneSerializers.void_(), com.dropbox.core.stone.StoneSerializers.void_(), com.dropbox.core.stone.StoneSerializers.void_()); } catch (DbxWrappedException ex) { throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"delete_manual_contacts\":" + ex.getErrorValue()); } }