code: public Observable<TaskInner> beginCreateAsync(String resourceGroupName, String registryName, String taskName, TaskInner taskCreateParameters) {
          return beginCreateWithServiceResponseAsync(resourceGroupName, registryName, taskName, taskCreateParameters).map(new Func1<ServiceResponse<TaskInner>, TaskInner>() {
              @Override
              public TaskInner call(ServiceResponse<TaskInner> response) {
                  return response.body();
              }
          });
      }
docs: Creates a task for a container registry with the specified parameters.
  
  @param resourceGroupName The name of the resource group to which the container registry belongs.
  @param registryName The name of the container registry.
  @param taskName The name of the container registry task.
  @param taskCreateParameters The parameters for creating a task.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the TaskInner object