Aracılığıyla paylaş


DataLakePathClient class

DataLakePathClient, Azure Depolama yolunun (dizin veya dosya) URL'sini temsil eder.

Extends

StorageClient

Oluşturucular

DataLakePathClient(string, Pipeline)

URL ve işlem hattından DataLakePathClient örneği oluşturur.

DataLakePathClient(string, StorageSharedKeyCredential | AnonymousCredential | TokenCredential, StoragePipelineOptions)

URL'den ve kimlik bilgisinden DataLakePathClient örneği oluşturur.

Özellikler

fileSystemName

Geçerli dosya sisteminin adı.

name

Geçerli yolun adı (dizin veya dosya).

Devralınan Özellikler

accountName
credential

AnonymousCredential, StorageSharedKeyCredential gibi veya hizmete yönelik isteklerin kimliğini doğrulamak için @azure/identity paketindeki herhangi bir kimlik bilgisi. TokenCredential arabirimini uygulayan bir nesne de sağlayabilirsiniz. Belirtilmezse, AnonymousCredential kullanılır.

url

Kodlanmış URL dizesi değeri.

Yöntemler

create(PathResourceType, PathCreateOptions)

Bir dizin veya yol oluşturun.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create

createIfNotExists(PathResourceType, PathCreateIfNotExistsOptions)

Bir dizin veya dosya oluşturun. Kaynak zaten varsa değiştirilmez.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create

delete(boolean, PathDeleteOptions)

Geçerli yolu (dizin veya dosya) silin.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/delete

deleteIfExists(boolean, PathDeleteOptions)

Varsa geçerli yolu (dizin veya dosya) silin.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/delete

exists(PathExistsOptions)

Bu istemci tarafından temsil edilen Data Lake dosyası varsa true döndürür; false olarak ayarlayın.

NOT: Mevcut bir dosya diğer istemciler veya uygulamalar tarafından silinebileceğinden bu işlevi dikkatli kullanın. Bu işlev tamamlandıktan sonra diğer istemciler veya uygulamalar tarafından yeni dosyalar eklenebilir.

getAccessControl(PathGetAccessControlOptions)

Bir yol (dosya dizini) için erişim denetimi verilerini döndürür.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/getproperties

getDataLakeLeaseClient(string)

Yolda (dizin veya dosya) kiraları yöneten bir DataLakeLeaseClient alın.

getProperties(PathGetPropertiesOptions)

Yol (dizin veya dosya) için tüm kullanıcı tanımlı meta verileri, standart HTTP özelliklerini ve sistem özelliklerini döndürür.

UYARI: Yanıtta döndürülen metadata nesnesinin anahtarları başlangıçta büyük harf karakterler içerse bile küçük harfle gösterilir. Bu, özgün büyük/küçük harflerini koruyacak seçeneğini kullanarak yolları listeleyen dataLakeFileSystemClient includeMetadata yöntemleri tarafından döndürülen meta veri anahtarlarından farklıdır.

Bkz. https://learn.microsoft.com/rest/api/storageservices/get-blob-properties

move(string, PathMoveOptions)

Dizini veya dosyayı aynı dosya sistemi içinde taşıyın.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create

move(string, string, PathMoveOptions)

Dizini veya dosyayı başka bir dosya sistemine taşıyın.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create

removeAccessControlRecursive(RemovePathAccessControlItem[], PathChangeAccessControlRecursiveOptions)

Yol ve alt yollardaki Erişim Denetimini kaldırır.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

setAccessControl(PathAccessControlItem[], PathSetAccessControlOptions)

Bir yol (dosya dizini) için erişim denetimi verilerini ayarlayın.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

setAccessControlRecursive(PathAccessControlItem[], PathChangeAccessControlRecursiveOptions)

Bir yolda ve alt yollarda Erişim Denetimi'ni ayarlar.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

setHttpHeaders(PathHttpHeaders, PathSetHttpHeadersOptions)

Yoldaki sistem özelliklerini (dizin veya dosya) ayarlar.

Belirtilen blob HTTP üst bilgileri için değer sağlanmazsa veya değer sağlanmazsa, değeri olmayan bu blob HTTP üst bilgileri temizlenir.

Bkz. https://learn.microsoft.com/rest/api/storageservices/set-blob-properties

setMetadata(Metadata, PathSetMetadataOptions)

Belirtilen yol (dosya dizini) için kullanıcı tanımlı meta verileri bir veya daha fazla ad-değer çifti olarak ayarlar.

Seçenek sağlanmadıysa veya parametrede tanımlı meta veri yoksa, yol meta verileri kaldırılır.

Bkz. https://learn.microsoft.com/rest/api/storageservices/set-blob-metadata

