code: public Observable<ServiceResponse<RunInner>> beginUpdateWithServiceResponseAsync(String resourceGroupName, String registryName, String runId) {
          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 (runId == null) {
              throw new IllegalArgumentException("Parameter runId is required and cannot be null.");
          }
          final String apiVersion = "2018-09-01";
          final Boolean isArchiveEnabled = null;
          RunUpdateParameters runUpdateParameters = new RunUpdateParameters();
          runUpdateParameters.withIsArchiveEnabled(null);
          return service.beginUpdate(this.client.subscriptionId(), resourceGroupName, registryName, runId, apiVersion, this.client.acceptLanguage(), runUpdateParameters, this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<RunInner>>>() {
                  @Override
                  public Observable<ServiceResponse<RunInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<RunInner> clientResponse = beginUpdateDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Patch the run properties.
  
  @param resourceGroupName The name of the resource group to which the container registry belongs.
  @param registryName The name of the container registry.
  @param runId The run ID.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the RunInner object