def list_query_results_for_resource_group(policy_states_resource, subscription_id, resource_group_name, query_options:nil, custom_headers:nil)
      response = list_query_results_for_resource_group_async(policy_states_resource, subscription_id, resource_group_name, query_options:query_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def list_query_results_for_resource_group(policy_states_resource, subscription_id, resource_group_name, query_options:nil, custom_headers:nil)
      response = list_query_results_for_resource_group_async(policy_states_resource, subscription_id, resource_group_name, query_options:query_options, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Queries policy states for the resources under the resource group.

 @param policy_states_resource [PolicyStatesResource] The virtual resource
 under PolicyStates resource type. In a given time range, 'latest' represents
 the latest policy state(s), whereas 'default' represents all policy state(s).
 Possible values include: 'default', 'latest'
 @param subscription_id [String] Microsoft Azure subscription ID.
 @param resource_group_name [String] Resource group name.
 @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 [PolicyStatesQueryResults] operation results.