UNPKG

@azure/storage-file-datalake

Version:
32 lines 1.55 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PathClientInternal = void 0; // Copyright (c) Microsoft Corporation. // Licensed under the MIT License. const clients_js_1 = require("../clients.js"); const index_js_1 = require("../generated/src/operations/index.js"); /** * A PathClientInternal represents a URL to the Azure Storage path (directory or file) to * help to construct a path client to expose Path context with blob endpoint. */ class PathClientInternal extends clients_js_1.DataLakePathClient { /** * Path context with blob endpoint. */ blobPathContext; /** * Creates an instance of DataLakePathClient from url and pipeline. * * @param url - A Client string pointing to Azure Storage data lake path (directory or file), such as * "https://myaccount.dfs.core.windows.net/filesystem/directory" or "https://myaccount.dfs.core.windows.net/filesystem/file". * You can append a SAS if using AnonymousCredential, such as "https://myaccount.dfs.core.windows.net/filesystem/directory?sasString". * @param pipeline - Call newPipeline() to create a default * pipeline, or provide a customized pipeline. */ constructor(url, pipeline) { super(url, pipeline); this.blobPathContext = new index_js_1.PathOperationsImpl(this.storageClientContextToBlobEndpoint); } } exports.PathClientInternal = PathClientInternal; //# sourceMappingURL=PathClientInternal.js.map