/// <summary>
 /// Deletes the specified file from the 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 Compute Node from which you want to delete the file.
 /// </param>
 /// <param name='filePath'>
 /// The path to the file or directory that you want to delete.
 /// </param>
 /// <param name='recursive'>
 /// Whether to delete children of a directory. If the filePath parameter
 /// represents a directory instead of a file, you can set recursive to true to
 /// delete the directory and all of the files and subdirectories in it. If
 /// recursive is false then the directory must be empty or deletion will fail.
 /// </param>
 /// <param name='fileDeleteFromComputeNodeOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <FileDeleteFromComputeNodeHeaders> DeleteFromComputeNodeAsync(this IFileOperations operations, string poolId, string nodeId, string filePath, bool?recursive = default(bool?), FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions = default(FileDeleteFromComputeNodeOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.DeleteFromComputeNodeWithHttpMessagesAsync(poolId, nodeId, filePath, recursive, fileDeleteFromComputeNodeOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Headers);
     }
 }
 /// <summary>
 /// Deletes the specified file from the 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 Compute Node from which you want to delete the file.
 /// </param>
 /// <param name='filePath'>
 /// The path to the file or directory that you want to delete.
 /// </param>
 /// <param name='recursive'>
 /// Whether to delete children of a directory. If the filePath parameter
 /// represents a directory instead of a file, you can set recursive to true to
 /// delete the directory and all of the files and subdirectories in it. If
 /// recursive is false then the directory must be empty or deletion will fail.
 /// </param>
 /// <param name='fileDeleteFromComputeNodeOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static FileDeleteFromComputeNodeHeaders DeleteFromComputeNode(this IFileOperations operations, string poolId, string nodeId, string filePath, bool?recursive = default(bool?), FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions = default(FileDeleteFromComputeNodeOptions))
 {
     return(operations.DeleteFromComputeNodeAsync(poolId, nodeId, filePath, recursive, fileDeleteFromComputeNodeOptions).GetAwaiter().GetResult());
 }
Пример #3
0
 public virtual Response DeleteFromComputeNode(string poolId, string nodeId, string filePath, bool?recursive, FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions, CancellationToken cancellationToken = default)
 {
     return(RestClient.DeleteFromComputeNode(poolId, nodeId, filePath, recursive, fileDeleteFromComputeNodeOptions, cancellationToken).GetRawResponse());
 }
Пример #4
0
 /// <summary>
 /// Deletes the specified task file from the 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 compute node from which you want to delete the file.
 /// </param>
 /// <param name='fileName'>
 /// The path to the file that you want to delete.
 /// </param>
 /// <param name='recursive'>
 /// Whether to delete children of a directory. If the fileName parameter
 /// represents a directory instead of a file, you can set Recursive to true
 /// to delete the directory and all of the files and subdirectories in it. If
 /// Recursive is false then the directory must be empty or deletion will fail.
 /// </param>
 /// <param name='fileDeleteFromComputeNodeOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static FileDeleteFromComputeNodeHeaders DeleteFromComputeNode(this IFileOperations operations, string poolId, string nodeId, string fileName, bool?recursive = default(bool?), FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions = default(FileDeleteFromComputeNodeOptions))
 {
     return(System.Threading.Tasks.Task.Factory.StartNew(s => ((IFileOperations)s).DeleteFromComputeNodeAsync(poolId, nodeId, fileName, recursive, fileDeleteFromComputeNodeOptions), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Пример #5
0
 public virtual async Task <Response> DeleteFromComputeNodeAsync(string poolId, string nodeId, string filePath, bool?recursive, FileDeleteFromComputeNodeOptions fileDeleteFromComputeNodeOptions, CancellationToken cancellationToken = default)
 {
     return((await RestClient.DeleteFromComputeNodeAsync(poolId, nodeId, filePath, recursive, fileDeleteFromComputeNodeOptions, cancellationToken).ConfigureAwait(false)).GetRawResponse());
 }