code: public Observable<UUID> createPatternAnyEntityRoleAsync(UUID appId, String versionId, UUID entityId, CreatePatternAnyEntityRoleOptionalParameter createPatternAnyEntityRoleOptionalParameter) {
          return createPatternAnyEntityRoleWithServiceResponseAsync(appId, versionId, entityId, createPatternAnyEntityRoleOptionalParameter).map(new Func1<ServiceResponse<UUID>, UUID>() {
              @Override
              public UUID call(ServiceResponse<UUID> response) {
                  return response.body();
              }
          });
      }
docs: Create an entity role for an entity in the application.
  
  @param appId The application ID.
  @param versionId The version ID.
  @param entityId The entity model ID.
  @param createPatternAnyEntityRoleOptionalParameter 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 UUID object