/// <summary>
 /// Gets list of users for the current tenant.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <User> List(this IUsersOperations operations, ODataQuery <User> odataQuery = default(ODataQuery <User>))
 {
     return(operations.ListAsync(odataQuery).GetAwaiter().GetResult());
 }
 /// <summary>
 /// List users in a given lab.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='labAccountName'>
 /// The name of the lab Account.
 /// </param>
 /// <param name='labName'>
 /// The name of the lab.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <User> List(this IUsersOperations operations, string resourceGroupName, string labAccountName, string labName, ODataQuery <User> odataQuery = default(ODataQuery <User>))
 {
     return(operations.ListAsync(resourceGroupName, labAccountName, labName, odataQuery).GetAwaiter().GetResult());
 }
 /// <summary>
 /// List all users.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.IUsersOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='query'>
 /// Optional.
 /// </param>
 /// <returns>
 /// List Users operation response details.
 /// </returns>
 public static Task <UserListResponse> ListAsync(this IUsersOperations operations, string resourceGroupName, string serviceName, QueryParameters query)
 {
     return(operations.ListAsync(resourceGroupName, serviceName, query, CancellationToken.None));
 }