setPermissions(PathPermissions, PathSetPermissionsOptions)

Bir yolda dosya izinlerini ayarlar.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

toDirectoryClient()

Geçerli yol bir dizinse geçerli DataLakePathClient'ı DataLakeDirectoryClient'a dönüştürün.

toFileClient()

Geçerli yol bir dosyaysa, geçerli DataLakePathClient'ı DataLakeFileClient'a dönüştürün.

updateAccessControlRecursive(PathAccessControlItem[], PathChangeAccessControlRecursiveOptions)

Bir yol ve alt yol üzerindeki Erişim Denetimi'ni değiştirir.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

Oluşturucu Ayrıntıları

DataLakePathClient(string, Pipeline)

URL ve işlem hattından DataLakePathClient örneği oluşturur.

new DataLakePathClient(url: string, pipeline: Pipeline)

Parametreler

url

string

"https://myaccount.dfs.core.windows.net/filesystem/directory" gibi Azure Storage data lake yolunu (dizin veya dosya) işaret eden bir İstemci dizesi; veya "https://myaccount.dfs.core.windows.net/filesystem/file". AnonymousCredential kullanıyorsanız , "https://myaccount.dfs.core.windows.net/filesystem/directory?sasString" gibi bir SAS ekleyebilirsiniz.

pipeline
Pipeline

Varsayılan işlem hattı oluşturmak veya özelleştirilmiş bir işlem hattı sağlamak için newPipeline() çağrısında bulunabilirsiniz.

DataLakePathClient(string, StorageSharedKeyCredential | AnonymousCredential | TokenCredential, StoragePipelineOptions)

URL'den ve kimlik bilgisinden DataLakePathClient örneği oluşturur.

new DataLakePathClient(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: StoragePipelineOptions)

Parametreler

url

string

"https://myaccount.dfs.core.windows.net/filesystem/directory" gibi Azure Storage data lake yolunu (dizin veya dosya) işaret eden bir İstemci dizesi; veya "https://myaccount.dfs.core.windows.net/filesystem/file". AnonymousCredential kullanıyorsanız , "https://myaccount.dfs.core.windows.net/filesystem/directory?sasString" gibi bir SAS ekleyebilirsiniz.

credential

StorageSharedKeyCredential | AnonymousCredential | TokenCredential

AnonymousCredential, StorageSharedKeyCredential gibi veya hizmete yönelik isteklerin kimliğini doğrulamak için @azure/identity paketindeki herhangi bir kimlik bilgisi. TokenCredential arabirimini uygulayan bir nesne de sağlayabilirsiniz. Belirtilmezse, AnonymousCredential kullanılır.

options
StoragePipelineOptions

Optional. HTTP işlem hattını yapılandırma seçenekleri.

Özellik Ayrıntıları

fileSystemName

Geçerli dosya sisteminin adı.

string fileSystemName

Özellik Değeri

string

name

Geçerli yolun adı (dizin veya dosya).

string name

Özellik Değeri

string

Devralınan Özellik Detayları

accountName

accountName: string

Özellik Değeri

string

StorageClient.accountName'den Devralınan

credential

AnonymousCredential, StorageSharedKeyCredential gibi veya hizmete yönelik isteklerin kimliğini doğrulamak için @azure/identity paketindeki herhangi bir kimlik bilgisi. TokenCredential arabirimini uygulayan bir nesne de sağlayabilirsiniz. Belirtilmezse, AnonymousCredential kullanılır.

credential: StorageSharedKeyCredential | AnonymousCredential | TokenCredential

Özellik Değeri

StorageClient.credential'dan Devralınmış

url

Kodlanmış URL dizesi değeri.

url: string

Özellik Değeri

string

StorageClient.url'den Devralınan

Yöntem Ayrıntıları

create(PathResourceType, PathCreateOptions)

Bir dizin veya yol oluşturun.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create

function create(resourceType: PathResourceType, options?: PathCreateOptions): Promise<PathCreateResponse>

Parametreler

resourceType
PathResourceTypeModel

Kaynak türü, "dizin" veya "dosya".

options
PathCreateOptions

Optional. Yol oluştururken seçenekler.

Döndürülenler

createIfNotExists(PathResourceType, PathCreateIfNotExistsOptions)

Bir dizin veya dosya oluşturun. Kaynak zaten varsa değiştirilmez.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create

function createIfNotExists(resourceType: PathResourceType, options?: PathCreateIfNotExistsOptions): Promise<PathCreateIfNotExistsResponse>

Parametreler

resourceType
PathResourceTypeModel

Kaynak türü, "dizin" veya "dosya".

Döndürülenler

delete(boolean, PathDeleteOptions)

