code: public Observable<PolicyEventsQueryResultsInner> listQueryResultsForResourceAsync(String resourceId) {
          return listQueryResultsForResourceWithServiceResponseAsync(resourceId).map(new Func1<ServiceResponse<PolicyEventsQueryResultsInner>, PolicyEventsQueryResultsInner>() {
              @Override
              public PolicyEventsQueryResultsInner call(ServiceResponse<PolicyEventsQueryResultsInner> response) {
                  return response.body();
              }
          });
      }
docs: Queries policy events for the resource.
  
  @param resourceId Resource ID.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PolicyEventsQueryResultsInner object