@azure/storage-file-datalake 12.27.0-alpha.20250530.1 → 12.27.0-alpha.20250613.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/DataLakeFileSystemClient.d.ts +13 -13
- package/dist/browser/DataLakeFileSystemClient.js +13 -13
- package/dist/browser/DataLakeFileSystemClient.js.map +1 -1
- package/dist/browser/DataLakeServiceClient.d.ts +6 -6
- package/dist/browser/DataLakeServiceClient.js +6 -6
- package/dist/browser/DataLakeServiceClient.js.map +1 -1
- package/dist/browser/clients.d.ts +33 -33
- package/dist/browser/clients.js +23 -23
- package/dist/browser/clients.js.map +1 -1
- package/dist/browser/models.d.ts +1 -1
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/browser/sas/AccountSASPermissions.js +2 -2
- package/dist/browser/sas/AccountSASPermissions.js.map +1 -1
- package/dist/browser/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/browser/sas/AccountSASResourceTypes.js +1 -1
- package/dist/browser/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/browser/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/browser/sas/AccountSASSignatureValues.js +1 -1
- package/dist/browser/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/browser/sas/DataLakeSASSignatureValues.d.ts +1 -1
- package/dist/browser/sas/DataLakeSASSignatureValues.js +1 -1
- package/dist/browser/sas/DataLakeSASSignatureValues.js.map +1 -1
- package/dist/browser/sas/DirectorySASPermissions.d.ts +1 -1
- package/dist/browser/sas/DirectorySASPermissions.js +1 -1
- package/dist/browser/sas/DirectorySASPermissions.js.map +1 -1
- package/dist/browser/sas/FileSystemSASPermissions.d.ts +1 -1
- package/dist/browser/sas/FileSystemSASPermissions.js +1 -1
- package/dist/browser/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/browser/sas/SASQueryParameters.d.ts +2 -2
- package/dist/browser/sas/SASQueryParameters.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts +2 -2
- package/dist/browser/utils/utils.common.js +3 -3
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/DataLakeFileSystemClient.d.ts +13 -13
- package/dist/commonjs/DataLakeFileSystemClient.js +13 -13
- package/dist/commonjs/DataLakeFileSystemClient.js.map +1 -1
- package/dist/commonjs/DataLakeServiceClient.d.ts +6 -6
- package/dist/commonjs/DataLakeServiceClient.js +6 -6
- package/dist/commonjs/DataLakeServiceClient.js.map +1 -1
- package/dist/commonjs/clients.d.ts +33 -33
- package/dist/commonjs/clients.js +23 -23
- package/dist/commonjs/clients.js.map +1 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js +1 -1
- package/dist/commonjs/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/commonjs/models.d.ts +1 -1
- package/dist/commonjs/models.js.map +1 -1
- package/dist/commonjs/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/commonjs/sas/AccountSASPermissions.js +2 -2
- package/dist/commonjs/sas/AccountSASPermissions.js.map +1 -1
- package/dist/commonjs/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/commonjs/sas/AccountSASResourceTypes.js +1 -1
- package/dist/commonjs/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/commonjs/sas/AccountSASSignatureValues.js +1 -1
- package/dist/commonjs/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/commonjs/sas/DataLakeSASSignatureValues.d.ts +1 -1
- package/dist/commonjs/sas/DataLakeSASSignatureValues.js +1 -1
- package/dist/commonjs/sas/DataLakeSASSignatureValues.js.map +1 -1
- package/dist/commonjs/sas/DirectorySASPermissions.d.ts +1 -1
- package/dist/commonjs/sas/DirectorySASPermissions.js +1 -1
- package/dist/commonjs/sas/DirectorySASPermissions.js.map +1 -1
- package/dist/commonjs/sas/FileSystemSASPermissions.d.ts +1 -1
- package/dist/commonjs/sas/FileSystemSASPermissions.js +1 -1
- package/dist/commonjs/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/commonjs/sas/SASQueryParameters.d.ts +2 -2
- package/dist/commonjs/sas/SASQueryParameters.js.map +1 -1
- package/dist/commonjs/utils/utils.common.d.ts +2 -2
- package/dist/commonjs/utils/utils.common.js +3 -3
- package/dist/commonjs/utils/utils.common.js.map +1 -1
- package/dist/esm/DataLakeFileSystemClient.d.ts +13 -13
- package/dist/esm/DataLakeFileSystemClient.js +13 -13
- package/dist/esm/DataLakeFileSystemClient.js.map +1 -1
- package/dist/esm/DataLakeServiceClient.d.ts +6 -6
- package/dist/esm/DataLakeServiceClient.js +6 -6
- package/dist/esm/DataLakeServiceClient.js.map +1 -1
- package/dist/esm/clients.d.ts +33 -33
- package/dist/esm/clients.js +23 -23
- package/dist/esm/clients.js.map +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js +1 -1
- package/dist/esm/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/esm/models.d.ts +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/esm/sas/AccountSASPermissions.js +2 -2
- package/dist/esm/sas/AccountSASPermissions.js.map +1 -1
- package/dist/esm/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/esm/sas/AccountSASResourceTypes.js +1 -1
- package/dist/esm/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/esm/sas/AccountSASSignatureValues.js +1 -1
- package/dist/esm/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/esm/sas/DataLakeSASSignatureValues.d.ts +1 -1
- package/dist/esm/sas/DataLakeSASSignatureValues.js +1 -1
- package/dist/esm/sas/DataLakeSASSignatureValues.js.map +1 -1
- package/dist/esm/sas/DirectorySASPermissions.d.ts +1 -1
- package/dist/esm/sas/DirectorySASPermissions.js +1 -1
- package/dist/esm/sas/DirectorySASPermissions.js.map +1 -1
- package/dist/esm/sas/FileSystemSASPermissions.d.ts +1 -1
- package/dist/esm/sas/FileSystemSASPermissions.js +1 -1
- package/dist/esm/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/esm/sas/SASQueryParameters.d.ts +2 -2
- package/dist/esm/sas/SASQueryParameters.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts +2 -2
- package/dist/esm/utils/utils.common.js +3 -3
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/react-native/DataLakeFileSystemClient.d.ts +13 -13
- package/dist/react-native/DataLakeFileSystemClient.js +13 -13
- package/dist/react-native/DataLakeFileSystemClient.js.map +1 -1
- package/dist/react-native/DataLakeServiceClient.d.ts +6 -6
- package/dist/react-native/DataLakeServiceClient.js +6 -6
- package/dist/react-native/DataLakeServiceClient.js.map +1 -1
- package/dist/react-native/clients.d.ts +33 -33
- package/dist/react-native/clients.js +23 -23
- package/dist/react-native/clients.js.map +1 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.d.ts +1 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.js +1 -1
- package/dist/react-native/credentials/UserDelegationKeyCredential.js.map +1 -1
- package/dist/react-native/models.d.ts +1 -1
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/sas/AccountSASPermissions.d.ts +1 -1
- package/dist/react-native/sas/AccountSASPermissions.js +2 -2
- package/dist/react-native/sas/AccountSASPermissions.js.map +1 -1
- package/dist/react-native/sas/AccountSASResourceTypes.d.ts +1 -1
- package/dist/react-native/sas/AccountSASResourceTypes.js +1 -1
- package/dist/react-native/sas/AccountSASResourceTypes.js.map +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.d.ts +3 -3
- package/dist/react-native/sas/AccountSASSignatureValues.js +1 -1
- package/dist/react-native/sas/AccountSASSignatureValues.js.map +1 -1
- package/dist/react-native/sas/DataLakeSASSignatureValues.d.ts +1 -1
- package/dist/react-native/sas/DataLakeSASSignatureValues.js +1 -1
- package/dist/react-native/sas/DataLakeSASSignatureValues.js.map +1 -1
- package/dist/react-native/sas/DirectorySASPermissions.d.ts +1 -1
- package/dist/react-native/sas/DirectorySASPermissions.js +1 -1
- package/dist/react-native/sas/DirectorySASPermissions.js.map +1 -1
- package/dist/react-native/sas/FileSystemSASPermissions.d.ts +1 -1
- package/dist/react-native/sas/FileSystemSASPermissions.js +1 -1
- package/dist/react-native/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/react-native/sas/SASQueryParameters.d.ts +2 -2
- package/dist/react-native/sas/SASQueryParameters.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts +2 -2
- package/dist/react-native/utils/utils.common.js +3 -3
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataLakeServiceClient.js","sourceRoot":"","sources":["../../src/DataLakeServiceClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAM9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AASzE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE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AAc,IAEhD,CAAC;YAEF,MAAM,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,CAC/C,OAAO,CAAC,yBAAyB,IAAI,qBAAqB,CAC3D,CAAC;YACF,OAAO;gBACL,gBAAgB;gBAChB,0BAA0B,EAAE,GAAG,CAAC,yBAAyB;aAC1D,CAAC;QACJ,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACI,KAAK,CAAC,aAAa,CACxB,UAAuC,EAAE;QAEzC,OAAO,aAAa,CAAC,QAAQ,CAC3B,qCAAqC,EACrC,OAAO,EACP,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC;gBAC1C,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,cAAc,EAAE,cAAc,CAAC,cAAc;aAC9C,CAAC,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACI,KAAK,CAAC,aAAa,CACxB,UAAqC,EACrC,UAAuC,EAAE;QAEzC,OAAO,aAAa,CAAC,QAAQ,CAC3B,qCAAqC,EACrC,OAAO,EACP,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,UAAU,EAAE;gBACtD,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,cAAc,EAAE,cAAc,CAAC,cAAc;aAC9C,CAAC,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { getDefaultProxySettings } from \"@azure/core-rest-pipeline\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport type {\n ServiceGetPropertiesOptions,\n ServiceSetPropertiesOptions,\n ServiceSetPropertiesResponse,\n} from \"@azure/storage-blob\";\nimport { BlobServiceClient } from \"@azure/storage-blob\";\nimport type { Pipeline, StoragePipelineOptions } from \"./Pipeline.js\";\nimport { isPipelineLike, newPipeline } from \"./Pipeline.js\";\nimport { AnonymousCredential } from \"@azure/storage-blob\";\nimport { StorageSharedKeyCredential } from \"./credentials/StorageSharedKeyCredential.js\";\nimport { DataLakeFileSystemClient } from \"./DataLakeFileSystemClient.js\";\nimport type {\n FileSystemItem,\n ServiceGenerateAccountSasUrlOptions,\n ServiceListFileSystemsOptions,\n ServiceListFileSystemsSegmentResponse,\n ServiceUndeleteFileSystemOptions,\n FileSystemUndeleteResponse,\n} from \"./models.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport {\n appendToURLPath,\n appendToURLQuery,\n extractConnectionStringParts,\n} from \"./utils/utils.common.js\";\nimport { toDfsEndpointUrl, toFileSystemPagedAsyncIterableIterator } from \"./transforms.js\";\nimport type {\n ServiceGetUserDelegationKeyOptions,\n ServiceGetUserDelegationKeyResponse,\n} from \"./models.js\";\nimport { tracingClient } from \"./utils/tracing.js\";\nimport { AccountSASPermissions } from \"./sas/AccountSASPermissions.js\";\nimport {\n generateAccountSASQueryParameters,\n generateAccountSASQueryParametersInternal,\n} from \"./sas/AccountSASSignatureValues.js\";\nimport { AccountSASServices } from \"./sas/AccountSASServices.js\";\nimport type { DataLakeServiceGetPropertiesResponse, DataLakeServiceProperties } from \"./index.js\";\n\n/**\n * DataLakeServiceClient allows you to manipulate Azure\n * Data Lake service resources and file systems. The storage account provides\n * the top-level namespace for the Data Lake service.\n */\nexport class DataLakeServiceClient extends StorageClient {\n // private serviceContext: Service;\n\n /**\n * blobServiceClient provided by `@azure/storage-blob` package.\n */\n private blobServiceClient: BlobServiceClient;\n\n /**\n *\n * Creates an instance of DataLakeServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n ): DataLakeServiceClient {\n options = options || {};\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (isNodeLike) {\n const sharedKeyCredential = new StorageSharedKeyCredential(\n extractedCreds.accountName!,\n extractedCreds.accountKey,\n );\n if (!options.proxyOptions) {\n options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);\n }\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new DataLakeServiceClient(toDfsEndpointUrl(extractedCreds.url), pipeline);\n } else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n } else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new DataLakeServiceClient(\n toDfsEndpointUrl(extractedCreds.url) + \"?\" + extractedCreds.accountSas,\n pipeline,\n );\n } else {\n throw new Error(\n \"Connection string must be either an Account connection string or a SAS connection string\",\n );\n }\n }\n\n /**\n * Creates an instance of DataLakeServiceClient from url.\n *\n * @param url - A Client string pointing to Azure Storage data lake service, such as\n * \"https://myaccount.dfs.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.dfs.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n url: string,\n credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n );\n\n /**\n * Creates an instance of DataLakeServiceClient from url and pipeline.\n *\n * @param url - A Client string pointing to Azure Storage data lake service, such as\n * \"https://myaccount.dfs.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.dfs.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n */\n public constructor(url: string, pipeline: Pipeline);\n\n public constructor(\n url: string,\n credentialOrPipeline?:\n | StorageSharedKeyCredential\n | AnonymousCredential\n | TokenCredential\n | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n ) {\n if (isPipelineLike(credentialOrPipeline)) {\n super(url, credentialOrPipeline);\n } else {\n let credential;\n if (credentialOrPipeline === undefined) {\n credential = new AnonymousCredential();\n } else {\n credential = credentialOrPipeline;\n }\n\n const pipeline = newPipeline(credential, options);\n super(url, pipeline);\n }\n\n // this.serviceContext = new Service(this.storageClientContext);\n this.blobServiceClient = new BlobServiceClient(this.blobEndpointUrl, this.pipeline);\n }\n\n /**\n * Creates a {@link DataLakeFileSystemClient} object.\n *\n * @param fileSystemName - File system name.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients */\n public getFileSystemClient(fileSystemName: string): DataLakeFileSystemClient {\n return new DataLakeFileSystemClient(\n appendToURLPath(this.url, encodeURIComponent(fileSystemName)),\n this.pipeline,\n );\n }\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Data Lake service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @example\n * ```ts snippet:DatalakeServiceClientGetUserDelegationKey\n * import {\n * DataLakeServiceClient,\n * generateDataLakeSASQueryParameters,\n * FileSystemSASPermissions,\n * SASProtocol,\n * } from \"@azure/storage-file-datalake\";\n *\n * const account = \"<account>\";\n * const sas = \"<sas token>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net${sas}`,\n * );\n *\n * const fileSystemName = \"<file system name>\";\n * const accountName = \"<account name>\";\n * const startsOn = new Date();\n * const expiresOn = new Date(+new Date() + 86400 * 1000);\n * // Generate user delegation SAS for a file system\n * const userDelegationKey = await datalakeServiceClient.getUserDelegationKey(startsOn, expiresOn);\n * const fileSystemSAS = generateDataLakeSASQueryParameters(\n * {\n * fileSystemName, // Required\n * permissions: FileSystemSASPermissions.parse(\"racwdl\"), // Required\n * startsOn, // Required. Date type\n * expiresOn, // Optional. Date type\n * ipRange: { start: \"0.0.0.0\", end: \"255.255.255.255\" }, // Optional\n * protocol: SASProtocol.HttpsAndHttp, // Optional\n * version: \"2018-11-09\", // Must greater than or equal to 2018-11-09 to generate user delegation SAS\n * },\n * userDelegationKey, // UserDelegationKey\n * accountName,\n * ).toString();\n * ```\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time.\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time.\n * @param options -\n */\n public async getUserDelegationKey(\n startsOn: Date,\n expiresOn: Date,\n options: ServiceGetUserDelegationKeyOptions = {},\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-getUserDelegationKey\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.getUserDelegationKey(startsOn, expiresOn, updatedOptions);\n },\n );\n }\n\n /**\n * Returns an async iterable iterator to list all the file systems\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the file systems in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListFileSystems\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * const fileSystems = datalakeServiceClient.listFileSystems();\n * for await (const fileSystem of fileSystems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_Iterator\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * const fileSystems = datalakeServiceClient.listFileSystems();\n * let { value, done } = await fileSystems.next();\n * while (!done) {\n * console.log(`File system ${i++}: ${value.name}`);\n * ({ value, done } = await fileSystems.next());\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_ByPage\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * for await (const response of datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 20 })) {\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File System ${i++}: ${fileSystem.name}`);\n * }\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_Continuation\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * let fileSystems = datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 2 });\n * let response = (await fileSystems.next()).value;\n * // Prints 2 file systems\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * }\n * // Gets next marker\n * let marker = response.continuationToken;\n * // Passing next marker as continuationToken\n * fileSystems = datalakeServiceClient\n * .listFileSystems()\n * .byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await fileSystems.next()).value;\n * // Prints 10 file systems\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * }\n * ```\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/list-containers2\n *\n * @param options -\n */\n public listFileSystems(\n options: ServiceListFileSystemsOptions = {},\n ): PagedAsyncIterableIterator<FileSystemItem, ServiceListFileSystemsSegmentResponse> {\n return toFileSystemPagedAsyncIterableIterator(this.blobServiceClient.listContainers(options));\n }\n\n // public async createFileSystem(): Promise<DataLakeFileSystemClient> {\n // throw Error(\"NotImplemented\");\n // }\n\n // public async deleteFileSystem(fileSystem: string): Promise<ServiceDeleteFileSystemResponse> {\n // throw Error(\"NotImplemented\");\n // }\n\n /**\n * Only available for DataLakeServiceClient constructed with a shared key credential.\n *\n * Generates an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateAccountSasUrl(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n const sas = generateAccountSASQueryParameters(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"b\").toString(),\n ...options,\n },\n this.credential,\n ).toString();\n\n return appendToURLQuery(this.url, sas);\n }\n\n /**\n * Only available for DataLakeServiceClient constructed with a shared key credential.\n *\n * Generates string to sign for an account Shared Access Signature (SAS) based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateSasStringToSign(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n return generateAccountSASQueryParametersInternal(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"b\").toString(),\n ...options,\n },\n this.credential,\n ).stringToSign;\n }\n\n /**\n * Restore a previously deleted File System.\n * This API is only functional if Container Soft Delete is enabled for the storage account.\n *\n * @param deletedFileSystemName - The name of the source File System.\n * @param deleteFileSystemVersion - The new name of the File System.\n * @param options - Options to configure File System Restore operation.\n */\n public async undeleteFileSystem(\n deletedFileSystemName: string,\n deleteFileSystemVersion: string,\n options: ServiceUndeleteFileSystemOptions = {},\n ): Promise<{\n fileSystemClient: DataLakeFileSystemClient;\n fileSystemUndeleteResponse: FileSystemUndeleteResponse;\n }> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-undeleteFileSystem\",\n options,\n async (updatedOptions) => {\n const res = await this.blobServiceClient.undeleteContainer(\n deletedFileSystemName,\n deleteFileSystemVersion,\n {\n ...options,\n destinationContainerName: options.destinationFileSystemName,\n tracingOptions: updatedOptions.tracingOptions,\n },\n );\n\n const fileSystemClient = this.getFileSystemClient(\n options.destinationFileSystemName || deletedFileSystemName,\n );\n return {\n fileSystemClient,\n fileSystemUndeleteResponse: res.containerUndeleteResponse,\n };\n },\n );\n }\n\n /**\n * Gets the properties of a storage account’s Blob service endpoint, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/get-blob-service-properties\n *\n * @param options - Options to the Service Get Properties operation.\n * @returns Response data for the Service Get Properties operation.\n */\n public async getProperties(\n options: ServiceGetPropertiesOptions = {},\n ): Promise<DataLakeServiceGetPropertiesResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-getProperties\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.getProperties({\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n },\n );\n }\n\n /**\n * Sets properties for a storage account’s Blob service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://learn.microsoft.com/en-us/rest/api/storageservices/set-blob-service-properties\n *\n * @param properties -\n * @param options - Options to the Service Set Properties operation.\n * @returns Response data for the Service Set Properties operation.\n */\n public async setProperties(\n properties: DataLakeServiceProperties,\n options: ServiceSetPropertiesOptions = {},\n ): Promise<ServiceSetPropertiesResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-setProperties\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.setProperties(properties, {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n },\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"DataLakeServiceClient.js","sourceRoot":"","sources":["../../src/DataLakeServiceClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAM9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AASzE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,4BAA4B,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,sCAAsC,EAAE,MAAM,iBAAiB,CAAC;AAK3F,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EACL,iCAAiC,EACjC,yCAAyC,GAC1C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAGjE;;;;GAIG;AACH,M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zC,OAAO,aAAa,CAAC,QAAQ,CAC3B,qCAAqC,EACrC,OAAO,EACP,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC;gBAC1C,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,cAAc,EAAE,cAAc,CAAC,cAAc;aAC9C,CAAC,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACI,KAAK,CAAC,aAAa,CACxB,UAAqC,EACrC,UAAuC,EAAE;QAEzC,OAAO,aAAa,CAAC,QAAQ,CAC3B,qCAAqC,EACrC,OAAO,EACP,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,UAAU,EAAE;gBACtD,WAAW,EAAE,OAAO,CAAC,WAAW;gBAChC,cAAc,EAAE,cAAc,CAAC,cAAc;aAC9C,CAAC,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { TokenCredential } from \"@azure/core-auth\";\nimport type { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { getDefaultProxySettings } from \"@azure/core-rest-pipeline\";\nimport { isNodeLike } from \"@azure/core-util\";\nimport type {\n ServiceGetPropertiesOptions,\n ServiceSetPropertiesOptions,\n ServiceSetPropertiesResponse,\n} from \"@azure/storage-blob\";\nimport { BlobServiceClient } from \"@azure/storage-blob\";\nimport type { Pipeline, StoragePipelineOptions } from \"./Pipeline.js\";\nimport { isPipelineLike, newPipeline } from \"./Pipeline.js\";\nimport { AnonymousCredential } from \"@azure/storage-blob\";\nimport { StorageSharedKeyCredential } from \"./credentials/StorageSharedKeyCredential.js\";\nimport { DataLakeFileSystemClient } from \"./DataLakeFileSystemClient.js\";\nimport type {\n FileSystemItem,\n ServiceGenerateAccountSasUrlOptions,\n ServiceListFileSystemsOptions,\n ServiceListFileSystemsSegmentResponse,\n ServiceUndeleteFileSystemOptions,\n FileSystemUndeleteResponse,\n} from \"./models.js\";\nimport { StorageClient } from \"./StorageClient.js\";\nimport {\n appendToURLPath,\n appendToURLQuery,\n extractConnectionStringParts,\n} from \"./utils/utils.common.js\";\nimport { toDfsEndpointUrl, toFileSystemPagedAsyncIterableIterator } from \"./transforms.js\";\nimport type {\n ServiceGetUserDelegationKeyOptions,\n ServiceGetUserDelegationKeyResponse,\n} from \"./models.js\";\nimport { tracingClient } from \"./utils/tracing.js\";\nimport { AccountSASPermissions } from \"./sas/AccountSASPermissions.js\";\nimport {\n generateAccountSASQueryParameters,\n generateAccountSASQueryParametersInternal,\n} from \"./sas/AccountSASSignatureValues.js\";\nimport { AccountSASServices } from \"./sas/AccountSASServices.js\";\nimport type { DataLakeServiceGetPropertiesResponse, DataLakeServiceProperties } from \"./index.js\";\n\n/**\n * DataLakeServiceClient allows you to manipulate Azure\n * Data Lake service resources and file systems. The storage account provides\n * the top-level namespace for the Data Lake service.\n */\nexport class DataLakeServiceClient extends StorageClient {\n // private serviceContext: Service;\n\n /**\n * blobServiceClient provided by `@azure/storage-blob` package.\n */\n private blobServiceClient: BlobServiceClient;\n\n /**\n *\n * Creates an instance of DataLakeServiceClient from connection string.\n *\n * @param connectionString - Account connection string or a SAS connection string of an Azure storage account.\n * [ Note - Account connection string can only be used in NODE.JS runtime. ]\n * Account connection string example -\n * `DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`\n * SAS connection string example -\n * `BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n\n public static fromConnectionString(\n connectionString: string,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n ): DataLakeServiceClient {\n options = options || {};\n const extractedCreds = extractConnectionStringParts(connectionString);\n if (extractedCreds.kind === \"AccountConnString\") {\n if (isNodeLike) {\n const sharedKeyCredential = new StorageSharedKeyCredential(\n extractedCreds.accountName!,\n extractedCreds.accountKey,\n );\n if (!options.proxyOptions) {\n options.proxyOptions = getDefaultProxySettings(extractedCreds.proxyUri);\n }\n const pipeline = newPipeline(sharedKeyCredential, options);\n return new DataLakeServiceClient(toDfsEndpointUrl(extractedCreds.url), pipeline);\n } else {\n throw new Error(\"Account connection string is only supported in Node.js environment\");\n }\n } else if (extractedCreds.kind === \"SASConnString\") {\n const pipeline = newPipeline(new AnonymousCredential(), options);\n return new DataLakeServiceClient(\n toDfsEndpointUrl(extractedCreds.url) + \"?\" + extractedCreds.accountSas,\n pipeline,\n );\n } else {\n throw new Error(\n \"Connection string must be either an Account connection string or a SAS connection string\",\n );\n }\n }\n\n /**\n * Creates an instance of DataLakeServiceClient from url.\n *\n * @param url - A Client string pointing to Azure Storage data lake service, such as\n * \"https://myaccount.dfs.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.dfs.core.windows.net?sasString\".\n * @param credential - Such as AnonymousCredential, StorageSharedKeyCredential or any credential from the `@azure/identity` package to authenticate requests to the service. You can also provide an object that implements the TokenCredential interface. If not specified, AnonymousCredential is used.\n * @param options - Optional. Options to configure the HTTP pipeline.\n */\n public constructor(\n url: string,\n credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n );\n\n /**\n * Creates an instance of DataLakeServiceClient from url and pipeline.\n *\n * @param url - A Client string pointing to Azure Storage data lake service, such as\n * \"https://myaccount.dfs.core.windows.net\". You can append a SAS\n * if using AnonymousCredential, such as \"https://myaccount.dfs.core.windows.net?sasString\".\n * @param pipeline - Call newPipeline() to create a default\n * pipeline, or provide a customized pipeline.\n */\n public constructor(url: string, pipeline: Pipeline);\n\n public constructor(\n url: string,\n credentialOrPipeline?:\n | StorageSharedKeyCredential\n | AnonymousCredential\n | TokenCredential\n | Pipeline,\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-options */\n options?: StoragePipelineOptions,\n ) {\n if (isPipelineLike(credentialOrPipeline)) {\n super(url, credentialOrPipeline);\n } else {\n let credential;\n if (credentialOrPipeline === undefined) {\n credential = new AnonymousCredential();\n } else {\n credential = credentialOrPipeline;\n }\n\n const pipeline = newPipeline(credential, options);\n super(url, pipeline);\n }\n\n // this.serviceContext = new Service(this.storageClientContext);\n this.blobServiceClient = new BlobServiceClient(this.blobEndpointUrl, this.pipeline);\n }\n\n /**\n * Creates a {@link DataLakeFileSystemClient} object.\n *\n * @param fileSystemName - File system name.\n */\n // Legacy, no way to fix the eslint error without breaking. Disable the rule for this line.\n /* eslint-disable-next-line @azure/azure-sdk/ts-naming-subclients */\n public getFileSystemClient(fileSystemName: string): DataLakeFileSystemClient {\n return new DataLakeFileSystemClient(\n appendToURLPath(this.url, encodeURIComponent(fileSystemName)),\n this.pipeline,\n );\n }\n\n /**\n * ONLY AVAILABLE WHEN USING BEARER TOKEN AUTHENTICATION (TokenCredential).\n *\n * Retrieves a user delegation key for the Data Lake service. This is only a valid operation when using\n * bearer token authentication.\n *\n * @example\n * ```ts snippet:DatalakeServiceClientGetUserDelegationKey\n * import {\n * DataLakeServiceClient,\n * generateDataLakeSASQueryParameters,\n * FileSystemSASPermissions,\n * SASProtocol,\n * } from \"@azure/storage-file-datalake\";\n *\n * const account = \"<account>\";\n * const sas = \"<sas token>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net${sas}`,\n * );\n *\n * const fileSystemName = \"<file system name>\";\n * const accountName = \"<account name>\";\n * const startsOn = new Date();\n * const expiresOn = new Date(+new Date() + 86400 * 1000);\n * // Generate user delegation SAS for a file system\n * const userDelegationKey = await datalakeServiceClient.getUserDelegationKey(startsOn, expiresOn);\n * const fileSystemSAS = generateDataLakeSASQueryParameters(\n * {\n * fileSystemName, // Required\n * permissions: FileSystemSASPermissions.parse(\"racwdl\"), // Required\n * startsOn, // Required. Date type\n * expiresOn, // Optional. Date type\n * ipRange: { start: \"0.0.0.0\", end: \"255.255.255.255\" }, // Optional\n * protocol: SASProtocol.HttpsAndHttp, // Optional\n * version: \"2018-11-09\", // Must greater than or equal to 2018-11-09 to generate user delegation SAS\n * },\n * userDelegationKey, // UserDelegationKey\n * accountName,\n * ).toString();\n * ```\n * @see https://learn.microsoft.com/rest/api/storageservices/get-user-delegation-key\n *\n * @param startsOn - The start time for the user delegation SAS. Must be within 7 days of the current time.\n * @param expiresOn - The end time for the user delegation SAS. Must be within 7 days of the current time.\n * @param options -\n */\n public async getUserDelegationKey(\n startsOn: Date,\n expiresOn: Date,\n options: ServiceGetUserDelegationKeyOptions = {},\n ): Promise<ServiceGetUserDelegationKeyResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-getUserDelegationKey\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.getUserDelegationKey(startsOn, expiresOn, updatedOptions);\n },\n );\n }\n\n /**\n * Returns an async iterable iterator to list all the file systems\n * under the specified account.\n *\n * .byPage() returns an async iterable iterator to list the file systems in pages.\n *\n * Example using `for await` syntax:\n *\n * ```ts snippet:ReadmeSampleListFileSystems\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * const fileSystems = datalakeServiceClient.listFileSystems();\n * for await (const fileSystem of fileSystems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * ```\n *\n * Example using `iter.next()`:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_Iterator\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * const fileSystems = datalakeServiceClient.listFileSystems();\n * let { value, done } = await fileSystems.next();\n * while (!done) {\n * console.log(`File system ${i++}: ${value.name}`);\n * ({ value, done } = await fileSystems.next());\n * }\n * ```\n *\n * Example using `byPage()`:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_ByPage\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * for await (const response of datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 20 })) {\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File System ${i++}: ${fileSystem.name}`);\n * }\n * }\n * }\n * ```\n *\n * Example using paging with a marker:\n *\n * ```ts snippet:ReadmeSampleListFileSystems_Continuation\n * import { DataLakeServiceClient } from \"@azure/storage-file-datalake\";\n * import { DefaultAzureCredential } from \"@azure/identity\";\n *\n * const account = \"<account>\";\n * const datalakeServiceClient = new DataLakeServiceClient(\n * `https://${account}.dfs.core.windows.net`,\n * new DefaultAzureCredential(),\n * );\n *\n * let i = 1;\n * let fileSystems = datalakeServiceClient.listFileSystems().byPage({ maxPageSize: 2 });\n * let response = (await fileSystems.next()).value;\n * // Prints 2 file systems\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * }\n * // Gets next marker\n * let marker = response.continuationToken;\n * // Passing next marker as continuationToken\n * fileSystems = datalakeServiceClient\n * .listFileSystems()\n * .byPage({ continuationToken: marker, maxPageSize: 10 });\n * response = (await fileSystems.next()).value;\n * // Prints 10 file systems\n * if (response.fileSystemItems) {\n * for (const fileSystem of response.fileSystemItems) {\n * console.log(`File system ${i++}: ${fileSystem.name}`);\n * }\n * }\n * ```\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/list-containers2\n *\n * @param options -\n */\n public listFileSystems(\n options: ServiceListFileSystemsOptions = {},\n ): PagedAsyncIterableIterator<FileSystemItem, ServiceListFileSystemsSegmentResponse> {\n return toFileSystemPagedAsyncIterableIterator(this.blobServiceClient.listContainers(options));\n }\n\n // public async createFileSystem(): Promise<DataLakeFileSystemClient> {\n // throw Error(\"NotImplemented\");\n // }\n\n // public async deleteFileSystem(fileSystem: string): Promise<ServiceDeleteFileSystemResponse> {\n // throw Error(\"NotImplemented\");\n // }\n\n /**\n * Only available for DataLakeServiceClient constructed with a shared key credential.\n *\n * Generates an account Shared Access Signature (SAS) URI based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateAccountSasUrl(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n const sas = generateAccountSASQueryParameters(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"b\").toString(),\n ...options,\n },\n this.credential,\n ).toString();\n\n return appendToURLQuery(this.url, sas);\n }\n\n /**\n * Only available for DataLakeServiceClient constructed with a shared key credential.\n *\n * Generates string to sign for an account Shared Access Signature (SAS) based on the client properties\n * and parameters passed in. The SAS is signed by the shared key credential of the client.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/create-account-sas\n *\n * @param expiresOn - Optional. The time at which the shared access signature becomes invalid. Default to an hour later if not specified.\n * @param permissions - Specifies the list of permissions to be associated with the SAS.\n * @param resourceTypes - Specifies the resource types associated with the shared access signature.\n * @param options - Optional parameters.\n * @returns An account SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.\n */\n public generateSasStringToSign(\n expiresOn?: Date,\n permissions: AccountSASPermissions = AccountSASPermissions.parse(\"r\"),\n resourceTypes: string = \"sco\",\n options: ServiceGenerateAccountSasUrlOptions = {},\n ): string {\n if (!(this.credential instanceof StorageSharedKeyCredential)) {\n throw RangeError(\n \"Can only generate the account SAS when the client is initialized with a shared key credential\",\n );\n }\n\n if (expiresOn === undefined) {\n const now = new Date();\n expiresOn = new Date(now.getTime() + 3600 * 1000);\n }\n\n return generateAccountSASQueryParametersInternal(\n {\n permissions,\n expiresOn,\n resourceTypes,\n services: AccountSASServices.parse(\"b\").toString(),\n ...options,\n },\n this.credential,\n ).stringToSign;\n }\n\n /**\n * Restore a previously deleted File System.\n * This API is only functional if Container Soft Delete is enabled for the storage account.\n *\n * @param deletedFileSystemName - The name of the source File System.\n * @param deleteFileSystemVersion - The new name of the File System.\n * @param options - Options to configure File System Restore operation.\n */\n public async undeleteFileSystem(\n deletedFileSystemName: string,\n deleteFileSystemVersion: string,\n options: ServiceUndeleteFileSystemOptions = {},\n ): Promise<{\n fileSystemClient: DataLakeFileSystemClient;\n fileSystemUndeleteResponse: FileSystemUndeleteResponse;\n }> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-undeleteFileSystem\",\n options,\n async (updatedOptions) => {\n const res = await this.blobServiceClient.undeleteContainer(\n deletedFileSystemName,\n deleteFileSystemVersion,\n {\n ...options,\n destinationContainerName: options.destinationFileSystemName,\n tracingOptions: updatedOptions.tracingOptions,\n },\n );\n\n const fileSystemClient = this.getFileSystemClient(\n options.destinationFileSystemName || deletedFileSystemName,\n );\n return {\n fileSystemClient,\n fileSystemUndeleteResponse: res.containerUndeleteResponse,\n };\n },\n );\n }\n\n /**\n * Gets the properties of a storage account’s Blob service endpoint, including properties\n * for Storage Analytics and CORS (Cross-Origin Resource Sharing) rules.\n * @see https://learn.microsoft.com/rest/api/storageservices/get-blob-service-properties\n *\n * @param options - Options to the Service Get Properties operation.\n * @returns Response data for the Service Get Properties operation.\n */\n public async getProperties(\n options: ServiceGetPropertiesOptions = {},\n ): Promise<DataLakeServiceGetPropertiesResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-getProperties\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.getProperties({\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n },\n );\n }\n\n /**\n * Sets properties for a storage account’s Blob service endpoint, including properties\n * for Storage Analytics, CORS (Cross-Origin Resource Sharing) rules and soft delete settings.\n * @see https://learn.microsoft.com/rest/api/storageservices/set-blob-service-properties\n *\n * @param properties -\n * @param options - Options to the Service Set Properties operation.\n * @returns Response data for the Service Set Properties operation.\n */\n public async setProperties(\n properties: DataLakeServiceProperties,\n options: ServiceSetPropertiesOptions = {},\n ): Promise<ServiceSetPropertiesResponse> {\n return tracingClient.withSpan(\n \"DataLakeServiceClient-setProperties\",\n options,\n async (updatedOptions) => {\n return this.blobServiceClient.setProperties(properties, {\n abortSignal: options.abortSignal,\n tracingOptions: updatedOptions.tracingOptions,\n });\n },\n );\n }\n}\n"]}
|
|
@@ -81,7 +81,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
81
81
|
/**
|
|
82
82
|
* Create a directory or path.
|
|
83
83
|
*
|
|
84
|
-
* @see https://learn.microsoft.com/
|
|
84
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
85
85
|
*
|
|
86
86
|
* @param resourceType - Resource type, "directory" or "file".
|
|
87
87
|
* @param options - Optional. Options when creating path.
|
|
@@ -90,7 +90,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
90
90
|
/**
|
|
91
91
|
* Create a directory or file. If the resource already exists, it is not changed.
|
|
92
92
|
*
|
|
93
|
-
* @see https://learn.microsoft.com/
|
|
93
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
94
94
|
*
|
|
95
95
|
* @param resourceType - Resource type, "directory" or "file".
|
|
96
96
|
* @param options -
|
|
@@ -109,7 +109,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
109
109
|
/**
|
|
110
110
|
* Delete current path (directory or file).
|
|
111
111
|
*
|
|
112
|
-
* @see https://learn.microsoft.com/
|
|
112
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/delete
|
|
113
113
|
*
|
|
114
114
|
* @param recursive - Required and valid only when the resource is a directory. If "true", all paths beneath the directory will be deleted.
|
|
115
115
|
* @param options - Optional. Options when deleting path.
|
|
@@ -118,7 +118,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
118
118
|
/**
|
|
119
119
|
* Delete current path (directory or file) if it exists.
|
|
120
120
|
*
|
|
121
|
-
* @see https://learn.microsoft.com/
|
|
121
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/delete
|
|
122
122
|
*
|
|
123
123
|
* @param recursive - Required and valid only when the resource is a directory. If "true", all paths beneath the directory will be deleted.
|
|
124
124
|
* @param options -
|
|
@@ -127,7 +127,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
127
127
|
/**
|
|
128
128
|
* Returns the access control data for a path (directory of file).
|
|
129
129
|
*
|
|
130
|
-
* @see https://learn.microsoft.com/
|
|
130
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/getproperties
|
|
131
131
|
*
|
|
132
132
|
* @param options - Optional. Options when getting file access control.
|
|
133
133
|
*/
|
|
@@ -135,7 +135,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
135
135
|
/**
|
|
136
136
|
* Set the access control data for a path (directory of file).
|
|
137
137
|
*
|
|
138
|
-
* @see https://learn.microsoft.com/
|
|
138
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
139
139
|
*
|
|
140
140
|
* @param acl - The POSIX access control list for the file or directory.
|
|
141
141
|
* @param options - Optional. Options when setting path access control.
|
|
@@ -144,7 +144,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
144
144
|
/**
|
|
145
145
|
* Sets the Access Control on a path and sub paths.
|
|
146
146
|
*
|
|
147
|
-
* @see https://learn.microsoft.com/
|
|
147
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
148
148
|
*
|
|
149
149
|
* @param acl - The POSIX access control list for the file or directory.
|
|
150
150
|
* @param options - Optional. Options
|
|
@@ -153,7 +153,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
153
153
|
/**
|
|
154
154
|
* Modifies the Access Control on a path and sub paths.
|
|
155
155
|
*
|
|
156
|
-
* @see https://learn.microsoft.com/
|
|
156
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
157
157
|
*
|
|
158
158
|
* @param acl - The POSIX access control list for the file or directory.
|
|
159
159
|
* @param options - Optional. Options
|
|
@@ -162,7 +162,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
162
162
|
/**
|
|
163
163
|
* Removes the Access Control on a path and sub paths.
|
|
164
164
|
*
|
|
165
|
-
* @see https://learn.microsoft.com/
|
|
165
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
166
166
|
*
|
|
167
167
|
* @param acl - The POSIX access control list for the file or directory.
|
|
168
168
|
* @param options - Optional. Options
|
|
@@ -171,7 +171,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
171
171
|
/**
|
|
172
172
|
* Sets the file permissions on a path.
|
|
173
173
|
*
|
|
174
|
-
* @see https://learn.microsoft.com/
|
|
174
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
175
175
|
*
|
|
176
176
|
* @param permissions - The POSIX access permissions for the file owner, the file owning group, and others.
|
|
177
177
|
* @param options - Optional. Options when setting path permissions.
|
|
@@ -186,7 +186,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
186
186
|
* the methods of {@link DataLakeFileSystemClient} that list paths using the `includeMetadata` option, which
|
|
187
187
|
* will retain their original casing.
|
|
188
188
|
*
|
|
189
|
-
* @see https://learn.microsoft.com/
|
|
189
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-blob-properties
|
|
190
190
|
*
|
|
191
191
|
* @param options - Optional. Options when getting path properties.
|
|
192
192
|
*/
|
|
@@ -196,7 +196,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
196
196
|
*
|
|
197
197
|
* If no value provided, or no value provided for the specified blob HTTP headers,
|
|
198
198
|
* these blob HTTP headers without a value will be cleared.
|
|
199
|
-
* @see https://learn.microsoft.com/
|
|
199
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-blob-properties
|
|
200
200
|
*
|
|
201
201
|
* @param httpHeaders -
|
|
202
202
|
* @param options -
|
|
@@ -208,7 +208,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
208
208
|
* If no option provided, or no metadata defined in the parameter, the path
|
|
209
209
|
* metadata will be removed.
|
|
210
210
|
*
|
|
211
|
-
* @see https://learn.microsoft.com/
|
|
211
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-blob-metadata
|
|
212
212
|
*
|
|
213
213
|
* @param metadata - Optional. Replace existing metadata with this value.
|
|
214
214
|
* If no value provided the existing metadata will be removed.
|
|
@@ -218,7 +218,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
218
218
|
/**
|
|
219
219
|
* Move directory or file within same file system.
|
|
220
220
|
*
|
|
221
|
-
* @see https://learn.microsoft.com/
|
|
221
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
222
222
|
*
|
|
223
223
|
* @param destinationPath - Destination directory path like "directory" or file path "directory/file".
|
|
224
224
|
* If the destinationPath is authenticated with SAS, add the SAS to the destination path like "directory/file?sasToken".
|
|
@@ -228,7 +228,7 @@ export declare class DataLakePathClient extends StorageClient {
|
|
|
228
228
|
/**
|
|
229
229
|
* Move directory or file to another file system.
|
|
230
230
|
*
|
|
231
|
-
* @see https://learn.microsoft.com/
|
|
231
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
232
232
|
*
|
|
233
233
|
* @param destinationFileSystem - Destination file system like "filesystem".
|
|
234
234
|
* @param destinationPath - Destination directory path like "directory" or file path "directory/file"
|
|
@@ -244,7 +244,7 @@ export declare class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
244
244
|
/**
|
|
245
245
|
* Create a directory.
|
|
246
246
|
*
|
|
247
|
-
* @see https://learn.microsoft.com/
|
|
247
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
248
248
|
*
|
|
249
249
|
* @param resourceType - Resource type, must be "directory" for DataLakeDirectoryClient.
|
|
250
250
|
* @param options - Optional. Options when creating directory.
|
|
@@ -253,7 +253,7 @@ export declare class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
253
253
|
/**
|
|
254
254
|
* Create a directory.
|
|
255
255
|
*
|
|
256
|
-
* @see https://learn.microsoft.com/
|
|
256
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
257
257
|
*
|
|
258
258
|
* @param options - Optional. Options when creating directory.
|
|
259
259
|
*/
|
|
@@ -261,7 +261,7 @@ export declare class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
261
261
|
/**
|
|
262
262
|
* Create a directory if it doesn't already exists.
|
|
263
263
|
*
|
|
264
|
-
* @see https://learn.microsoft.com/
|
|
264
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
265
265
|
*
|
|
266
266
|
* @param resourceType - Resource type, must be "directory" for DataLakeDirectoryClient.
|
|
267
267
|
* @param options -
|
|
@@ -270,7 +270,7 @@ export declare class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
270
270
|
/**
|
|
271
271
|
* Create a directory if it doesn't already exists.
|
|
272
272
|
*
|
|
273
|
-
* @see https://learn.microsoft.com/
|
|
273
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
274
274
|
*
|
|
275
275
|
* @param options -
|
|
276
276
|
*/
|
|
@@ -293,7 +293,7 @@ export declare class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
293
293
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
294
294
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
295
295
|
*
|
|
296
|
-
* @see https://learn.microsoft.com/
|
|
296
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
297
297
|
*
|
|
298
298
|
* @param options - Optional parameters.
|
|
299
299
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -303,7 +303,7 @@ export declare class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
303
303
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
304
304
|
* and parameters passed in.
|
|
305
305
|
*
|
|
306
|
-
* @see https://learn.microsoft.com/
|
|
306
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
307
307
|
*
|
|
308
308
|
* @param options - Optional parameters.
|
|
309
309
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -313,7 +313,7 @@ export declare class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
313
313
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
314
314
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
315
315
|
*
|
|
316
|
-
* @see https://learn.microsoft.com/
|
|
316
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
317
317
|
*
|
|
318
318
|
* @param options - Optional parameters.
|
|
319
319
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
@@ -324,7 +324,7 @@ export declare class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
324
324
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
325
325
|
* and parameters passed in The SAS is signed by the input user delegation key.
|
|
326
326
|
*
|
|
327
|
-
* @see https://learn.microsoft.com/
|
|
327
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
328
328
|
*
|
|
329
329
|
* @param options - Optional parameters.
|
|
330
330
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
@@ -371,7 +371,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
371
371
|
/**
|
|
372
372
|
* Create a file.
|
|
373
373
|
*
|
|
374
|
-
* @see https://learn.microsoft.com/
|
|
374
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
375
375
|
*
|
|
376
376
|
* @param resourceType - Resource type, must be "file" for DataLakeFileClient.
|
|
377
377
|
* @param options - Optional. Options when creating file.
|
|
@@ -380,7 +380,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
380
380
|
/**
|
|
381
381
|
* Create a file.
|
|
382
382
|
*
|
|
383
|
-
* @see https://learn.microsoft.com/
|
|
383
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
384
384
|
*
|
|
385
385
|
* @param options - Optional. Options when creating file.
|
|
386
386
|
*/
|
|
@@ -388,7 +388,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
388
388
|
/**
|
|
389
389
|
* Create a file if it doesn't already exists.
|
|
390
390
|
*
|
|
391
|
-
* @see https://learn.microsoft.com/
|
|
391
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
392
392
|
*
|
|
393
393
|
* @param resourceType - Resource type, must be "file" for DataLakeFileClient.
|
|
394
394
|
* @param options -
|
|
@@ -397,7 +397,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
397
397
|
/**
|
|
398
398
|
* Create a file if it doesn't already exists.
|
|
399
399
|
*
|
|
400
|
-
* @see https://learn.microsoft.com/
|
|
400
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
401
401
|
*
|
|
402
402
|
* @param options - Optional. Options when creating file.
|
|
403
403
|
*/
|
|
@@ -408,7 +408,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
408
408
|
* * In Node.js, data returns in a Readable stream readableStreamBody
|
|
409
409
|
* * In browsers, data returns in a promise contentAsBlob
|
|
410
410
|
*
|
|
411
|
-
* @see https://learn.microsoft.com/
|
|
411
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-blob
|
|
412
412
|
*
|
|
413
413
|
* * Example usage (Node.js):
|
|
414
414
|
*
|
|
@@ -485,7 +485,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
485
485
|
* Uploads data to be appended to a file. Data can only be appended to a file.
|
|
486
486
|
* To apply perviously uploaded data to a file, call flush.
|
|
487
487
|
*
|
|
488
|
-
* @see https://learn.microsoft.com/
|
|
488
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
489
489
|
*
|
|
490
490
|
* @param body - Content to be uploaded.
|
|
491
491
|
* @param offset - Append offset in bytes.
|
|
@@ -645,7 +645,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
645
645
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
646
646
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
647
647
|
*
|
|
648
|
-
* @see https://learn.microsoft.com/
|
|
648
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
649
649
|
*
|
|
650
650
|
* @param options - Optional parameters.
|
|
651
651
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -657,7 +657,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
657
657
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
658
658
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
659
659
|
*
|
|
660
|
-
* @see https://learn.microsoft.com/
|
|
660
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
661
661
|
*
|
|
662
662
|
* @param options - Optional parameters.
|
|
663
663
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -667,7 +667,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
667
667
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
668
668
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
669
669
|
*
|
|
670
|
-
* @see https://learn.microsoft.com/
|
|
670
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
671
671
|
*
|
|
672
672
|
* @param options - Optional parameters.
|
|
673
673
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
@@ -678,7 +678,7 @@ export declare class DataLakeFileClient extends DataLakePathClient {
|
|
|
678
678
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
679
679
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
680
680
|
*
|
|
681
|
-
* @see https://learn.microsoft.com/
|
|
681
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
682
682
|
*
|
|
683
683
|
* @param options - Optional parameters.
|
|
684
684
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
package/dist/browser/clients.js
CHANGED
|
@@ -152,7 +152,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
152
152
|
/**
|
|
153
153
|
* Create a directory or path.
|
|
154
154
|
*
|
|
155
|
-
* @see https://learn.microsoft.com/
|
|
155
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
156
156
|
*
|
|
157
157
|
* @param resourceType - Resource type, "directory" or "file".
|
|
158
158
|
* @param options - Optional. Options when creating path.
|
|
@@ -181,7 +181,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
181
181
|
/**
|
|
182
182
|
* Create a directory or file. If the resource already exists, it is not changed.
|
|
183
183
|
*
|
|
184
|
-
* @see https://learn.microsoft.com/
|
|
184
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/create
|
|
185
185
|
*
|
|
186
186
|
* @param resourceType - Resource type, "directory" or "file".
|
|
187
187
|
* @param options -
|
|
@@ -219,7 +219,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
219
219
|
/**
|
|
220
220
|
* Delete current path (directory or file).
|
|
221
221
|
*
|
|
222
|
-
* @see https://learn.microsoft.com/
|
|
222
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/delete
|
|
223
223
|
*
|
|
224
224
|
* @param recursive - Required and valid only when the resource is a directory. If "true", all paths beneath the directory will be deleted.
|
|
225
225
|
* @param options - Optional. Options when deleting path.
|
|
@@ -253,7 +253,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
253
253
|
/**
|
|
254
254
|
* Delete current path (directory or file) if it exists.
|
|
255
255
|
*
|
|
256
|
-
* @see https://learn.microsoft.com/
|
|
256
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/delete
|
|
257
257
|
*
|
|
258
258
|
* @param recursive - Required and valid only when the resource is a directory. If "true", all paths beneath the directory will be deleted.
|
|
259
259
|
* @param options -
|
|
@@ -277,7 +277,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
277
277
|
/**
|
|
278
278
|
* Returns the access control data for a path (directory of file).
|
|
279
279
|
*
|
|
280
|
-
* @see https://learn.microsoft.com/
|
|
280
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/getproperties
|
|
281
281
|
*
|
|
282
282
|
* @param options - Optional. Options when getting file access control.
|
|
283
283
|
*/
|
|
@@ -291,7 +291,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
291
291
|
/**
|
|
292
292
|
* Set the access control data for a path (directory of file).
|
|
293
293
|
*
|
|
294
|
-
* @see https://learn.microsoft.com/
|
|
294
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
295
295
|
*
|
|
296
296
|
* @param acl - The POSIX access control list for the file or directory.
|
|
297
297
|
* @param options - Optional. Options when setting path access control.
|
|
@@ -305,7 +305,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
305
305
|
/**
|
|
306
306
|
* Sets the Access Control on a path and sub paths.
|
|
307
307
|
*
|
|
308
|
-
* @see https://learn.microsoft.com/
|
|
308
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
309
309
|
*
|
|
310
310
|
* @param acl - The POSIX access control list for the file or directory.
|
|
311
311
|
* @param options - Optional. Options
|
|
@@ -318,7 +318,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
318
318
|
/**
|
|
319
319
|
* Modifies the Access Control on a path and sub paths.
|
|
320
320
|
*
|
|
321
|
-
* @see https://learn.microsoft.com/
|
|
321
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
322
322
|
*
|
|
323
323
|
* @param acl - The POSIX access control list for the file or directory.
|
|
324
324
|
* @param options - Optional. Options
|
|
@@ -331,7 +331,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
331
331
|
/**
|
|
332
332
|
* Removes the Access Control on a path and sub paths.
|
|
333
333
|
*
|
|
334
|
-
* @see https://learn.microsoft.com/
|
|
334
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
335
335
|
*
|
|
336
336
|
* @param acl - The POSIX access control list for the file or directory.
|
|
337
337
|
* @param options - Optional. Options
|
|
@@ -344,7 +344,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
344
344
|
/**
|
|
345
345
|
* Sets the file permissions on a path.
|
|
346
346
|
*
|
|
347
|
-
* @see https://learn.microsoft.com/
|
|
347
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
348
348
|
*
|
|
349
349
|
* @param permissions - The POSIX access permissions for the file owner, the file owning group, and others.
|
|
350
350
|
* @param options - Optional. Options when setting path permissions.
|
|
@@ -364,7 +364,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
364
364
|
* the methods of {@link DataLakeFileSystemClient} that list paths using the `includeMetadata` option, which
|
|
365
365
|
* will retain their original casing.
|
|
366
366
|
*
|
|
367
|
-
* @see https://learn.microsoft.com/
|
|
367
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-blob-properties
|
|
368
368
|
*
|
|
369
369
|
* @param options - Optional. Options when getting path properties.
|
|
370
370
|
*/
|
|
@@ -379,7 +379,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
379
379
|
*
|
|
380
380
|
* If no value provided, or no value provided for the specified blob HTTP headers,
|
|
381
381
|
* these blob HTTP headers without a value will be cleared.
|
|
382
|
-
* @see https://learn.microsoft.com/
|
|
382
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-blob-properties
|
|
383
383
|
*
|
|
384
384
|
* @param httpHeaders -
|
|
385
385
|
* @param options -
|
|
@@ -402,7 +402,7 @@ export class DataLakePathClient extends StorageClient {
|
|
|
402
402
|
* If no option provided, or no metadata defined in the parameter, the path
|
|
403
403
|
* metadata will be removed.
|
|
404
404
|
*
|
|
405
|
-
* @see https://learn.microsoft.com/
|
|
405
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/set-blob-metadata
|
|
406
406
|
*
|
|
407
407
|
* @param metadata - Optional. Replace existing metadata with this value.
|
|
408
408
|
* If no value provided the existing metadata will be removed.
|
|
@@ -507,7 +507,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
507
507
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
508
508
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
509
509
|
*
|
|
510
|
-
* @see https://learn.microsoft.com/
|
|
510
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
511
511
|
*
|
|
512
512
|
* @param options - Optional parameters.
|
|
513
513
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -525,7 +525,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
525
525
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
526
526
|
* and parameters passed in.
|
|
527
527
|
*
|
|
528
|
-
* @see https://learn.microsoft.com/
|
|
528
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
529
529
|
*
|
|
530
530
|
* @param options - Optional parameters.
|
|
531
531
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -541,7 +541,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
541
541
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
542
542
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
543
543
|
*
|
|
544
|
-
* @see https://learn.microsoft.com/
|
|
544
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
545
545
|
*
|
|
546
546
|
* @param options - Optional parameters.
|
|
547
547
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
@@ -557,7 +557,7 @@ export class DataLakeDirectoryClient extends DataLakePathClient {
|
|
|
557
557
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
558
558
|
* and parameters passed in The SAS is signed by the input user delegation key.
|
|
559
559
|
*
|
|
560
|
-
* @see https://learn.microsoft.com/
|
|
560
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
561
561
|
*
|
|
562
562
|
* @param options - Optional parameters.
|
|
563
563
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
@@ -625,7 +625,7 @@ export class DataLakeFileClient extends DataLakePathClient {
|
|
|
625
625
|
* * In Node.js, data returns in a Readable stream readableStreamBody
|
|
626
626
|
* * In browsers, data returns in a promise contentAsBlob
|
|
627
627
|
*
|
|
628
|
-
* @see https://learn.microsoft.com/
|
|
628
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/get-blob
|
|
629
629
|
*
|
|
630
630
|
* * Example usage (Node.js):
|
|
631
631
|
*
|
|
@@ -716,7 +716,7 @@ export class DataLakeFileClient extends DataLakePathClient {
|
|
|
716
716
|
* Uploads data to be appended to a file. Data can only be appended to a file.
|
|
717
717
|
* To apply perviously uploaded data to a file, call flush.
|
|
718
718
|
*
|
|
719
|
-
* @see https://learn.microsoft.com/
|
|
719
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/datalakestoragegen2/path/update
|
|
720
720
|
*
|
|
721
721
|
* @param body - Content to be uploaded.
|
|
722
722
|
* @param offset - Append offset in bytes.
|
|
@@ -1124,7 +1124,7 @@ export class DataLakeFileClient extends DataLakePathClient {
|
|
|
1124
1124
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
1125
1125
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
1126
1126
|
*
|
|
1127
|
-
* @see https://learn.microsoft.com/
|
|
1127
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
1128
1128
|
*
|
|
1129
1129
|
* @param options - Optional parameters.
|
|
1130
1130
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -1144,7 +1144,7 @@ export class DataLakeFileClient extends DataLakePathClient {
|
|
|
1144
1144
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
1145
1145
|
* and parameters passed in. The SAS is signed by the shared key credential of the client.
|
|
1146
1146
|
*
|
|
1147
|
-
* @see https://learn.microsoft.com/
|
|
1147
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
1148
1148
|
*
|
|
1149
1149
|
* @param options - Optional parameters.
|
|
1150
1150
|
* @returns The SAS URI consisting of the URI to the resource represented by this client, followed by the generated SAS token.
|
|
@@ -1160,7 +1160,7 @@ export class DataLakeFileClient extends DataLakePathClient {
|
|
|
1160
1160
|
* Generates a Service Shared Access Signature (SAS) URI based on the client properties
|
|
1161
1161
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
1162
1162
|
*
|
|
1163
|
-
* @see https://learn.microsoft.com/
|
|
1163
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
1164
1164
|
*
|
|
1165
1165
|
* @param options - Optional parameters.
|
|
1166
1166
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|
|
@@ -1176,7 +1176,7 @@ export class DataLakeFileClient extends DataLakePathClient {
|
|
|
1176
1176
|
* Generates string to sign for a Service Shared Access Signature (SAS) URI based on the client properties
|
|
1177
1177
|
* and parameters passed in. The SAS is signed by the input user delegation key.
|
|
1178
1178
|
*
|
|
1179
|
-
* @see https://learn.microsoft.com/
|
|
1179
|
+
* @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas
|
|
1180
1180
|
*
|
|
1181
1181
|
* @param options - Optional parameters.
|
|
1182
1182
|
* @param userDelegationKey - Return value of `blobServiceClient.getUserDelegationKey()`
|