code: public Observable<ServiceResponse<RunInner>> updateWithServiceResponseAsync(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);
          Observable<Response<ResponseBody>> observable = service.update(this.client.subscriptionId(), resourceGroupName, registryName, runId, apiVersion, this.client.acceptLanguage(), runUpdateParameters, this.client.userAgent());
          return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken<RunInner>() { }.getType());
      }
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 for the request