/// <summary>
 /// Gets the properties of the specified user.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='name'>
 /// The user name.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 public static User Get(this IUsersOperations operations, string deviceName, string name, string resourceGroupName)
 {
     return(operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get user
 /// </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='userName'>
 /// The name of the user.
 /// </param>
 /// <param name='expand'>
 /// Specify the $expand query. Example: 'properties($select=email)'
 /// </param>
 public static User Get(this IUsersOperations operations, string resourceGroupName, string labAccountName, string labName, string userName, string expand = default(string))
 {
     return(operations.GetAsync(resourceGroupName, labAccountName, labName, userName, expand).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get a lab user.
 /// </summary>
 /// <remarks>
 /// Returns the properties of a lab user.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='labName'>
 /// The name of the lab that uniquely identifies it within containing lab
 /// account. Used in resource URIs.
 /// </param>
 /// <param name='userName'>
 /// The name of the user that uniquely identifies it within containing lab.
 /// Used in resource URIs.
 /// </param>
 public static User Get(this IUsersOperations operations, string resourceGroupName, string labName, string userName)
 {
     return(operations.GetAsync(resourceGroupName, labName, userName).GetAwaiter().GetResult());
 }
Beispiel #4
0
 /// <summary>
 /// Gets user information from the directory.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='upnOrObjectId'>
 /// The object ID or principal name of the user for which to get information.
 /// </param>
 public static User Get(this IUsersOperations operations, string upnOrObjectId)
 {
     return(operations.GetAsync(upnOrObjectId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets specific user.
 /// </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='uid'>
 /// Required. Identifier of the user.
 /// </param>
 /// <returns>
 /// Get User operation response details.
 /// </returns>
 public static Task <UserGetResponse> GetAsync(this IUsersOperations operations, string resourceGroupName, string serviceName, string uid)
 {
     return(operations.GetAsync(resourceGroupName, serviceName, uid, CancellationToken.None));
 }