code: public Observable<ServiceResponse<OperationStatus>> updateWithServiceResponseAsync(UUID appId, UpdatePermissionsOptionalParameter updateOptionalParameter) {
          if (this.client.endpoint() == null) {
              throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");
          }
          if (appId == null) {
              throw new IllegalArgumentException("Parameter appId is required and cannot be null.");
          }
          final List<String> emails = updateOptionalParameter != null ? updateOptionalParameter.emails() : null;
  
          return updateWithServiceResponseAsync(appId, emails);
      }
docs: Replaces the current users access list with the one sent in the body. If an empty list is sent, all access to other users will be removed.
  
  @param appId The application ID.
  @param updateOptionalParameter the object representing the optional parameters to be set before calling this API
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the OperationStatus object