/** * Updates an existing Paper doc with the provided content. * * * @return Uploader used to upload the request body and finish request. */ DocsUpdateUploader docsUpdate(PaperDocUpdateArgs arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), "2/paper/docs/update", arg, false, PaperDocUpdateArgs.Serializer.INSTANCE); return new DocsUpdateUploader(_uploader, this.client.getUserId()); }
/** * Creates a new Paper doc with the provided content. * * * @return Uploader used to upload the request body and finish request. */ DocsCreateUploader docsCreate(PaperDocCreateArgs arg) throws DbxException { HttpRequestor.Uploader _uploader = this.client.uploadStyle(this.client.getHost().getApi(), "2/paper/docs/create", arg, false, PaperDocCreateArgs.Serializer.INSTANCE); return new DocsCreateUploader(_uploader, this.client.getUserId()); }
/** * */ 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()); } }
/** * Lists members of a group. Permission : Team Information. * */ GroupsMembersListResult groupsMembersList(GroupsMembersListArg arg) throws GroupSelectorErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/groups/members/list", arg, false, GroupsMembersListArg.Serializer.INSTANCE, GroupsMembersListResult.Serializer.INSTANCE, GroupSelectorError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new GroupSelectorErrorException("2/team/groups/members/list", ex.getRequestId(), ex.getUserMessage(), (GroupSelectorError) ex.getErrorValue()); } }
/** * Lists members of a team. Permission : Team information. * */ MembersListResult membersList(MembersListArg arg) throws MembersListErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/members/list", arg, false, MembersListArg.Serializer.INSTANCE, MembersListResult.Serializer.INSTANCE, MembersListError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new MembersListErrorException("2/team/members/list", ex.getRequestId(), ex.getUserMessage(), (MembersListError) ex.getErrorValue()); } }
/** * Permission : Team member file access. * */ GetTemplateResult propertiesTemplateGet(GetTemplateArg arg) throws TemplateErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/properties/template/get", arg, false, GetTemplateArg.Serializer.INSTANCE, GetTemplateResult.Serializer.INSTANCE, TemplateError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new TemplateErrorException("2/team/properties/template/get", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); } }
/** * Permission : Team member file access. * */ UpdateTemplateResult propertiesTemplateUpdate(UpdateTemplateArg arg) throws ModifyTemplateErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/properties/template/update", arg, false, UpdateTemplateArg.Serializer.INSTANCE, UpdateTemplateResult.Serializer.INSTANCE, ModifyTemplateError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new ModifyTemplateErrorException("2/team/properties/template/update", ex.getRequestId(), ex.getUserMessage(), (ModifyTemplateError) ex.getErrorValue()); } }
/** * Get the schema for a specified template. * */ GetTemplateResult templatesGetForTeam(GetTemplateArg arg) throws TemplateErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/file_properties/templates/get_for_team", arg, false, GetTemplateArg.Serializer.INSTANCE, GetTemplateResult.Serializer.INSTANCE, TemplateError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new TemplateErrorException("2/file_properties/templates/get_for_team", ex.getRequestId(), ex.getUserMessage(), (TemplateError) ex.getErrorValue()); } }
/** * Create a folder at a given path. * */ FolderMetadata createFolder(CreateFolderArg arg) throws CreateFolderErrorException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/files/create_folder", arg, false, CreateFolderArg.Serializer.INSTANCE, FolderMetadata.Serializer.INSTANCE, CreateFolderError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new CreateFolderErrorException("2/files/create_folder", 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 device session of a team's member. * */ public void devicesRevokeDeviceSession(RevokeDeviceSessionArg arg) throws RevokeDeviceSessionErrorException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/team/devices/revoke_device_session", arg, false, RevokeDeviceSessionArg.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_(), RevokeDeviceSessionError.Serializer.INSTANCE); } catch (DbxWrappedException ex) { throw new RevokeDeviceSessionErrorException("2/team/devices/revoke_device_session", ex.getRequestId(), ex.getUserMessage(), (RevokeDeviceSessionError) ex.getErrorValue()); } }
/** * Lists groups on a team. Permission : Team Information. * */ GroupsListResult groupsList(GroupsListArg arg) throws DbxApiException, DbxException { try { return this.client.rpcStyle(this.client.getHost().getApi(), "2/team/groups/list", arg, false, GroupsListArg.Serializer.INSTANCE, GroupsListResult.Serializer.INSTANCE, com.dropbox.core.stone.StoneSerializers.void_()); } catch (DbxWrappedException ex) { throw new DbxApiException(ex.getRequestId(), ex.getUserMessage(), "Unexpected error response for \"groups/list\":" + 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()); } }
/** * 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()); } }
/** * Disables the access token used to authenticate the call. */ public void tokenRevoke() throws DbxApiException, DbxException { try { this.client.rpcStyle(this.client.getHost().getApi(), "2/auth/token/revoke", 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 \"token/revoke\":" + ex.getErrorValue()); } } }