/// <summary>
 /// Modify properties of users.
 /// </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='user'>
 /// The User registered to a lab
 /// </param>
 public static User Update(this IUsersOperations operations, string resourceGroupName, string labAccountName, string labName, string userName, UserFragment user)
 {
     return(operations.UpdateAsync(resourceGroupName, labAccountName, labName, userName, user).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Update a lab user.
 /// </summary>
 /// <remarks>
 /// Operation to update a lab user.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// The request body.
 /// </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 Update(this IUsersOperations operations, UserUpdate body, string resourceGroupName, string labName, string userName)
 {
     return(operations.UpdateAsync(body, resourceGroupName, labName, userName).GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Updates a user.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='upnOrObjectId'>
 /// The object ID or principal name of the user to update.
 /// </param>
 /// <param name='parameters'>
 /// Parameters to update an existing user.
 /// </param>
 public static void Update(this IUsersOperations operations, string upnOrObjectId, UserUpdateParameters parameters)
 {
     operations.UpdateAsync(upnOrObjectId, parameters).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Updates 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>
 /// <param name='parameters'>
 /// Required. Update parameters.
 /// </param>
 /// <param name='etag'>
 /// Required. ETag.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> UpdateAsync(this IUsersOperations operations, string resourceGroupName, string serviceName, string uid, UserUpdateParameters parameters, string etag)
 {
     return(operations.UpdateAsync(resourceGroupName, serviceName, uid, parameters, etag, CancellationToken.None));
 }