def list_query_results_for_subscription(subscription_id, query_options:nil, custom_headers:nil)
      response = list_query_results_for_subscription_async(subscription_id, query_options:query_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_query_results_for_subscription(subscription_id, query_options:nil, custom_headers:nil)
      response = list_query_results_for_subscription_async(subscription_id, query_options:query_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_query_results_for_subscription ( subscription_id , query_options : nil , custom_headers : nil ) response = list_query_results_for_subscription_async ( subscription_id , query_options :query_options , custom_headers :custom_headers ) . value! response . body unless response . nil? end
Queries policy events for the resources under the subscription.

 @param subscription_id [String] Microsoft Azure subscription ID.
 @param query_options [QueryOptions] Additional parameters for the operation
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [PolicyEventsQueryResults] operation results.
Queries policy events for the resources under the subscription .