/// <summary>
 /// Updates the password and expiration time of a user account on the specified
 /// compute node.
 /// </summary>
 /// <remarks>
 /// This operation replaces of all the updatable properties of the account. For
 /// example, if the expiryTime element is not specified, the current value is
 /// replaced with the default value, not left unmodified. You can update a user
 /// account on a node only when it is in the idle or running state.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the pool that contains the compute node.
 /// </param>
 /// <param name='nodeId'>
 /// The ID of the machine on which you want to update a user account.
 /// </param>
 /// <param name='userName'>
 /// The name of the user account to update.
 /// </param>
 /// <param name='nodeUpdateUserParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='computeNodeUpdateUserOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ComputeNodeUpdateUserHeaders> UpdateUserAsync(this IComputeNodeOperations operations, string poolId, string nodeId, string userName, NodeUpdateUserParameter nodeUpdateUserParameter, ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions = default(ComputeNodeUpdateUserOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateUserWithHttpMessagesAsync(poolId, nodeId, userName, nodeUpdateUserParameter, computeNodeUpdateUserOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Updates the password and expiration time of a user account on the specified
 /// compute node.
 /// </summary>
 /// <remarks>
 /// This operation replaces of all the updatable properties of the account. For
 /// example, if the expiryTime element is not specified, the current value is
 /// replaced with the default value, not left unmodified. You can update a user
 /// account on a node only when it is in the idle or running state.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The ID of the pool that contains the compute node.
 /// </param>
 /// <param name='nodeId'>
 /// The ID of the machine on which you want to update a user account.
 /// </param>
 /// <param name='userName'>
 /// The name of the user account to update.
 /// </param>
 /// <param name='nodeUpdateUserParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='computeNodeUpdateUserOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNodeUpdateUserHeaders UpdateUser(this IComputeNodeOperations operations, string poolId, string nodeId, string userName, NodeUpdateUserParameter nodeUpdateUserParameter, ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions = default(ComputeNodeUpdateUserOptions))
 {
     return(operations.UpdateUserAsync(poolId, nodeId, userName, nodeUpdateUserParameter, computeNodeUpdateUserOptions).GetAwaiter().GetResult());
 }
Exemple #3
0
 public virtual async Task <Response> UpdateUserAsync(string poolId, string nodeId, string userName, NodeUpdateUserParameter nodeUpdateUserParameter, ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.UpdateUserAsync(poolId, nodeId, userName, nodeUpdateUserParameter, computeNodeUpdateUserOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }
 /// <summary>
 /// Updates the password or expiration time of a user account on the specified
 /// compute node.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='poolId'>
 /// The id of the pool that contains the compute node.
 /// </param>
 /// <param name='nodeId'>
 /// The id of the machine on which you want to update a user account.
 /// </param>
 /// <param name='userName'>
 /// The name of the user account to update.
 /// </param>
 /// <param name='nodeUpdateUserParameter'>
 /// The parameters for the request.
 /// </param>
 /// <param name='computeNodeUpdateUserOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNodeUpdateUserHeaders UpdateUser(this IComputeNodeOperations operations, string poolId, string nodeId, string userName, NodeUpdateUserParameter nodeUpdateUserParameter, ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions = default(ComputeNodeUpdateUserOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IComputeNodeOperations)s).UpdateUserAsync(poolId, nodeId, userName, nodeUpdateUserParameter, computeNodeUpdateUserOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemple #5
0
 public virtual Response UpdateUser(string poolId, string nodeId, string userName, NodeUpdateUserParameter nodeUpdateUserParameter, ComputeNodeUpdateUserOptions computeNodeUpdateUserOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.UpdateUser(poolId, nodeId, userName, nodeUpdateUserParameter, computeNodeUpdateUserOptions, cancellationToken).GetRawResponse());
 }