Geçerli yolu (dizin veya dosya) silin.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/delete

function delete(recursive?: boolean, options?: PathDeleteOptions): Promise<PathDeleteResponse>

Parametreler

recursive

boolean

Gerekli ve yalnızca kaynak bir dizin olduğunda geçerlidir. "True" ise, dizinin altındaki tüm yollar silinir.

options
PathDeleteOptions

Optional. Yolu silerken seçenekler.

Döndürülenler

deleteIfExists(boolean, PathDeleteOptions)

Varsa geçerli yolu (dizin veya dosya) silin.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/delete

function deleteIfExists(recursive?: boolean, options?: PathDeleteOptions): Promise<PathDeleteIfExistsResponse>

Parametreler

recursive

boolean

Gerekli ve yalnızca kaynak bir dizin olduğunda geçerlidir. "True" ise, dizinin altındaki tüm yollar silinir.

Döndürülenler

exists(PathExistsOptions)

Bu istemci tarafından temsil edilen Data Lake dosyası varsa true döndürür; false olarak ayarlayın.

NOT: Mevcut bir dosya diğer istemciler veya uygulamalar tarafından silinebileceğinden bu işlevi dikkatli kullanın. Bu işlev tamamlandıktan sonra diğer istemciler veya uygulamalar tarafından yeni dosyalar eklenebilir.

function exists(options?: PathExistsOptions): Promise<boolean>

Parametreler

options
PathExistsOptions

seçeneklerine tıklayın.

Döndürülenler

Promise<boolean>

getAccessControl(PathGetAccessControlOptions)

Bir yol (dosya dizini) için erişim denetimi verilerini döndürür.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/getproperties

function getAccessControl(options?: PathGetAccessControlOptions): Promise<PathGetAccessControlResponse>

Parametreler

options
PathGetAccessControlOptions

Optional. Dosya erişim denetimi alma seçenekleri.

Döndürülenler

getDataLakeLeaseClient(string)

Yolda (dizin veya dosya) kiraları yöneten bir DataLakeLeaseClient alın.

function getDataLakeLeaseClient(proposeLeaseId?: string): DataLakeLeaseClient

Parametreler

proposeLeaseId

string

Optional. İlk önerilen kira kimliği.

Döndürülenler

getProperties(PathGetPropertiesOptions)

Yol (dizin veya dosya) için tüm kullanıcı tanımlı meta verileri, standart HTTP özelliklerini ve sistem özelliklerini döndürür.

UYARI: Yanıtta döndürülen metadata nesnesinin anahtarları başlangıçta büyük harf karakterler içerse bile küçük harfle gösterilir. Bu, özgün büyük/küçük harflerini koruyacak seçeneğini kullanarak yolları listeleyen dataLakeFileSystemClient includeMetadata yöntemleri tarafından döndürülen meta veri anahtarlarından farklıdır.

Bkz. https://learn.microsoft.com/rest/api/storageservices/get-blob-properties

function getProperties(options?: PathGetPropertiesOptions): Promise<PathGetPropertiesResponse>

Parametreler

options
PathGetPropertiesOptions

Optional. Yol özelliklerini alma seçenekleri.

Döndürülenler

move(string, PathMoveOptions)

Dizini veya dosyayı aynı dosya sistemi içinde taşıyın.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create

function move(destinationPath: string, options?: PathMoveOptions): Promise<PathMoveResponse>

Parametreler

destinationPath

string

"dizin" veya "dizin/dosya" dosya yolu gibi hedef dizin yolu. destinationPath'in kimliği SAS ile doğrulanmışsa, SAS'yi "dizin/dosya?sasToken" gibi hedef yola ekleyin.

options
PathMoveOptions

Optional. Dizin veya dosya taşırken seçenekler.

Döndürülenler

Promise<PathMoveResponse>

move(string, string, PathMoveOptions)

Dizini veya dosyayı başka bir dosya sistemine taşıyın.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create

function move(destinationFileSystem: string, destinationPath: string, options?: PathMoveOptions): Promise<PathMoveResponse>

Parametreler

destinationFileSystem

string

"dosya sistemi" gibi hedef dosya sistemi.

destinationPath

string

"dizin" veya dosya yolu "dizin/dosya" gibi hedef dizin yolu DestinationPath'in kimliği SAS ile doğrulanmışsa, SAS'yi "dizin/dosya?sasToken" gibi hedef yola ekleyin.

options
PathMoveOptions

Optional. Dizin veya dosya taşırken seçenekler.

Döndürülenler

Promise<PathMoveResponse>

removeAccessControlRecursive(RemovePathAccessControlItem[], PathChangeAccessControlRecursiveOptions)

