/// <summary>
 /// Deletes a user account from the specified compute node.
 /// </summary>
 /// <remarks>
 /// You can delete a user account to 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 delete a user account.
 /// </param>
 /// <param name='userName'>
 /// The name of the user account to delete.
 /// </param>
 /// <param name='computeNodeDeleteUserOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ComputeNodeDeleteUserHeaders> DeleteUserAsync(this IComputeNodeOperations operations, string poolId, string nodeId, string userName, ComputeNodeDeleteUserOptions computeNodeDeleteUserOptions = default(ComputeNodeDeleteUserOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteUserWithHttpMessagesAsync(poolId, nodeId, userName, computeNodeDeleteUserOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Deletes a user account from the specified compute node.
 /// </summary>
 /// <remarks>
 /// You can delete a user account to 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 delete a user account.
 /// </param>
 /// <param name='userName'>
 /// The name of the user account to delete.
 /// </param>
 /// <param name='computeNodeDeleteUserOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNodeDeleteUserHeaders DeleteUser(this IComputeNodeOperations operations, string poolId, string nodeId, string userName, ComputeNodeDeleteUserOptions computeNodeDeleteUserOptions = default(ComputeNodeDeleteUserOptions))
 {
     return(operations.DeleteUserAsync(poolId, nodeId, userName, computeNodeDeleteUserOptions).GetAwaiter().GetResult());
 }
Example #3
0
 public virtual Response DeleteUser(string poolId, string nodeId, string userName, ComputeNodeDeleteUserOptions computeNodeDeleteUserOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.DeleteUser(poolId, nodeId, userName, computeNodeDeleteUserOptions, cancellationToken).GetRawResponse());
 }
 /// <summary>
 /// Deletes a user account from 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 delete a user account.
 /// </param>
 /// <param name='userName'>
 /// The name of the user account to delete.
 /// </param>
 /// <param name='computeNodeDeleteUserOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ComputeNodeDeleteUserHeaders DeleteUser(this IComputeNodeOperations operations, string poolId, string nodeId, string userName, ComputeNodeDeleteUserOptions computeNodeDeleteUserOptions = default(ComputeNodeDeleteUserOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IComputeNodeOperations)s).DeleteUserAsync(poolId, nodeId, userName, computeNodeDeleteUserOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Example #5
0
 public virtual async Task <Response> DeleteUserAsync(string poolId, string nodeId, string userName, ComputeNodeDeleteUserOptions computeNodeDeleteUserOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.DeleteUserAsync(poolId, nodeId, userName, computeNodeDeleteUserOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }