/// <summary>
 /// Queries policy events for the resources under the management group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='managementGroupName'>
 /// Management group name.
 /// </param>
 /// <param name='queryOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <PolicyEvent> ListQueryResultsForManagementGroup(this IPolicyEventsOperations operations, string managementGroupName, QueryOptions queryOptions = default(QueryOptions))
 {
     return(operations.ListQueryResultsForManagementGroupAsync(managementGroupName, queryOptions).GetAwaiter().GetResult());
 }