code: public Observable<ServiceResponse<ReplicationInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String registryName, String replicationName) {
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (registryName == null) {
              throw new IllegalArgumentException("Parameter registryName is required and cannot be null.");
          }
          if (replicationName == null) {
              throw new IllegalArgumentException("Parameter replicationName is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          final Map<String, String> tags = null;
          ReplicationUpdateParameters replicationUpdateParameters = new ReplicationUpdateParameters();
          replicationUpdateParameters.withTags(null);
          return service.beginUpdate(this.client.subscriptionId(), resourceGroupName, registryName, replicationName, this.client.apiVersion(), this.client.acceptLanguage(), replicationUpdateParameters, this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ReplicationInner>>>() {
                  @Override
                  public Observable<ServiceResponse<ReplicationInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<ReplicationInner> clientResponse = beginUpdateDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Updates a replication 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 replicationName The name of the replication.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ReplicationInner object