Share via


AdlsClient.ChangeAcl Method

Definition

Overloads

ChangeAcl(String, List<AclEntry>, RequestedAclType, Int32, IProgress<AclProcessorStats>, CancellationToken)

Change Acl (Modify, set and remove) recursively on a directory tree It is highly recomended to set ServicePointManager.DefaultConnectionLimit to the number of threads application wants the sdk to use before creating any instance of AdlsClient. By default ServicePointManager.DefaultConnectionLimit is set to 2.

ChangeAcl(String, List<AclEntry>, RequestedAclType, Int32)

Change Acl (Modify, set and remove) recursively on a directory tree It is highly recomended to set ServicePointManager.DefaultConnectionLimit to the number of threads application wants the sdk to use before creating any instance of AdlsClient. By default ServicePointManager.DefaultConnectionLimit is set to 2.

ChangeAcl(String, List<AclEntry>, RequestedAclType, Int32, IProgress<AclProcessorStats>, CancellationToken)

Change Acl (Modify, set and remove) recursively on a directory tree It is highly recomended to set ServicePointManager.DefaultConnectionLimit to the number of threads application wants the sdk to use before creating any instance of AdlsClient. By default ServicePointManager.DefaultConnectionLimit is set to 2.

public virtual Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats ChangeAcl (string path, System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> aclEntries, Microsoft.Azure.DataLake.Store.AclTools.RequestedAclType type, int threadCount, IProgress<Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats> statusTracker, System.Threading.CancellationToken cancelToken);
abstract member ChangeAcl : string * System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> * Microsoft.Azure.DataLake.Store.AclTools.RequestedAclType * int * IProgress<Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats> * System.Threading.CancellationToken -> Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats
override this.ChangeAcl : string * System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> * Microsoft.Azure.DataLake.Store.AclTools.RequestedAclType * int * IProgress<Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats> * System.Threading.CancellationToken -> Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats
Public Overridable Function ChangeAcl (path As String, aclEntries As List(Of AclEntry), type As RequestedAclType, threadCount As Integer, statusTracker As IProgress(Of AclProcessorStats), cancelToken As CancellationToken) As AclProcessorStats

Parameters

path
String

The root directory path from where the Acl change will begin

aclEntries
List<AclEntry>

Acl entries to add or set or remove depending on the input

type
RequestedAclType

Type of modification RequestedAclType

threadCount
Int32

Number of threads to use

statusTracker
IProgress<AclProcessorStats>

Tracker to track progress of acl processor

cancelToken
CancellationToken

CancellationToken

Returns

Stats- total number of files and directories processed

Applies to

ChangeAcl(String, List<AclEntry>, RequestedAclType, Int32)

Change Acl (Modify, set and remove) recursively on a directory tree It is highly recomended to set ServicePointManager.DefaultConnectionLimit to the number of threads application wants the sdk to use before creating any instance of AdlsClient. By default ServicePointManager.DefaultConnectionLimit is set to 2.

public virtual Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats ChangeAcl (string path, System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> aclEntries, Microsoft.Azure.DataLake.Store.AclTools.RequestedAclType type, int threadCount = -1);
abstract member ChangeAcl : string * System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> * Microsoft.Azure.DataLake.Store.AclTools.RequestedAclType * int -> Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats
override this.ChangeAcl : string * System.Collections.Generic.List<Microsoft.Azure.DataLake.Store.Acl.AclEntry> * Microsoft.Azure.DataLake.Store.AclTools.RequestedAclType * int -> Microsoft.Azure.DataLake.Store.AclTools.AclProcessorStats
Public Overridable Function ChangeAcl (path As String, aclEntries As List(Of AclEntry), type As RequestedAclType, Optional threadCount As Integer = -1) As AclProcessorStats

Parameters

path
String

The root directory path from where the Acl change will begin

aclEntries
List<AclEntry>

Acl entries to add or set or remove depending on the input

type
RequestedAclType

Type of modification RequestedAclType

threadCount
Int32

Number of threads to use

Returns

Stats- total number of files and directories processed

Applies to