code: public Observable<ServiceResponse<ComponentPurgeResponseInner>> purgeWithServiceResponseAsync(String resourceGroupName, String resourceName, ComponentPurgeBody body) {
          if (resourceGroupName == null) {
              throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
          }
          if (this.client.subscriptionId() == null) {
              throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
          }
          if (resourceName == null) {
              throw new IllegalArgumentException("Parameter resourceName is required and cannot be null.");
          }
          if (this.client.apiVersion() == null) {
              throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
          }
          if (body == null) {
              throw new IllegalArgumentException("Parameter body is required and cannot be null.");
          }
          Validator.validate(body);
          return service.purge(resourceGroupName, this.client.subscriptionId(), resourceName, this.client.apiVersion(), body, this.client.acceptLanguage(), this.client.userAgent())
              .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<ComponentPurgeResponseInner>>>() {
                  @Override
                  public Observable<ServiceResponse<ComponentPurgeResponseInner>> call(Response<ResponseBody> response) {
                      try {
                          ServiceResponse<ComponentPurgeResponseInner> clientResponse = purgeDelegate(response);
                          return Observable.just(clientResponse);
                      } catch (Throwable t) {
                          return Observable.error(t);
                      }
                  }
              });
      }
docs: Purges data in an Application Insights component by a set of user-defined filters.
  
  @param resourceGroupName The name of the resource group.
  @param resourceName The name of the Application Insights component resource.
  @param body Describes the body of a request to purge data in a single table of an Application Insights component
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the ComponentPurgeResponseInner object