Yol ve alt yollardaki Erişim Denetimini kaldırır.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

function removeAccessControlRecursive(acl: RemovePathAccessControlItem[], options?: PathChangeAccessControlRecursiveOptions): Promise<PathChangeAccessControlRecursiveResponse>

Parametreler

acl

RemovePathAccessControlItem[]

Dosya veya dizin için POSIX erişim denetimi listesi.

options
PathChangeAccessControlRecursiveOptions

Optional. Options

Döndürülenler

setAccessControl(PathAccessControlItem[], PathSetAccessControlOptions)

Bir yol (dosya dizini) için erişim denetimi verilerini ayarlayın.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

function setAccessControl(acl: PathAccessControlItem[], options?: PathSetAccessControlOptions): Promise<PathSetAccessControlResponse>

Parametreler

acl

PathAccessControlItem[]

Dosya veya dizin için POSIX erişim denetimi listesi.

options
PathSetAccessControlOptions

Optional. Yol erişim denetimini ayarlarken seçenekler.

Döndürülenler

setAccessControlRecursive(PathAccessControlItem[], PathChangeAccessControlRecursiveOptions)

Bir yolda ve alt yollarda Erişim Denetimi'ni ayarlar.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

function setAccessControlRecursive(acl: PathAccessControlItem[], options?: PathChangeAccessControlRecursiveOptions): Promise<PathChangeAccessControlRecursiveResponse>

Parametreler

acl

PathAccessControlItem[]

Dosya veya dizin için POSIX erişim denetimi listesi.

options
PathChangeAccessControlRecursiveOptions

Optional. Options

Döndürülenler

setHttpHeaders(PathHttpHeaders, PathSetHttpHeadersOptions)

Yoldaki sistem özelliklerini (dizin veya dosya) ayarlar.

Belirtilen blob HTTP üst bilgileri için değer sağlanmazsa veya değer sağlanmazsa, değeri olmayan bu blob HTTP üst bilgileri temizlenir.

Bkz. https://learn.microsoft.com/rest/api/storageservices/set-blob-properties

function setHttpHeaders(httpHeaders: PathHttpHeaders, options?: PathSetHttpHeadersOptions): Promise<PathSetHttpHeadersResponse>

Parametreler

httpHeaders
PathHttpHeaders

Döndürülenler

setMetadata(Metadata, PathSetMetadataOptions)

Belirtilen yol (dosya dizini) için kullanıcı tanımlı meta verileri bir veya daha fazla ad-değer çifti olarak ayarlar.

Seçenek sağlanmadıysa veya parametrede tanımlı meta veri yoksa, yol meta verileri kaldırılır.

Bkz. https://learn.microsoft.com/rest/api/storageservices/set-blob-metadata

function setMetadata(metadata?: Metadata, options?: PathSetMetadataOptions): Promise<PathSetMetadataResponse>

Parametreler

metadata
Metadata

Optional. Var olan meta verileri bu değerle değiştirin. Değer sağlanmazsa, mevcut meta veriler kaldırılır.

options
PathSetMetadataOptions

Optional. Yol meta verilerini ayarlarken seçenekler.

Döndürülenler

setPermissions(PathPermissions, PathSetPermissionsOptions)

Bir yolda dosya izinlerini ayarlar.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

function setPermissions(permissions: PathPermissions, options?: PathSetPermissionsOptions): Promise<PathSetPermissionsResponse>

Parametreler

permissions
PathPermissions

Dosya sahibi, dosya sahibi grubu ve diğerleri için POSIX erişim izinleri.

options
PathSetPermissionsOptions

Optional. Yol izinlerini ayarlarken seçenekler.

Döndürülenler

toDirectoryClient()

Geçerli yol bir dizinse geçerli DataLakePathClient'ı DataLakeDirectoryClient'a dönüştürün.

function toDirectoryClient(): DataLakeDirectoryClient

Döndürülenler

toFileClient()

Geçerli yol bir dosyaysa, geçerli DataLakePathClient'ı DataLakeFileClient'a dönüştürün.

function toFileClient(): DataLakeFileClient

Döndürülenler

updateAccessControlRecursive(PathAccessControlItem[], PathChangeAccessControlRecursiveOptions)

Bir yol ve alt yol üzerindeki Erişim Denetimi'ni değiştirir.

Bkz. https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update

function updateAccessControlRecursive(acl: PathAccessControlItem[], options?: PathChangeAccessControlRecursiveOptions): Promise<PathChangeAccessControlRecursiveResponse>

Parametreler

acl

PathAccessControlItem[]

Dosya veya dizin için POSIX erişim denetimi listesi.

options
PathChangeAccessControlRecursiveOptions

Optional. Options

Döndürülenler