code: public Observable<WorkerPoolResourceInner> createOrUpdateWorkerPoolAsync(String resourceGroupName, String name, String workerPoolName, WorkerPoolResourceInner workerPoolEnvelope) {
          return createOrUpdateWorkerPoolWithServiceResponseAsync(resourceGroupName, name, workerPoolName, workerPoolEnvelope).map(new Func1<ServiceResponse<WorkerPoolResourceInner>, WorkerPoolResourceInner>() {
              @Override
              public WorkerPoolResourceInner call(ServiceResponse<WorkerPoolResourceInner> response) {
                  return response.body();
              }
          });
      }
docs: Create or update a worker pool.
  Create or update a worker pool.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param name Name of the App Service Environment.
  @param workerPoolName Name of the worker pool.
  @param workerPoolEnvelope Properties of the worker pool.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable for the request