@azure/storage-file-datalake 12.30.0 → 12.31.0
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/README.md +4 -15
- package/dist/browser/clients.d.ts +36 -32
- package/dist/browser/clients.d.ts.map +1 -1
- package/dist/browser/clients.js +65 -31
- package/dist/browser/clients.js.map +1 -1
- package/dist/browser/generated/src/models/parameters.js +1 -1
- package/dist/browser/generated/src/models/parameters.js.map +1 -1
- package/dist/browser/generated/src/storageClient.js +2 -2
- package/dist/browser/generated/src/storageClient.js.map +1 -1
- package/dist/browser/models.d.ts +160 -1
- package/dist/browser/models.d.ts.map +1 -1
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/sas/DataLakeSASPermissions.d.ts +4 -0
- package/dist/browser/sas/DataLakeSASPermissions.d.ts.map +1 -1
- package/dist/browser/sas/DataLakeSASPermissions.js +10 -0
- package/dist/browser/sas/DataLakeSASPermissions.js.map +1 -1
- package/dist/browser/sas/FileSystemSASPermissions.d.ts +4 -0
- package/dist/browser/sas/FileSystemSASPermissions.d.ts.map +1 -1
- package/dist/browser/sas/FileSystemSASPermissions.js +10 -0
- package/dist/browser/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/browser/utils/constants.js +2 -2
- package/dist/browser/utils/constants.js.map +1 -1
- package/dist/browser/utils/utils.common.d.ts.map +1 -1
- package/dist/browser/utils/utils.common.js +14 -0
- package/dist/browser/utils/utils.common.js.map +1 -1
- package/dist/commonjs/clients.d.ts +36 -32
- package/dist/commonjs/clients.d.ts.map +1 -1
- package/dist/commonjs/clients.js +71 -31
- package/dist/commonjs/clients.js.map +2 -2
- package/dist/commonjs/generated/src/models/parameters.js +1 -1
- package/dist/commonjs/generated/src/models/parameters.js.map +1 -1
- package/dist/commonjs/generated/src/storageClient.js +2 -2
- package/dist/commonjs/generated/src/storageClient.js.map +1 -1
- package/dist/commonjs/models.d.ts +160 -1
- package/dist/commonjs/models.d.ts.map +1 -1
- package/dist/commonjs/models.js.map +2 -2
- package/dist/commonjs/sas/DataLakeSASPermissions.d.ts +4 -0
- package/dist/commonjs/sas/DataLakeSASPermissions.d.ts.map +1 -1
- package/dist/commonjs/sas/DataLakeSASPermissions.js +10 -0
- package/dist/commonjs/sas/DataLakeSASPermissions.js.map +2 -2
- package/dist/commonjs/sas/FileSystemSASPermissions.d.ts +4 -0
- package/dist/commonjs/sas/FileSystemSASPermissions.d.ts.map +1 -1
- package/dist/commonjs/sas/FileSystemSASPermissions.js +10 -0
- package/dist/commonjs/sas/FileSystemSASPermissions.js.map +2 -2
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/utils/constants.js +2 -2
- package/dist/commonjs/utils/constants.js.map +1 -1
- package/dist/commonjs/utils/utils.common.d.ts.map +1 -1
- package/dist/commonjs/utils/utils.common.js +13 -0
- package/dist/commonjs/utils/utils.common.js.map +2 -2
- package/dist/esm/clients.d.ts +36 -32
- package/dist/esm/clients.d.ts.map +1 -1
- package/dist/esm/clients.js +65 -31
- package/dist/esm/clients.js.map +1 -1
- package/dist/esm/generated/src/models/parameters.js +1 -1
- package/dist/esm/generated/src/models/parameters.js.map +1 -1
- package/dist/esm/generated/src/storageClient.js +2 -2
- package/dist/esm/generated/src/storageClient.js.map +1 -1
- package/dist/esm/models.d.ts +160 -1
- package/dist/esm/models.d.ts.map +1 -1
- package/dist/esm/models.js.map +1 -1
- package/dist/esm/sas/DataLakeSASPermissions.d.ts +4 -0
- package/dist/esm/sas/DataLakeSASPermissions.d.ts.map +1 -1
- package/dist/esm/sas/DataLakeSASPermissions.js +10 -0
- package/dist/esm/sas/DataLakeSASPermissions.js.map +1 -1
- package/dist/esm/sas/FileSystemSASPermissions.d.ts +4 -0
- package/dist/esm/sas/FileSystemSASPermissions.d.ts.map +1 -1
- package/dist/esm/sas/FileSystemSASPermissions.js +10 -0
- package/dist/esm/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/esm/utils/constants.js +2 -2
- package/dist/esm/utils/constants.js.map +1 -1
- package/dist/esm/utils/utils.common.d.ts.map +1 -1
- package/dist/esm/utils/utils.common.js +14 -0
- package/dist/esm/utils/utils.common.js.map +1 -1
- package/dist/react-native/clients.d.ts +36 -32
- package/dist/react-native/clients.d.ts.map +1 -1
- package/dist/react-native/clients.js +65 -31
- package/dist/react-native/clients.js.map +1 -1
- package/dist/react-native/generated/src/models/parameters.js +1 -1
- package/dist/react-native/generated/src/models/parameters.js.map +1 -1
- package/dist/react-native/generated/src/storageClient.js +2 -2
- package/dist/react-native/generated/src/storageClient.js.map +1 -1
- package/dist/react-native/models.d.ts +160 -1
- package/dist/react-native/models.d.ts.map +1 -1
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/sas/DataLakeSASPermissions.d.ts +4 -0
- package/dist/react-native/sas/DataLakeSASPermissions.d.ts.map +1 -1
- package/dist/react-native/sas/DataLakeSASPermissions.js +10 -0
- package/dist/react-native/sas/DataLakeSASPermissions.js.map +1 -1
- package/dist/react-native/sas/FileSystemSASPermissions.d.ts +4 -0
- package/dist/react-native/sas/FileSystemSASPermissions.d.ts.map +1 -1
- package/dist/react-native/sas/FileSystemSASPermissions.js +10 -0
- package/dist/react-native/sas/FileSystemSASPermissions.js.map +1 -1
- package/dist/react-native/utils/constants.js +2 -2
- package/dist/react-native/utils/constants.js.map +1 -1
- package/dist/react-native/utils/utils.common.d.ts.map +1 -1
- package/dist/react-native/utils/utils.common.js +14 -0
- package/dist/react-native/utils/utils.common.js.map +1 -1
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/models.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { TransferProgressEvent } from \"@azure/core-rest-pipeline\";\nimport type {\n LeaseAccessConditions,\n ModifiedAccessConditions as ModifiedAccessConditionsModel,\n UserDelegationKeyModel,\n BlobQueryArrowConfiguration,\n ServiceRenameContainerOptions,\n ContainerRenameResponse,\n ContainerUndeleteResponse,\n WithResponse,\n NodeJSReadableStream,\n} from \"@azure/storage-blob\";\nimport type { DataLakePathClient } from \"./clients.js\";\nexport type ModifiedAccessConditions = Omit<ModifiedAccessConditionsModel, \"ifTags\">;\n\n/**\n * Options to query file with Apache Arrow format. Only valid for {@link FileQueryOptions.outputTextConfiguration}.\n */\nexport type FileQueryArrowConfiguration = BlobQueryArrowConfiguration;\n\n/**\n * Options to configure {@link DataLakeServiceClient.renameFileSystem}.\n */\nexport type ServiceRenameFileSystemOptions = ServiceRenameContainerOptions;\n\n/**\n * Contains response data for the {@link DataLakeServiceClient.renameFileSystem} operation.\n */\nexport type FileSystemRenameResponse = ContainerRenameResponse;\n\n/**\n * Contains response data for the {@link DataLakeServiceClient.undeleteFileSystem} operation.\n */\nexport type FileSystemUndeleteResponse = ContainerUndeleteResponse;\n\nimport type {\n CpkInfo,\n FileSystemListBlobHierarchySegmentHeaders,\n FileSystemListPathsHeaders,\n LeaseAction,\n ListBlobsHierarchySegmentResponse,\n PathAppendDataHeaders,\n PathCreateHeaders,\n PathDeleteHeaders,\n PathFlushDataHeaders,\n PathGetPropertiesHeaders as PathGetPropertiesHeadersModel,\n PathList as PathListModel,\n PathSetAccessControlHeaders,\n PathSetExpiryHeaders,\n PathUndeleteHeaders,\n} from \"./generated/src/models/index.js\";\nimport type { DataLakeSASPermissions } from \"./sas/DataLakeSASPermissions.js\";\nimport type { DirectorySASPermissions } from \"./sas/DirectorySASPermissions.js\";\nimport type { FileSystemSASPermissions } from \"./sas/FileSystemSASPermissions.js\";\nimport type { SasIPRange } from \"./sas/SasIPRange.js\";\nimport type { SASProtocol } from \"./sas/SASQueryParameters.js\";\nimport type { CommonOptions } from \"./StorageClient.js\";\nimport type { UserDelegationKey } from \"@azure/storage-common\";\nimport type { StoragePipelineOptions } from \"./Pipeline.js\";\n\nexport {\n type LeaseAccessConditions,\n type UserDelegationKeyModel,\n type ServiceListContainersSegmentResponse,\n type Lease,\n type LeaseOperationOptions,\n type LeaseOperationResponse,\n} from \"@azure/storage-blob\";\n\nexport type {\n BlobHierarchyListSegment,\n BlobItemModel,\n BlobPrefix,\n BlobPropertiesModel,\n CpkInfo,\n EncryptionAlgorithmType,\n FileSystemListPathsHeaders,\n FileSystemListBlobHierarchySegmentHeaders,\n ListBlobsHierarchySegmentResponse,\n Path as PathModel,\n PathList as PathListModel,\n PathCreateHeaders,\n PathDeleteHeaders,\n PathGetPropertiesHeaders as PathGetPropertiesHeadersModel,\n PathSetAccessControlHeaders,\n PathResourceType as PathResourceTypeModel,\n PathUndeleteHeaders,\n PathUpdateHeaders,\n PathAppendDataHeaders,\n PathFlushDataHeaders,\n PathGetPropertiesAction as PathGetPropertiesActionModel,\n PathRenameMode as PathRenameModeModel,\n PathExpiryOptions as FileExpiryMode,\n PathSetExpiryHeaders as FileSetExpiryHeaders,\n} from \"./generated/src/models/index.js\";\n\nexport type PathCreateResponse = WithResponse<PathCreateHeaders, PathCreateHeaders>;\nexport type PathDeleteResponse = WithResponse<PathDeleteHeaders, PathDeleteHeaders>;\nexport type FileFlushResponse = WithResponse<PathFlushDataHeaders, PathFlushDataHeaders>;\nexport type FileUploadResponse = WithResponse<PathFlushDataHeaders, PathFlushDataHeaders>;\nexport type PathSetAccessControlResponse = WithResponse<\n PathSetAccessControlHeaders,\n PathSetAccessControlHeaders\n>;\nexport type PathSetPermissionsResponse = WithResponse<\n PathSetAccessControlHeaders,\n PathSetAccessControlHeaders\n>;\nexport type FileAppendResponse = WithResponse<PathAppendDataHeaders, PathAppendDataHeaders>;\nexport type FileSetExpiryResponse = WithResponse<PathSetExpiryHeaders, PathSetExpiryHeaders>;\n\n/**\n * Common options of the {@link FileSystemGenerateSasUrlOptions}, {@link DirectoryGenerateSasUrlOptions}\n * and {@link FileGenerateSasUrlOptions}.\n */\nexport interface CommonGenerateSasUrlOptions {\n /**\n * The version of the service this SAS will target. If not specified, it will default to the version targeted by the\n * library.\n */\n version?: string;\n\n /**\n * Optional. SAS protocols, HTTPS only or HTTPSandHTTP\n */\n protocol?: SASProtocol;\n\n /**\n * Optional. When the SAS will take effect.\n */\n startsOn?: Date;\n\n /**\n * Optional only when identifier is provided. The time after which the SAS will no longer work.\n */\n expiresOn?: Date;\n\n /**\n * Optional. IP ranges allowed in this SAS.\n */\n ipRange?: SasIPRange;\n\n /**\n * Optional. The name of the access policy on the container this SAS references if any.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/establishing-a-stored-access-policy\n */\n identifier?: string;\n\n /**\n * Optional. Encryption scope to use when sending requests authorized with this SAS URI.\n */\n encryptionScope?: string;\n\n /**\n * Optional. The cache-control header for the SAS.\n */\n cacheControl?: string;\n\n /**\n * Optional. The content-disposition header for the SAS.\n */\n contentDisposition?: string;\n\n /**\n * Optional. The content-encoding header for the SAS.\n */\n contentEncoding?: string;\n\n /**\n * Optional. The content-language header for the SAS.\n */\n contentLanguage?: string;\n\n /**\n * Optional. The content-type header for the SAS.\n */\n contentType?: string;\n\n /**\n * Request headers used in generating a SAS token\n */\n requestHeaders?: RequestHeaders;\n /**\n * Request query parameters used in generating a SAS token\n */\n requestQueryParameters?: RequestQueryParameters;\n}\n\n/** ***********************************************************/\n/** DataLakeServiceClient option and response related models */\n/** ***********************************************************/\n\nexport interface ServiceGetUserDelegationKeyOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Parameters for getting user delegation key.\n */\nexport interface DataLakeGetUserDelegationKeyParameters {\n /**\n * The start time for the user delegation key. Must be within 7 days of the current time\n */\n startsOn: Date;\n /**\n * The end time for the user delegation key. Must be within 7 days of the current time\n */\n expiresOn: Date;\n /**\n * The tenant ID for the user delegation key.\n */\n delegatedUserTenantId: string;\n}\n\n// TODO: Leverage interface definitions from blob package directly, or duplicate create a copy here which will not have generation benefits\nexport interface ServiceGetUserDelegationKeyHeaders {\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type ServiceGetUserDelegationKeyResponse = WithResponse<\n UserDelegationKey & ServiceGetUserDelegationKeyHeaders,\n ServiceGetUserDelegationKeyHeaders,\n UserDelegationKeyModel\n>;\n\nexport interface ServiceListFileSystemsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n prefix?: string;\n includeMetadata?: boolean;\n\n /**\n * Specifies whether soft deleted File System should be included in the response.\n */\n includeDeleted?: boolean;\n}\n\nexport type LeaseStatusType = \"locked\" | \"unlocked\";\nexport type LeaseStateType = \"available\" | \"leased\" | \"expired\" | \"breaking\" | \"broken\";\nexport type LeaseDurationType = \"infinite\" | \"fixed\";\nexport type PublicAccessType = \"filesystem\" | \"file\";\n\nexport interface FileSystemProperties {\n lastModified: Date;\n etag: string;\n leaseStatus?: LeaseStatusType;\n leaseState?: LeaseStateType;\n leaseDuration?: LeaseDurationType;\n publicAccess?: PublicAccessType;\n hasImmutabilityPolicy?: boolean;\n hasLegalHold?: boolean;\n defaultEncryptionScope?: string;\n deletedOn?: Date;\n remainingRetentionDays?: number;\n}\n\nexport interface FileSystemItem {\n name: string;\n properties: FileSystemProperties;\n metadata?: Metadata;\n deleted?: boolean;\n versionId?: string;\n}\n\nexport interface ListFileSystemsSegmentResponse {\n serviceEndpoint: string;\n prefix?: string;\n marker?: string;\n maxPageSize?: number;\n fileSystemItems: FileSystemItem[];\n continuationToken?: string;\n}\n\nexport interface ServiceListFileSystemsSegmentHeaders {\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n}\n\nexport type ServiceListFileSystemsSegmentResponse = WithResponse<\n ListFileSystemsSegmentResponse & ServiceListFileSystemsSegmentHeaders,\n ServiceListFileSystemsSegmentHeaders,\n ListFileSystemsSegmentResponse\n>;\n\n/**\n * Options to configure {@link DataLakeServiceClient.generateAccountSasUrl} operation.\n */\nexport interface ServiceGenerateAccountSasUrlOptions {\n /**\n * The version of the service this SAS will target. If not specified, it will default to the version targeted by the\n * library.\n */\n version?: string;\n\n /**\n * Optional. SAS protocols allowed.\n */\n protocol?: SASProtocol;\n\n /**\n * Optional. When the SAS will take effect.\n */\n startsOn?: Date;\n /**\n * Optional. IP range allowed.\n */\n ipRange?: SasIPRange;\n /**\n * Optional. Encryption scope to use when sending requests authorized with this SAS URI.\n */\n encryptionScope?: string;\n}\n\n/**\n * Options to configure {@link DataLakeServiceClient.undeleteFileSystem}.\n */\nexport interface ServiceUndeleteFileSystemOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n\n /**\n * Optional. Specifies the new name of the restored File System.\n * Will use its original name if this is not specified.\n * @deprecated Restore FileSystem to a different name is not supported by service anymore.\n */\n destinationFileSystemName?: string;\n}\n\n/** **************************************************************/\n/** DataLakeFileSystemClient option and response related models */\n/** **************************************************************/\n\nexport interface FileSystemCreateOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n metadata?: Metadata;\n access?: PublicAccessType;\n /**\n * File System encryption scope info.\n */\n fileSystemEncryptionScope?: FileSystemEncryptionScope;\n}\n\nexport interface FileSystemCreateHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type FileSystemCreateResponse = WithResponse<\n FileSystemCreateHeaders,\n FileSystemCreateHeaders\n>;\n\nexport interface FileSystemDeleteOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface FileSystemDeleteHeaders {\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type FileSystemDeleteResponse = WithResponse<\n FileSystemDeleteHeaders,\n FileSystemDeleteHeaders\n>;\n\nexport interface FileSystemGetPropertiesOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: LeaseAccessConditions;\n}\n\nexport interface FileSystemGetPropertiesHeaders {\n metadata?: Metadata;\n etag?: string;\n lastModified?: Date;\n leaseDuration?: LeaseDurationType;\n leaseState?: LeaseStateType;\n leaseStatus?: LeaseStatusType;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n publicAccess?: PublicAccessType;\n hasImmutabilityPolicy?: boolean;\n hasLegalHold?: boolean;\n /**\n * The default encryption scope for the file system.\n */\n defaultEncryptionScope?: string;\n}\n\nexport type FileSystemGetPropertiesResponse = WithResponse<\n FileSystemGetPropertiesHeaders,\n FileSystemGetPropertiesHeaders\n>;\n\nexport interface FileSystemSetMetadataOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface FileSystemSetMetadataHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type FileSystemSetMetadataResponse = WithResponse<\n FileSystemSetMetadataHeaders,\n FileSystemSetMetadataHeaders\n>;\n\nexport interface FileSystemGetAccessPolicyOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: LeaseAccessConditions;\n}\n\nexport interface FileSystemGetAccessPolicyHeaders {\n publicAccess?: PublicAccessType;\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport interface RawAccessPolicy {\n startsOn?: string;\n expiresOn?: string;\n permissions: string;\n}\n\nexport interface AccessPolicy {\n startsOn?: Date;\n expiresOn?: Date;\n permissions: string;\n}\n\nexport interface SignedIdentifier<T> {\n id: string;\n accessPolicy: T;\n}\n\nexport type FileSystemGetAccessPolicyResponse = WithResponse<\n {\n signedIdentifiers: SignedIdentifier<AccessPolicy>[];\n } & FileSystemGetAccessPolicyHeaders,\n FileSystemGetAccessPolicyHeaders,\n SignedIdentifier<RawAccessPolicy>[]\n>;\n\nexport interface FileSystemSetAccessPolicyOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface FileSystemSetAccessPolicyHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type FileSystemSetAccessPolicyResponse = WithResponse<\n FileSystemSetAccessPolicyHeaders,\n FileSystemSetAccessPolicyHeaders\n>;\n\nexport interface ListPathsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n recursive?: boolean;\n path?: string;\n userPrincipalName?: boolean;\n /** Optional.\n * A relative path within the specified directory where the listing will start from.\n * For example, a recursive listing under directory folder1/folder2 with startFrom as folder3/readmefile.txt will start listing from folder1/folder2/folder3/readmefile.txt.\n * Please note that, multiple entity levels are supported for recursive listing. Non-recursive listing supports only one entity level.\n * An error will appear if multiple entity levels are specified for non-recursive listing. */\n startFrom?: string;\n}\n\nexport interface ListPathsSegmentOptions extends ListPathsOptions {\n maxResults?: number;\n}\n\nexport interface Path {\n name?: string;\n isDirectory?: boolean;\n lastModified?: Date;\n etag?: string;\n contentLength?: number;\n owner?: string;\n group?: string;\n permissions?: PathPermissions;\n /**\n * The name of the encryption scope under which the blob is encrypted.\n */\n encryptionScope?: string;\n /**\n * Creation time of the path.\n */\n createdOn?: Date;\n /**\n * Expiry time of the path.\n */\n expiresOn?: Date;\n /**\n * Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n}\n\nexport interface PathList {\n pathItems?: Path[];\n}\n\nexport type FileSystemListPathsResponse = WithResponse<\n PathList & FileSystemListPathsHeaders,\n FileSystemListPathsHeaders,\n PathListModel\n>;\n\nexport interface ListDeletedPathsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n /** Filters results to filesystems within the specified prefix. */\n prefix?: string;\n}\n\nexport interface ListDeletedPathsSegmentOptions extends ListDeletedPathsOptions {\n maxResults?: number;\n}\n\nexport interface DeletedPath {\n name: string;\n deletionId?: string;\n deletedOn?: Date;\n remainingRetentionDays?: number;\n}\n\nexport interface DeletedPathList {\n pathItems?: DeletedPath[];\n}\n\nexport type FileSystemListDeletedPathsResponse = WithResponse<\n DeletedPathList &\n FileSystemListBlobHierarchySegmentHeaders &\n ListBlobsHierarchySegmentResponse & { continuation?: string },\n FileSystemListBlobHierarchySegmentHeaders,\n ListBlobsHierarchySegmentResponse\n>;\n\nexport interface FileSystemUndeletePathOption extends CommonOptions {\n abortSignal?: AbortSignalLike;\n}\n\nexport type FileSystemUndeletePathResponse = WithResponse<\n PathUndeleteHeaders & { pathClient: DataLakePathClient },\n PathUndeleteHeaders\n>;\n\n/**\n * Option interface for Data Lake file system exists operations\n *\n * See:\n * - {@link DataLakeFileSystemClient.exists}\n */\nexport interface FileSystemExistsOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Contains response data for the {@link DataLakeFileSystemClient.createIfNotExists} operation.\n */\nexport interface FileSystemCreateIfNotExistsResponse extends FileSystemCreateResponse {\n /**\n * Indicate whether the file system is successfully created. Is false when the file system is not changed as it already exists.\n */\n succeeded: boolean;\n}\n\n/**\n * Contains response data for the {@link DataLakeFileSystemClient.deleteIfExists} operation.\n */\nexport interface FileSystemDeleteIfExistsResponse extends FileSystemDeleteResponse {\n /**\n * Indicate whether the file system is successfully deleted. Is false if the file system doesn't exist in the first place.\n */\n succeeded: boolean;\n}\n\n/**\n * Options to configure {@link DataLakeFileSystemClient.generateSasUrl} operation.\n */\nexport interface FileSystemGenerateSasUrlOptions extends CommonGenerateSasUrlOptions {\n /**\n * Optional only when identifier is provided. Specifies the list of permissions to be associated with the SAS.\n */\n permissions?: FileSystemSASPermissions;\n}\n\n/** ********************************************************/\n/** DataLakePathClient option and response related models */\n/** ********************************************************/\n\nexport interface Metadata {\n [propertyName: string]: string;\n}\n\nexport interface DataLakeRequestConditions\n extends ModifiedAccessConditions, LeaseAccessConditions {}\n\nexport interface RolePermissions {\n read: boolean;\n write: boolean;\n execute: boolean;\n}\n\nexport interface PathPermissions {\n owner: RolePermissions;\n group: RolePermissions;\n other: RolePermissions;\n stickyBit: boolean;\n extendedAcls: boolean;\n}\n\nexport type AccessControlType = \"user\" | \"group\" | \"mask\" | \"other\";\n\nexport interface RemovePathAccessControlItem {\n /**\n * Indicates whether this is the default entry for the ACL.\n */\n defaultScope: boolean;\n /**\n * Specifies which role this entry targets.\n */\n accessControlType: AccessControlType;\n /**\n * Specifies the entity for which this entry applies.\n * Must be omitted for types mask or other. It must also be omitted when the user or group is the owner.\n */\n entityId?: string;\n}\n\nexport interface PathAccessControlItem {\n /**\n * Indicates whether this is the default entry for the ACL.\n */\n defaultScope: boolean;\n /**\n * Specifies which role this entry targets.\n */\n accessControlType: AccessControlType;\n /**\n * Specifies the entity for which this entry applies.\n */\n entityId: string;\n /**\n * Access control permissions.\n */\n permissions: RolePermissions;\n}\n\nexport interface PathCreateHttpHeaders {\n cacheControl?: string;\n contentEncoding?: string;\n contentLanguage?: string;\n contentDisposition?: string;\n contentType?: string;\n}\n\nexport interface PathCreateOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n metadata?: Metadata;\n permissions?: string; // TODO: model or string?\n umask?: string; // TODO: model or string?\n /**\n * Optional. The owner of the blob or directory.\n */\n owner?: string;\n /**\n * Optional. The owning group of the blob or directory.\n */\n group?: string;\n /**\n * Optional. POSIX access control rights on files and directories.\n */\n acl?: PathAccessControlItem[];\n conditions?: DataLakeRequestConditions;\n pathHttpHeaders?: PathCreateHttpHeaders;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.\n */\n proposedLeaseId?: string;\n /**\n * The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.\n */\n leaseDuration?: number;\n /**\n * Optional. Options for scheduling the deletion of a path.\n * A number value indicates duration before file should be deleted in milliseconds.\n * A Date value indicates the time to set for when the path will be deleted.\n * Does not apply to directories.\n */\n expiresOn?: number | Date;\n /**\n * Optional. Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n}\n\nexport interface PathCreateIfNotExistsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n metadata?: Metadata;\n permissions?: string;\n umask?: string;\n /**\n * Optional. The owner of the blob or directory.\n */\n owner?: string;\n /**\n * Optional. The owning group of the blob or directory.\n */\n group?: string;\n /**\n * Optional. POSIX access control rights on files and directories.\n */\n acl?: PathAccessControlItem[];\n pathHttpHeaders?: PathCreateHttpHeaders;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.\n */\n proposedLeaseId?: string;\n /**\n * The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.\n */\n leaseDuration?: number;\n /**\n * Optional. Options for scheduling the deletion of a path.\n * A number value indicates duration before file should be deleted in milliseconds.\n * A Date value indicates the time to set for when the path will be deleted.\n * Does not apply to directories.\n */\n expiresOn?: number | Date;\n /**\n * Optional. Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n}\n\nexport interface PathDeleteOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface PathGetAccessControlOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n userPrincipalName?: boolean;\n}\n\nexport interface PathGetAccessControlHeaders {\n date?: Date;\n etag?: string;\n lastModified?: Date;\n owner?: string;\n group?: string;\n requestId?: string;\n version?: string;\n}\n\nexport interface PathAccessControl {\n owner?: string;\n group?: string;\n permissions?: PathPermissions;\n /**\n * POSIX access control rights on files and directories.\n */\n acl: PathAccessControlItem[];\n}\n\nexport type PathGetAccessControlResponse = WithResponse<\n PathAccessControl & PathGetAccessControlHeaders,\n PathGetPropertiesHeadersModel\n>;\n\nexport interface PathSetAccessControlOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n owner?: string;\n group?: string;\n}\n\n/**\n * Options type for `setAccessControlRecursive`, `updateAccessControlRecursive` and `removeAccessControlRecursive`.\n */\nexport interface PathChangeAccessControlRecursiveOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Optional. If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked.\n * Batch size should be between 1 and 2000. The default when unspecified is 2000.\n */\n batchSize?: number;\n /**\n * Optional. Defines maximum number of batches that single change Access Control operation can execute.\n * If maximum is reached before all subpaths are processed then continuation token can be used to resume operation.\n * Empty value indicates that maximum number of batches in unbound and operation continues till end.\n */\n maxBatches?: number;\n /**\n * Optional. Default false. If set to false, the operation will terminate quickly on encountering user failures.\n * If true, the operation will ignore user failures and proceed with the operation on other sub-entities of the directory.\n */\n continueOnFailure?: boolean;\n /**\n * Continuation token to continue next batch of operations.\n */\n continuationToken?: string;\n /**\n * Callback where caller can track progress of the operation\n * as well as collect paths that failed to change Access Control.\n */\n onProgress?: (progress: AccessControlChanges) => void;\n}\n\n/**\n * Represents an entry that failed to update Access Control List during `setAccessControlRecursive`, `updateAccessControlRecursive` and `removeAccessControlRecursive`.\n */\nexport interface AccessControlChangeError {\n /**\n * Returns name of an entry.\n */\n name: string;\n /**\n * Returns whether entry is a directory.\n */\n isDirectory: boolean;\n /**\n * Returns error message that is the reason why entry failed to update.\n */\n message: string;\n}\n\n/**\n * AccessControlChanges contains batch and cumulative counts of operations that change Access Control Lists recursively.\n * Additionally it exposes path entries that failed to update while these operations progress.\n */\nexport interface AccessControlChanges {\n /**\n * Path entries that failed to update Access Control List within single batch.\n */\n batchFailures: AccessControlChangeError[];\n /**\n * Counts of paths changed within single batch.\n */\n batchCounters: AccessControlChangeCounters;\n /**\n * Counts of paths changed from start of the operation.\n */\n aggregateCounters: AccessControlChangeCounters;\n /**\n * Optional. Value is present when operation is split into multiple batches and can be used to resume progress.\n */\n continuationToken?: string;\n}\n\n/**\n * AccessControlChangeCounters contains counts of operations that change Access Control Lists recursively.\n */\nexport interface AccessControlChangeCounters {\n /**\n * Returns number of directories where Access Control List has been updated successfully.\n */\n changedDirectoriesCount: number;\n /**\n * Returns number of files where Access Control List has been updated successfully.\n */\n changedFilesCount: number;\n /**\n * Returns number of paths where Access Control List update has failed.\n */\n failedChangesCount: number;\n}\n\n/**\n * Response type for `setAccessControlRecursive`, `updateAccessControlRecursive` and `removeAccessControlRecursive`.\n */\nexport interface PathChangeAccessControlRecursiveResponse {\n /**\n * Contains counts of paths changed from start of the operation.\n */\n counters: AccessControlChangeCounters;\n /**\n * Optional. Value is present when operation is split into multiple batches and can be used to resume progress.\n */\n continuationToken?: string;\n}\n\nexport interface PathSetPermissionsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n owner?: string;\n group?: string;\n}\n\nexport interface PathGetPropertiesOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\nexport type CopyStatusType = \"pending\" | \"success\" | \"aborted\" | \"failed\";\n\nexport interface PathGetPropertiesHeaders {\n lastModified?: Date;\n createdOn?: Date;\n metadata?: Metadata;\n copyCompletedOn?: Date;\n copyStatusDescription?: string;\n copyId?: string;\n copyProgress?: string;\n copySource?: string;\n copyStatus?: CopyStatusType;\n isIncrementalCopy?: boolean;\n destinationSnapshot?: string;\n leaseDuration?: LeaseDurationType;\n leaseState?: LeaseStateType;\n leaseStatus?: LeaseStatusType;\n contentLength?: number;\n contentType?: string;\n etag?: string;\n contentMD5?: Uint8Array;\n contentEncoding?: string;\n contentDisposition?: string;\n contentLanguage?: string;\n cacheControl?: string;\n // blobSequenceNumber?: number;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n acceptRanges?: string;\n // blobCommittedBlockCount?: number;\n isServerEncrypted?: boolean;\n encryptionKeySha256?: string;\n /**\n * Returns the name of the encryption scope used to encrypt the path contents and application metadata.\n * Note that the absence of this header implies use of the default account encryption scope.\n */\n encryptionScope?: string;\n accessTier?: string;\n accessTierInferred?: boolean;\n archiveStatus?: string;\n accessTierChangedOn?: Date;\n\n /**\n * The time the file will expire.\n */\n expiresOn?: Date;\n /**\n * Optional. Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n owner?: string;\n group?: string;\n permissions?: PathPermissions;\n /**\n * POSIX access control rights on files and directories.\n */\n acl: PathAccessControlItem[];\n}\n\nexport type PathGetPropertiesResponse = WithResponse<\n PathGetPropertiesHeaders,\n PathGetPropertiesHeaders\n>;\n\nexport interface PathSetHttpHeadersOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface PathHttpHeaders {\n cacheControl?: string;\n contentEncoding?: string;\n contentLanguage?: string;\n contentDisposition?: string;\n contentType?: string;\n contentMD5?: Uint8Array;\n /** Specify the transactional md5 for the body, to be validated by the service. */\n transactionalContentHash?: Uint8Array;\n}\n\nexport interface PathSetHttpHeadersHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type PathSetHttpHeadersResponse = WithResponse<\n PathSetHttpHeadersHeaders,\n PathSetHttpHeadersHeaders\n>;\n\nexport interface PathSetMetadataOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\nexport interface PathSetMetadataHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n isServerEncrypted?: boolean;\n encryptionKeySha256?: string;\n}\n\nexport type PathSetMetadataResponse = WithResponse<PathSetMetadataHeaders, PathSetMetadataHeaders>;\n\nexport interface PathMoveOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n destinationConditions?: DataLakeRequestConditions;\n}\n\nexport interface PathRemoveHeaders {\n date?: Date;\n etag?: string;\n lastModified?: Date;\n requestId?: string;\n version?: string;\n contentLength?: number;\n}\n\nexport type PathMoveResponse = WithResponse<PathRemoveHeaders, PathRemoveHeaders>;\n\n/**\n * Option interface for Data Lake directory/file exists operations\n *\n * See:\n * - {@link DataLakePathClient.exists}\n */\nexport interface PathExistsOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\n/**\n * Contains response data for the {@link DataLakePathClient.createIfNotExists} operation.\n */\nexport interface PathCreateIfNotExistsResponse extends PathCreateResponse {\n /**\n * Indicate whether the directory/file is successfully created. Is false when the directory/file is not changed as it already exists.\n */\n succeeded: boolean;\n}\n\n/**\n * Contains response data for the {@link DataLakePathClient.deleteIfExists} operation.\n */\nexport interface PathDeleteIfExistsResponse extends PathDeleteResponse {\n /**\n * Indicate whether the directory/file is successfully deleted. Is false if the directory/file doesn't exist in the first place.\n */\n succeeded: boolean;\n}\n\n// Keeping these for backward compatibility when we changed to use string unions.\n/**\n * Defines values for PathGetPropertiesAction.\n * Possible values include: 'getAccessControl', 'getStatus'\n * @readonly\n */\nexport enum PathGetPropertiesAction {\n GetAccessControl = \"getAccessControl\",\n GetStatus = \"getStatus\",\n}\n/**\n * Defines values for PathRenameMode.\n * Possible values include: 'legacy', 'posix'\n * @readonly\n */\nexport enum PathRenameMode {\n Legacy = \"legacy\",\n Posix = \"posix\",\n}\n/**\n * Defines values for PathResourceType.\n * Possible values include: 'directory', 'file'\n * @readonly\n */\nexport enum PathResourceType {\n Directory = \"directory\",\n File = \"file\",\n}\n\n/** **************************************************************/\n/** DataLakeDirectoryClient option and response related models **/\n/** **************************************************************/\n\nexport interface DirectoryCreateOptions extends PathCreateOptions {}\n\nexport interface DirectoryCreateIfNotExistsOptions extends PathCreateIfNotExistsOptions {}\n\nexport interface DirectoryCreateResponse extends PathCreateResponse {}\n\nexport interface DirectoryCreateIfNotExistsResponse extends PathCreateIfNotExistsResponse {}\n\n/**\n * Options to configure {@link DataLakeDirectoryClient.generateSasUrl} operation.\n */\nexport interface DirectoryGenerateSasUrlOptions extends CommonGenerateSasUrlOptions {\n /**\n * Optional only when identifier is provided. Specifies the list of permissions to be associated with the SAS.\n */\n permissions?: DirectorySASPermissions;\n}\n\n/** *********************************************************/\n/** DataLakeFileClient option and response related models **/\n/** *********************************************************/\n\nexport interface FileReadOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n rangeGetContentMD5?: boolean;\n rangeGetContentCrc64?: boolean;\n /**\n * Options to indication which algorithm to use for content validation in downloading.\n */\n contentChecksumAlgorithm?: StorageChecksumAlgorithm;\n conditions?: DataLakeRequestConditions;\n onProgress?: (progress: TransferProgressEvent) => void;\n maxRetryRequests?: number;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\nexport interface FileReadHeaders {\n lastModified?: Date;\n /**\n * Returns the date and time the file was created.\n */\n createdOn?: Date;\n metadata?: Metadata;\n contentLength?: number;\n contentType?: string;\n contentRange?: string;\n etag?: string;\n contentMD5?: Uint8Array;\n contentEncoding?: string;\n cacheControl?: string;\n contentDisposition?: string;\n contentLanguage?: string;\n // blobSequenceNumber?: number;\n copyCompletedOn?: Date;\n copyStatusDescription?: string;\n copyId?: string;\n copyProgress?: string;\n copySource?: string;\n copyStatus?: CopyStatusType;\n leaseDuration?: LeaseDurationType;\n leaseState?: LeaseStateType;\n leaseStatus?: LeaseStatusType;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n acceptRanges?: string;\n date?: Date;\n // blobCommittedBlockCount?: number;\n isServerEncrypted?: boolean;\n encryptionKeySha256?: string;\n fileContentMD5?: Uint8Array; // Content MD5 for whole file\n contentCrc64?: Uint8Array;\n /**\n * Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n owner?: string;\n group?: string;\n permissions?: PathPermissions;\n /**\n * POSIX access control rights on files and directories.\n */\n acl: PathAccessControlItem[];\n /** Indicates the response body contains a structured message and specifies the message schema version and properties. */\n structuredBodyType?: string;\n /** The length of the blob/file content inside the message body when the response body is returned as a structured message. Will always be smaller than Content-Length. */\n structuredContentLength?: number;\n}\n\nexport type FileReadResponse = WithResponse<\n FileReadHeaders & {\n contentAsBlob?: Promise<Blob>;\n readableStreamBody?: NodeJSReadableStream;\n },\n FileReadHeaders\n>;\n\nexport interface FileAppendOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: LeaseAccessConditions;\n transactionalContentMD5?: Uint8Array;\n onProgress?: (progress: TransferProgressEvent) => void;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * If file should be flushed automatically after the append\n */\n flush?: boolean;\n\n /**\n * Options to indication which algorithm to use for content validation in uploading.\n */\n contentChecksumAlgorithm?: StorageChecksumAlgorithm;\n /**\n * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.\n * */\n proposedLeaseId?: string;\n /**\n * The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.\n * */\n leaseDurationInSeconds?: number;\n /**\n * Optional. If \"acquire\" it will acquire the lease. If \"auto-renew\" it will renew the lease. If \"release\" it will release the lease only on flush. If \"acquire-release\" it will acquire & complete the operation & release the lease once operation is done.\n * */\n leaseAction?: LeaseAction;\n}\n\nexport interface FileFlushOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n retainUncommittedData?: boolean;\n close?: boolean;\n pathHttpHeaders?: PathHttpHeaders;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.\n */\n proposedLeaseId?: string;\n /**\n * The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.\n */\n leaseDurationInSeconds?: number;\n /**\n * Optional. If \"acquire\" it will acquire the lease. If \"auto-renew\" it will renew the lease. If \"release\" it will release the lease only on flush. If \"acquire-release\" it will acquire & complete the operation & release the lease once operation is done.\n */\n leaseAction?: LeaseAction;\n}\n\nexport interface FileCreateOptions extends PathCreateOptions {}\n\nexport interface FileCreateIfNotExistsOptions extends PathCreateIfNotExistsOptions {}\n\nexport interface FileCreateResponse extends PathCreateResponse {}\n\nexport interface FileCreateIfNotExistsResponse extends PathCreateIfNotExistsResponse {}\n\n/**\n * Option interface for Data Lake file - Upload operations\n *\n * See:\n * - {@link DataLakeFileClient.upload}\n * - {@link DataLakeFileClient.uploadFile}\n * - {@link DataLakeFileClient.uploadStream}\n */\nexport interface FileParallelUploadOptions extends CommonOptions {\n // For all.\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n\n /**\n * Access conditions headers.\n */\n conditions?: DataLakeRequestConditions;\n\n // For create and flush.\n /**\n * Http headers.\n */\n pathHttpHeaders?: PathHttpHeaders;\n\n // For create.\n /**\n * A collection of key-value string pair to associate with the Data Lake file.\n */\n metadata?: Metadata;\n\n /**\n * Sets POSIX access permissions for the file owner, the file owning group, and others.\n * Each class may be granted read, write, or execute permission. The sticky bit is also supported.\n * Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported.\n */\n permissions?: string; // TODO: model or string?\n\n /**\n * The umask restricts the permissions of the file to be created.\n * The resulting permission is given by p & ^u, where p is the permission and u is the umask.\n * For example, if p is 0777 and u is 0057, then the resulting permission is 0720.\n * The default permission is 0666 for a file. The default umask is 0027.\n * The umask must be specified in 4-digit octal notation (e.g. 0766).\n */\n umask?: string; // TODO: model or string?\n\n // For append.\n /**\n * Progress updater.\n */\n onProgress?: (progress: TransferProgressEvent) => void;\n\n // For flush.\n /**\n * When Azure Storage Events are enabled, a file changed event is raised.\n * This event has a property indicating whether this is the final change\n * to distinguish the difference between an intermediate flush to a file stream (when close set to \"false\")\n * and the final close of a file stream (when close set to \"true\").\n */\n close?: boolean;\n\n /**\n * Options to indication which algorithm to use for content validation in uploading.\n */\n contentChecksumAlgorithm?: StorageChecksumAlgorithm;\n\n // For parallel transfer control.\n\n /**\n * Data size threshold in bytes to use a single upload operation rather than parallel uploading.\n * Data of smaller size than this limit will be transferred in a single upload.\n * Data larger than this limit will be transferred in chunks in parallel.\n * Its default and max value is FILE_MAX_SINGLE_UPLOAD_THRESHOLD.\n * Note: {@link DataLakeFileClient.uploadStream} do not respect this field and always do parallel uploading.\n */\n singleUploadThreshold?: number;\n\n /**\n * The size of data in bytes that will be transferred in parallel.\n * If set to 0 or undefined, it will be automatically calculated according\n * to the data size. Its max value is FILE_UPLOAD_MAX_CHUNK_SIZE.\n */\n chunkSize?: number;\n /**\n * Max concurrency of parallel uploading. Must be greater than or equal to 0. Its default value is DEFAULT_HIGH_LEVEL_CONCURRENCY.\n */\n maxConcurrency?: number;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n}\n\n/**\n * Option interface for Data Lake file - readToBuffer operations\n *\n * See:\n * - {@link DataLakeFileClient.readToBuffer}\n */\nexport interface FileReadToBufferOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n\n /**\n * Access conditions headers.\n */\n conditions?: DataLakeRequestConditions;\n\n /**\n * Progress updater.\n */\n onProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * How many retries will perform for each read when the original chunk read stream ends unexpectedly.\n * Above kind of ends will not trigger retry policy defined in a pipeline,\n * because they doesn't emit network errors. Default value is 5.\n */\n maxRetryRequestsPerChunk?: number;\n /**\n * Options to indication which algorithm to use for content validation in downloading.\n */\n contentChecksumAlgorithm?: StorageChecksumAlgorithm;\n\n /**\n * chunkSize is size of data every request trying to read.\n * Must be greater than or equal to 0, if set to 0 or undefined, it will automatically calculated according\n * to the file size.\n */\n chunkSize?: number;\n\n /**\n * Concurrency of parallel read.\n */\n concurrency?: number;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\n/**\n * Options to query file with JSON format.\n */\nexport interface FileQueryJsonTextConfiguration {\n /**\n * Record separator.\n */\n recordSeparator: string;\n /**\n * Query for a JSON format file.\n */\n kind: \"json\";\n}\n\n/**\n * Options to query file with CSV format.\n */\nexport interface FileQueryCsvTextConfiguration {\n /**\n * Record separator.\n */\n recordSeparator: string;\n /**\n * Query for a CSV format file.\n */\n kind: \"csv\";\n /**\n * Column separator. Default is \",\".\n */\n columnSeparator?: string;\n /**\n * Field quote.\n */\n fieldQuote?: string;\n /**\n * Escape character.\n */\n escapeCharacter?: string;\n /**\n * Has headers. Default is false.\n */\n hasHeaders?: boolean;\n}\n\n/**\n * Options to query file with Parquet format.\n */\nexport interface FileQueryParquetConfiguration {\n /**\n * Kind.\n */\n kind: \"parquet\";\n}\n\n/**\n * File query error type.\n */\nexport interface FileQueryError {\n /**\n * Whether the error is fatal or not. A fatal error will stop the query.\n */\n isFatal: boolean;\n /**\n * Error name.\n */\n name: string;\n /**\n * Position in bytes of the query.\n */\n position: number;\n /**\n * Error description.\n */\n description: string;\n}\n\n/**\n * Option interface for Data Lake file - query operations\n *\n * See:\n * - {@link DataLakeFileClient.query}\n */\nexport interface FileQueryOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Configurations for the query input.\n */\n inputTextConfiguration?:\n | FileQueryJsonTextConfiguration\n | FileQueryCsvTextConfiguration\n | FileQueryParquetConfiguration;\n /**\n * Configurations for the query output.\n */\n outputTextConfiguration?:\n | FileQueryJsonTextConfiguration\n | FileQueryCsvTextConfiguration\n | FileQueryArrowConfiguration;\n /**\n * Callback to receive events on the progress of query operation.\n */\n onProgress?: (progress: TransferProgressEvent) => void;\n /**\n * Callback to receive error events during the query operaiton.\n */\n onError?: (error: FileQueryError) => void;\n /**\n * Conditions to meet when uploading to the block file.\n */\n conditions?: DataLakeRequestConditions;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\n/**\n * Option interface for the {@link DataLakeFileClient.setExpiry} operation.\n */\nexport interface FileSetExpiryOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n\n /**\n * The time to set the file to expire on, used in combination with the \"Absolute\" {@link FileExpiryMode}.\n * A time in the past is not allowed and milliseconds will be dropped.\n */\n expiresOn?: Date;\n\n /**\n * The number of milliseconds to elapse before the file expires, used in combination with the \"RelativeToCreation\" or \"RelativeToNow\" {@link FileExpiryMode}.\n */\n timeToExpireInMs?: number;\n}\n\n/**\n * Options to configure {@link DataLakeFileClient.generateSasUrl} operation.\n */\nexport interface FileGenerateSasUrlOptions extends CommonGenerateSasUrlOptions {\n /**\n * Optional only when identifier is provided. Specifies the list of permissions to be associated with the SAS.\n */\n permissions?: DataLakeSASPermissions;\n}\n\n/**\n * Options to specify encryption scope on a file system.\n */\nexport declare interface FileSystemEncryptionScope {\n /** Optional. Version 2021-02-12 and later. Specifies the default encryption scope to set on the file system and use for all future writes. */\n defaultEncryptionScope?: string;\n\n /** Optional. Version 2021-02-12 and newer. If true, prevents any request from specifying a different encryption scope than the scope set on the container. */\n preventEncryptionScopeOverride?: boolean;\n}\n\n/**\n * Defines the known cloud audiences for Storage.\n */\nexport enum StorageDataLakeAudience {\n /**\n * The OAuth scope to use to retrieve an AAD token for Azure Storage.\n */\n StorageOAuthScopes = \"https://storage.azure.com/.default\",\n}\n\n/**\n * To get OAuth audience for a storage account for datalake service.\n */\nexport function getDataLakeServiceAccountAudience(storageAccountName: string): string {\n return `https://${storageAccountName}.dfs.core.windows.net/.default`;\n}\n\n/**\n * To indicate check sum algorithm used in content validation.\n */\nexport type StorageChecksumAlgorithm = \"Auto\" | \"None\" | \"Customized\" | \"StorageCrc64\";\n\n/**\n * Config used in creating datalake client instances.\n */\nexport interface DataLakeClientConfig {\n /**\n * Options to indication which algorithm to use for content validation in uploading.\n */\n uploadContentChecksumAlgorithm?: StorageChecksumAlgorithm;\n\n /**\n * Options to indication which algorithm to use for content validation in downloading.\n */\n downloadContentChecksumAlgorithm?: StorageChecksumAlgorithm;\n}\n\n/**\n * Options for creating DataLakeFileSystemClient instances\n */\nexport type DataLakeFileSystemClientOptions = StoragePipelineOptions & DataLakeClientConfig;\n/**\n * Options for creating DataLakeServiceClient instances\n */\nexport type DataLakeServiceClientOptions = StoragePipelineOptions & DataLakeClientConfig;\n/**\n * Options for creating DataLakePathClient instances\n */\nexport type DataLakePathClientOptions = StoragePipelineOptions & DataLakeClientConfig;\n/**\n * Options for creating DataLakeFileClient instances\n */\nexport type DataLakeFileClientOptions = StoragePipelineOptions & DataLakeClientConfig;\n\n/**\n * Request headers used in generating a SAS token\n */\nexport type RequestHeaders = Record<string, string>;\n\n/**\n * Request query parameters used in generating a SAS token\n */\nexport type RequestQueryParameters = Record<string, string>;\n\n/** *********************************************************/\n/** DataLakeLeaseClient option and response related models */\n/** *********************************************************/\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { TransferProgressEvent } from \"@azure/core-rest-pipeline\";\nimport type {\n LeaseAccessConditions,\n ModifiedAccessConditions as ModifiedAccessConditionsModel,\n UserDelegationKeyModel,\n BlobQueryArrowConfiguration,\n ServiceRenameContainerOptions,\n ContainerRenameResponse,\n ContainerUndeleteResponse,\n WithResponse,\n NodeJSReadableStream,\n BlobTags,\n Tags,\n} from \"@azure/storage-blob\";\nimport type { DataLakePathClient } from \"./clients.js\";\nexport type ModifiedAccessConditions = Omit<ModifiedAccessConditionsModel, \"ifTags\">;\n\n/**\n * Options to query file with Apache Arrow format. Only valid for {@link FileQueryOptions.outputTextConfiguration}.\n */\nexport type FileQueryArrowConfiguration = BlobQueryArrowConfiguration;\n\n/**\n * Options to configure {@link DataLakeServiceClient.renameFileSystem}.\n */\nexport type ServiceRenameFileSystemOptions = ServiceRenameContainerOptions;\n\n/**\n * Contains response data for the {@link DataLakeServiceClient.renameFileSystem} operation.\n */\nexport type FileSystemRenameResponse = ContainerRenameResponse;\n\n/**\n * Contains response data for the {@link DataLakeServiceClient.undeleteFileSystem} operation.\n */\nexport type FileSystemUndeleteResponse = ContainerUndeleteResponse;\n\nimport type {\n CpkInfo,\n FileSystemListBlobHierarchySegmentHeaders,\n FileSystemListPathsHeaders,\n LeaseAction,\n ListBlobsHierarchySegmentResponse,\n PathAppendDataHeaders,\n PathCreateHeaders,\n PathDeleteHeaders,\n PathFlushDataHeaders,\n PathGetPropertiesHeaders as PathGetPropertiesHeadersModel,\n PathList as PathListModel,\n PathSetAccessControlHeaders,\n PathSetExpiryHeaders,\n PathUndeleteHeaders,\n} from \"./generated/src/models/index.js\";\nimport type { DataLakeSASPermissions } from \"./sas/DataLakeSASPermissions.js\";\nimport type { DirectorySASPermissions } from \"./sas/DirectorySASPermissions.js\";\nimport type { FileSystemSASPermissions } from \"./sas/FileSystemSASPermissions.js\";\nimport type { SasIPRange } from \"./sas/SasIPRange.js\";\nimport type { SASProtocol } from \"./sas/SASQueryParameters.js\";\nimport type { CommonOptions } from \"./StorageClient.js\";\nimport type { UserDelegationKey } from \"@azure/storage-common\";\nimport type { StoragePipelineOptions } from \"./Pipeline.js\";\n\nexport {\n type LeaseAccessConditions,\n type UserDelegationKeyModel,\n type ServiceListContainersSegmentResponse,\n type Lease,\n type LeaseOperationOptions,\n type LeaseOperationResponse,\n} from \"@azure/storage-blob\";\n\nexport type {\n BlobHierarchyListSegment,\n BlobItemModel,\n BlobPrefix,\n BlobPropertiesModel,\n CpkInfo,\n EncryptionAlgorithmType,\n FileSystemListPathsHeaders,\n FileSystemListBlobHierarchySegmentHeaders,\n ListBlobsHierarchySegmentResponse,\n Path as PathModel,\n PathList as PathListModel,\n PathCreateHeaders,\n PathDeleteHeaders,\n PathGetPropertiesHeaders as PathGetPropertiesHeadersModel,\n PathSetAccessControlHeaders,\n PathResourceType as PathResourceTypeModel,\n PathUndeleteHeaders,\n PathUpdateHeaders,\n PathAppendDataHeaders,\n PathFlushDataHeaders,\n PathGetPropertiesAction as PathGetPropertiesActionModel,\n PathRenameMode as PathRenameModeModel,\n PathExpiryOptions as FileExpiryMode,\n PathSetExpiryHeaders as FileSetExpiryHeaders,\n} from \"./generated/src/models/index.js\";\n\nexport type PathCreateResponse = WithResponse<PathCreateHeaders, PathCreateHeaders>;\nexport type PathDeleteResponse = WithResponse<PathDeleteHeaders, PathDeleteHeaders>;\nexport type FileFlushResponse = WithResponse<PathFlushDataHeaders, PathFlushDataHeaders>;\nexport type FileUploadResponse = WithResponse<PathFlushDataHeaders, PathFlushDataHeaders>;\nexport type PathSetAccessControlResponse = WithResponse<\n PathSetAccessControlHeaders,\n PathSetAccessControlHeaders\n>;\nexport type PathSetPermissionsResponse = WithResponse<\n PathSetAccessControlHeaders,\n PathSetAccessControlHeaders\n>;\nexport type FileAppendResponse = WithResponse<PathAppendDataHeaders, PathAppendDataHeaders>;\nexport type FileSetExpiryResponse = WithResponse<PathSetExpiryHeaders, PathSetExpiryHeaders>;\n\n/**\n * Common options of the {@link FileSystemGenerateSasUrlOptions}, {@link DirectoryGenerateSasUrlOptions}\n * and {@link FileGenerateSasUrlOptions}.\n */\nexport interface CommonGenerateSasUrlOptions {\n /**\n * The version of the service this SAS will target. If not specified, it will default to the version targeted by the\n * library.\n */\n version?: string;\n\n /**\n * Optional. SAS protocols, HTTPS only or HTTPSandHTTP\n */\n protocol?: SASProtocol;\n\n /**\n * Optional. When the SAS will take effect.\n */\n startsOn?: Date;\n\n /**\n * Optional only when identifier is provided. The time after which the SAS will no longer work.\n */\n expiresOn?: Date;\n\n /**\n * Optional. IP ranges allowed in this SAS.\n */\n ipRange?: SasIPRange;\n\n /**\n * Optional. The name of the access policy on the container this SAS references if any.\n *\n * @see https://learn.microsoft.com/rest/api/storageservices/establishing-a-stored-access-policy\n */\n identifier?: string;\n\n /**\n * Optional. Encryption scope to use when sending requests authorized with this SAS URI.\n */\n encryptionScope?: string;\n\n /**\n * Optional. The cache-control header for the SAS.\n */\n cacheControl?: string;\n\n /**\n * Optional. The content-disposition header for the SAS.\n */\n contentDisposition?: string;\n\n /**\n * Optional. The content-encoding header for the SAS.\n */\n contentEncoding?: string;\n\n /**\n * Optional. The content-language header for the SAS.\n */\n contentLanguage?: string;\n\n /**\n * Optional. The content-type header for the SAS.\n */\n contentType?: string;\n\n /**\n * Request headers used in generating a SAS token\n */\n requestHeaders?: RequestHeaders;\n /**\n * Request query parameters used in generating a SAS token\n */\n requestQueryParameters?: RequestQueryParameters;\n}\n\n/** ***********************************************************/\n/** DataLakeServiceClient option and response related models */\n/** ***********************************************************/\n\nexport interface ServiceGetUserDelegationKeyOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Parameters for getting user delegation key.\n */\nexport interface DataLakeGetUserDelegationKeyParameters {\n /**\n * The start time for the user delegation key. Must be within 7 days of the current time\n */\n startsOn: Date;\n /**\n * The end time for the user delegation key. Must be within 7 days of the current time\n */\n expiresOn: Date;\n /**\n * The tenant ID for the user delegation key.\n */\n delegatedUserTenantId: string;\n}\n\n// TODO: Leverage interface definitions from blob package directly, or duplicate create a copy here which will not have generation benefits\nexport interface ServiceGetUserDelegationKeyHeaders {\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type ServiceGetUserDelegationKeyResponse = WithResponse<\n UserDelegationKey & ServiceGetUserDelegationKeyHeaders,\n ServiceGetUserDelegationKeyHeaders,\n UserDelegationKeyModel\n>;\n\nexport interface ServiceListFileSystemsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n prefix?: string;\n includeMetadata?: boolean;\n\n /**\n * Specifies whether soft deleted File System should be included in the response.\n */\n includeDeleted?: boolean;\n}\n\nexport type LeaseStatusType = \"locked\" | \"unlocked\";\nexport type LeaseStateType = \"available\" | \"leased\" | \"expired\" | \"breaking\" | \"broken\";\nexport type LeaseDurationType = \"infinite\" | \"fixed\";\nexport type PublicAccessType = \"filesystem\" | \"file\";\n\nexport interface FileSystemProperties {\n lastModified: Date;\n etag: string;\n leaseStatus?: LeaseStatusType;\n leaseState?: LeaseStateType;\n leaseDuration?: LeaseDurationType;\n publicAccess?: PublicAccessType;\n hasImmutabilityPolicy?: boolean;\n hasLegalHold?: boolean;\n defaultEncryptionScope?: string;\n deletedOn?: Date;\n remainingRetentionDays?: number;\n}\n\nexport interface FileSystemItem {\n name: string;\n properties: FileSystemProperties;\n metadata?: Metadata;\n deleted?: boolean;\n versionId?: string;\n}\n\nexport interface ListFileSystemsSegmentResponse {\n serviceEndpoint: string;\n prefix?: string;\n marker?: string;\n maxPageSize?: number;\n fileSystemItems: FileSystemItem[];\n continuationToken?: string;\n}\n\nexport interface ServiceListFileSystemsSegmentHeaders {\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n}\n\nexport type ServiceListFileSystemsSegmentResponse = WithResponse<\n ListFileSystemsSegmentResponse & ServiceListFileSystemsSegmentHeaders,\n ServiceListFileSystemsSegmentHeaders,\n ListFileSystemsSegmentResponse\n>;\n\n/**\n * Options to configure {@link DataLakeServiceClient.generateAccountSasUrl} operation.\n */\nexport interface ServiceGenerateAccountSasUrlOptions {\n /**\n * The version of the service this SAS will target. If not specified, it will default to the version targeted by the\n * library.\n */\n version?: string;\n\n /**\n * Optional. SAS protocols allowed.\n */\n protocol?: SASProtocol;\n\n /**\n * Optional. When the SAS will take effect.\n */\n startsOn?: Date;\n /**\n * Optional. IP range allowed.\n */\n ipRange?: SasIPRange;\n /**\n * Optional. Encryption scope to use when sending requests authorized with this SAS URI.\n */\n encryptionScope?: string;\n}\n\n/**\n * Options to configure {@link DataLakeServiceClient.undeleteFileSystem}.\n */\nexport interface ServiceUndeleteFileSystemOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n\n /**\n * Optional. Specifies the new name of the restored File System.\n * Will use its original name if this is not specified.\n * @deprecated Restore FileSystem to a different name is not supported by service anymore.\n */\n destinationFileSystemName?: string;\n}\n\n/** **************************************************************/\n/** DataLakeFileSystemClient option and response related models */\n/** **************************************************************/\n\nexport interface FileSystemCreateOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n metadata?: Metadata;\n access?: PublicAccessType;\n /**\n * File System encryption scope info.\n */\n fileSystemEncryptionScope?: FileSystemEncryptionScope;\n}\n\nexport interface FileSystemCreateHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type FileSystemCreateResponse = WithResponse<\n FileSystemCreateHeaders,\n FileSystemCreateHeaders\n>;\n\nexport interface FileSystemDeleteOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface FileSystemDeleteHeaders {\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type FileSystemDeleteResponse = WithResponse<\n FileSystemDeleteHeaders,\n FileSystemDeleteHeaders\n>;\n\nexport interface FileSystemGetPropertiesOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: LeaseAccessConditions;\n}\n\nexport interface FileSystemGetPropertiesHeaders {\n metadata?: Metadata;\n etag?: string;\n lastModified?: Date;\n leaseDuration?: LeaseDurationType;\n leaseState?: LeaseStateType;\n leaseStatus?: LeaseStatusType;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n publicAccess?: PublicAccessType;\n hasImmutabilityPolicy?: boolean;\n hasLegalHold?: boolean;\n /**\n * The default encryption scope for the file system.\n */\n defaultEncryptionScope?: string;\n}\n\nexport type FileSystemGetPropertiesResponse = WithResponse<\n FileSystemGetPropertiesHeaders,\n FileSystemGetPropertiesHeaders\n>;\n\nexport interface FileSystemSetMetadataOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface FileSystemSetMetadataHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type FileSystemSetMetadataResponse = WithResponse<\n FileSystemSetMetadataHeaders,\n FileSystemSetMetadataHeaders\n>;\n\nexport interface FileSystemGetAccessPolicyOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: LeaseAccessConditions;\n}\n\nexport interface FileSystemGetAccessPolicyHeaders {\n publicAccess?: PublicAccessType;\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport interface RawAccessPolicy {\n startsOn?: string;\n expiresOn?: string;\n permissions: string;\n}\n\nexport interface AccessPolicy {\n startsOn?: Date;\n expiresOn?: Date;\n permissions: string;\n}\n\nexport interface SignedIdentifier<T> {\n id: string;\n accessPolicy: T;\n}\n\nexport type FileSystemGetAccessPolicyResponse = WithResponse<\n {\n signedIdentifiers: SignedIdentifier<AccessPolicy>[];\n } & FileSystemGetAccessPolicyHeaders,\n FileSystemGetAccessPolicyHeaders,\n SignedIdentifier<RawAccessPolicy>[]\n>;\n\nexport interface FileSystemSetAccessPolicyOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface FileSystemSetAccessPolicyHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type FileSystemSetAccessPolicyResponse = WithResponse<\n FileSystemSetAccessPolicyHeaders,\n FileSystemSetAccessPolicyHeaders\n>;\n\nexport interface ListPathsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n recursive?: boolean;\n path?: string;\n userPrincipalName?: boolean;\n /** Optional.\n * A relative path within the specified directory where the listing will start from.\n * For example, a recursive listing under directory folder1/folder2 with startFrom as folder3/readmefile.txt will start listing from folder1/folder2/folder3/readmefile.txt.\n * Please note that, multiple entity levels are supported for recursive listing. Non-recursive listing supports only one entity level.\n * An error will appear if multiple entity levels are specified for non-recursive listing. */\n startFrom?: string;\n}\n\nexport interface ListPathsSegmentOptions extends ListPathsOptions {\n maxResults?: number;\n}\n\nexport interface Path {\n name?: string;\n isDirectory?: boolean;\n lastModified?: Date;\n etag?: string;\n contentLength?: number;\n owner?: string;\n group?: string;\n permissions?: PathPermissions;\n /**\n * The name of the encryption scope under which the blob is encrypted.\n */\n encryptionScope?: string;\n /**\n * Creation time of the path.\n */\n createdOn?: Date;\n /**\n * Expiry time of the path.\n */\n expiresOn?: Date;\n /**\n * Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n}\n\nexport interface PathList {\n pathItems?: Path[];\n}\n\nexport type FileSystemListPathsResponse = WithResponse<\n PathList & FileSystemListPathsHeaders,\n FileSystemListPathsHeaders,\n PathListModel\n>;\n\nexport interface ListDeletedPathsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n /** Filters results to filesystems within the specified prefix. */\n prefix?: string;\n}\n\nexport interface ListDeletedPathsSegmentOptions extends ListDeletedPathsOptions {\n maxResults?: number;\n}\n\nexport interface DeletedPath {\n name: string;\n deletionId?: string;\n deletedOn?: Date;\n remainingRetentionDays?: number;\n}\n\nexport interface DeletedPathList {\n pathItems?: DeletedPath[];\n}\n\nexport type FileSystemListDeletedPathsResponse = WithResponse<\n DeletedPathList &\n FileSystemListBlobHierarchySegmentHeaders &\n ListBlobsHierarchySegmentResponse & { continuation?: string },\n FileSystemListBlobHierarchySegmentHeaders,\n ListBlobsHierarchySegmentResponse\n>;\n\nexport interface FileSystemUndeletePathOption extends CommonOptions {\n abortSignal?: AbortSignalLike;\n}\n\nexport type FileSystemUndeletePathResponse = WithResponse<\n PathUndeleteHeaders & { pathClient: DataLakePathClient },\n PathUndeleteHeaders\n>;\n\n/**\n * Option interface for Data Lake file system exists operations\n *\n * See:\n * - {@link DataLakeFileSystemClient.exists}\n */\nexport interface FileSystemExistsOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n}\n\n/**\n * Contains response data for the {@link DataLakeFileSystemClient.createIfNotExists} operation.\n */\nexport interface FileSystemCreateIfNotExistsResponse extends FileSystemCreateResponse {\n /**\n * Indicate whether the file system is successfully created. Is false when the file system is not changed as it already exists.\n */\n succeeded: boolean;\n}\n\n/**\n * Contains response data for the {@link DataLakeFileSystemClient.deleteIfExists} operation.\n */\nexport interface FileSystemDeleteIfExistsResponse extends FileSystemDeleteResponse {\n /**\n * Indicate whether the file system is successfully deleted. Is false if the file system doesn't exist in the first place.\n */\n succeeded: boolean;\n}\n\n/**\n * Options to configure {@link DataLakeFileSystemClient.generateSasUrl} operation.\n */\nexport interface FileSystemGenerateSasUrlOptions extends CommonGenerateSasUrlOptions {\n /**\n * Optional only when identifier is provided. Specifies the list of permissions to be associated with the SAS.\n */\n permissions?: FileSystemSASPermissions;\n}\n\n/** ********************************************************/\n/** DataLakePathClient option and response related models */\n/** ********************************************************/\n\nexport interface Metadata {\n [propertyName: string]: string;\n}\n\nexport interface DataLakeRequestConditions\n extends ModifiedAccessConditions, LeaseAccessConditions {}\n\nexport interface RolePermissions {\n read: boolean;\n write: boolean;\n execute: boolean;\n}\n\nexport interface PathPermissions {\n owner: RolePermissions;\n group: RolePermissions;\n other: RolePermissions;\n stickyBit: boolean;\n extendedAcls: boolean;\n}\n\nexport type AccessControlType = \"user\" | \"group\" | \"mask\" | \"other\";\n\nexport interface RemovePathAccessControlItem {\n /**\n * Indicates whether this is the default entry for the ACL.\n */\n defaultScope: boolean;\n /**\n * Specifies which role this entry targets.\n */\n accessControlType: AccessControlType;\n /**\n * Specifies the entity for which this entry applies.\n * Must be omitted for types mask or other. It must also be omitted when the user or group is the owner.\n */\n entityId?: string;\n}\n\nexport interface PathAccessControlItem {\n /**\n * Indicates whether this is the default entry for the ACL.\n */\n defaultScope: boolean;\n /**\n * Specifies which role this entry targets.\n */\n accessControlType: AccessControlType;\n /**\n * Specifies the entity for which this entry applies.\n */\n entityId: string;\n /**\n * Access control permissions.\n */\n permissions: RolePermissions;\n}\n\nexport interface PathCreateHttpHeaders {\n cacheControl?: string;\n contentEncoding?: string;\n contentLanguage?: string;\n contentDisposition?: string;\n contentType?: string;\n}\n\nexport interface PathCreateOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n metadata?: Metadata;\n permissions?: string; // TODO: model or string?\n umask?: string; // TODO: model or string?\n /**\n * Optional. The owner of the blob or directory.\n */\n owner?: string;\n /**\n * Optional. The owning group of the blob or directory.\n */\n group?: string;\n /**\n * Optional. POSIX access control rights on files and directories.\n */\n acl?: PathAccessControlItem[];\n conditions?: DataLakeRequestConditions;\n pathHttpHeaders?: PathCreateHttpHeaders;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.\n */\n proposedLeaseId?: string;\n /**\n * The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.\n */\n leaseDuration?: number;\n /**\n * Optional. Options for scheduling the deletion of a path.\n * A number value indicates duration before file should be deleted in milliseconds.\n * A Date value indicates the time to set for when the path will be deleted.\n * Does not apply to directories.\n */\n expiresOn?: number | Date;\n /**\n * Optional. Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n}\n\nexport interface PathCreateIfNotExistsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n metadata?: Metadata;\n permissions?: string;\n umask?: string;\n /**\n * Optional. The owner of the blob or directory.\n */\n owner?: string;\n /**\n * Optional. The owning group of the blob or directory.\n */\n group?: string;\n /**\n * Optional. POSIX access control rights on files and directories.\n */\n acl?: PathAccessControlItem[];\n pathHttpHeaders?: PathCreateHttpHeaders;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.\n */\n proposedLeaseId?: string;\n /**\n * The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.\n */\n leaseDuration?: number;\n /**\n * Optional. Options for scheduling the deletion of a path.\n * A number value indicates duration before file should be deleted in milliseconds.\n * A Date value indicates the time to set for when the path will be deleted.\n * Does not apply to directories.\n */\n expiresOn?: number | Date;\n /**\n * Optional. Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n}\n\nexport interface PathDeleteOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface PathGetAccessControlOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n userPrincipalName?: boolean;\n}\n\nexport interface PathGetAccessControlHeaders {\n date?: Date;\n etag?: string;\n lastModified?: Date;\n owner?: string;\n group?: string;\n requestId?: string;\n version?: string;\n}\n\nexport interface PathAccessControl {\n owner?: string;\n group?: string;\n permissions?: PathPermissions;\n /**\n * POSIX access control rights on files and directories.\n */\n acl: PathAccessControlItem[];\n}\n\nexport type PathGetAccessControlResponse = WithResponse<\n PathAccessControl & PathGetAccessControlHeaders,\n PathGetPropertiesHeadersModel\n>;\n\n/** Defines headers for Path_getProperties operation. */\nexport interface PathGetSystemPropertiesHeaders {\n /** Indicates that the service supports requests for partial file content. */\n acceptRanges?: string;\n /** If the Cache-Control request header has previously been set for the resource, that value is returned in this header. */\n cacheControl?: string;\n /** If the Content-Disposition request header has previously been set for the resource, that value is returned in this header. */\n contentDisposition?: string;\n /** If the Content-Encoding request header has previously been set for the resource, that value is returned in this header. */\n contentEncoding?: string;\n /** If the Content-Language request header has previously been set for the resource, that value is returned in this header. */\n contentLanguage?: string;\n /** The size of the resource in bytes. */\n contentLength?: number;\n /** Indicates the range of bytes returned in the event that the client requested a subset of the file by setting the Range request header. */\n contentRange?: string;\n /** The content type specified for the resource. If no content type was specified, the default content type is application/octet-stream. */\n contentType?: string;\n /** The MD5 hash of complete file stored in storage. This header is returned only for \"GetProperties\" operation. If the Content-MD5 header has been set for the file, this response header is returned for GetProperties call so that the client can check for message content integrity. */\n contentMD5?: string;\n /** A UTC date/time value generated by the service that indicates the time at which the response was initiated. */\n date?: Date;\n /** An HTTP entity tag associated with the file or directory. */\n etag?: string;\n /** The data and time the file or directory was last modified. Write operations on the file or directory update the last modified time. */\n lastModified?: Date;\n /** A server-generated UUID recorded in the analytics logs for troubleshooting and correlation. */\n requestId?: string;\n /** The version of the REST protocol used to process the request. */\n version?: string;\n /** Specifies whether the resource is a directory or a file */\n isDirectory?: boolean;\n /** The user-defined properties associated with the file or directory, in the format of a comma-separated list of name and value pairs \"n1=v1, n2=v2, ...\", where each value is a base64 encoded string. Note that the string may only contain ASCII characters in the ISO-8859-1 character set. */\n properties?: string;\n /** The owner of the file or directory. Included in the response if Hierarchical Namespace is enabled for the account. */\n owner?: string;\n /** The owning group of the file or directory. Included in the response if Hierarchical Namespace is enabled for the account. */\n group?: string;\n /** The POSIX access permissions for the file owner, the file owning group, and others. Included in the response if Hierarchical Namespace is enabled for the account. */\n permissions?: PathPermissions;\n /** The POSIX access control list for the file or directory. Included in the response only if the action is \"getAccessControl\" and Hierarchical Namespace is enabled for the account. */\n acl?: string;\n /** When a resource is leased, specifies whether the lease is of infinite or fixed duration. */\n leaseDuration?: string;\n /** Lease state of the resource. */\n leaseState?: string;\n /** The lease status of the resource. */\n leaseStatus?: string;\n /** The value of this header is set to true if the directory metadata is completely encrypted using the specified algorithm. Otherwise, the value is set to false. */\n isServerEncrypted?: boolean;\n /** The SHA-256 hash of the encryption key used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key. */\n encryptionKeySha256?: string;\n /** The encryption context used to encrypt the blob. This header is only returned when the blob was encrypted with a customer-provided key. */\n encryptionContext?: string;\n /** Returns the name of the encryption scope used to encrypt the blob contents and application metadata. Note that the absence of this header implies use of the default account encryption scope. */\n encryptionScope?: string;\n /** Returns the date and time the blob was created. */\n creationTime?: Date;\n /** The time this blob will expire. */\n expiresOn?: Date;\n /** Error Code */\n errorCode?: string;\n}\n\n/**\n * Contains response data for the {@link DataLakePathClient.getSystemProperties} operation.\n */\nexport type PathGetSystemPropertiesResponse = WithResponse<\n PathGetSystemPropertiesHeaders,\n PathGetPropertiesHeadersModel\n>;\n\nexport interface PathSetAccessControlOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n owner?: string;\n group?: string;\n}\n\n/**\n * Options type for `setAccessControlRecursive`, `updateAccessControlRecursive` and `removeAccessControlRecursive`.\n */\nexport interface PathChangeAccessControlRecursiveOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Optional. If data set size exceeds batch size then operation will be split into multiple requests so that progress can be tracked.\n * Batch size should be between 1 and 2000. The default when unspecified is 2000.\n */\n batchSize?: number;\n /**\n * Optional. Defines maximum number of batches that single change Access Control operation can execute.\n * If maximum is reached before all subpaths are processed then continuation token can be used to resume operation.\n * Empty value indicates that maximum number of batches in unbound and operation continues till end.\n */\n maxBatches?: number;\n /**\n * Optional. Default false. If set to false, the operation will terminate quickly on encountering user failures.\n * If true, the operation will ignore user failures and proceed with the operation on other sub-entities of the directory.\n */\n continueOnFailure?: boolean;\n /**\n * Continuation token to continue next batch of operations.\n */\n continuationToken?: string;\n /**\n * Callback where caller can track progress of the operation\n * as well as collect paths that failed to change Access Control.\n */\n onProgress?: (progress: AccessControlChanges) => void;\n}\n\n/**\n * Represents an entry that failed to update Access Control List during `setAccessControlRecursive`, `updateAccessControlRecursive` and `removeAccessControlRecursive`.\n */\nexport interface AccessControlChangeError {\n /**\n * Returns name of an entry.\n */\n name: string;\n /**\n * Returns whether entry is a directory.\n */\n isDirectory: boolean;\n /**\n * Returns error message that is the reason why entry failed to update.\n */\n message: string;\n}\n\n/**\n * AccessControlChanges contains batch and cumulative counts of operations that change Access Control Lists recursively.\n * Additionally it exposes path entries that failed to update while these operations progress.\n */\nexport interface AccessControlChanges {\n /**\n * Path entries that failed to update Access Control List within single batch.\n */\n batchFailures: AccessControlChangeError[];\n /**\n * Counts of paths changed within single batch.\n */\n batchCounters: AccessControlChangeCounters;\n /**\n * Counts of paths changed from start of the operation.\n */\n aggregateCounters: AccessControlChangeCounters;\n /**\n * Optional. Value is present when operation is split into multiple batches and can be used to resume progress.\n */\n continuationToken?: string;\n}\n\n/**\n * AccessControlChangeCounters contains counts of operations that change Access Control Lists recursively.\n */\nexport interface AccessControlChangeCounters {\n /**\n * Returns number of directories where Access Control List has been updated successfully.\n */\n changedDirectoriesCount: number;\n /**\n * Returns number of files where Access Control List has been updated successfully.\n */\n changedFilesCount: number;\n /**\n * Returns number of paths where Access Control List update has failed.\n */\n failedChangesCount: number;\n}\n\n/**\n * Response type for `setAccessControlRecursive`, `updateAccessControlRecursive` and `removeAccessControlRecursive`.\n */\nexport interface PathChangeAccessControlRecursiveResponse {\n /**\n * Contains counts of paths changed from start of the operation.\n */\n counters: AccessControlChangeCounters;\n /**\n * Optional. Value is present when operation is split into multiple batches and can be used to resume progress.\n */\n continuationToken?: string;\n}\n\nexport interface PathSetPermissionsOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n owner?: string;\n group?: string;\n}\n\nexport interface PathGetPropertiesOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\n/**\n * Options to configure the {@link DataLakePathClient.getSystemProperties} operation.\n */\nexport interface PathGetSystemPropertiesOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Conditions to meet for the target path when fetching the properties.\n */\n conditions?: DataLakeRequestConditions;\n /** Optional.\n * If \"true\", the user identity values returned in the x-ms-owner, x-ms-group, and x-ms-acl response headers will be transformed from Azure Active Directory Object IDs to User Principal Names.\n * If \"false\", the values will be returned as Azure Active Directory Object IDs. The default value is false. Note that group and application Object IDs are not translated because they do not have unique friendly names.\n */\n userPrincipalName?: boolean;\n}\n\nexport type CopyStatusType = \"pending\" | \"success\" | \"aborted\" | \"failed\";\n\nexport interface PathGetPropertiesHeaders {\n lastModified?: Date;\n createdOn?: Date;\n metadata?: Metadata;\n copyCompletedOn?: Date;\n copyStatusDescription?: string;\n copyId?: string;\n copyProgress?: string;\n copySource?: string;\n copyStatus?: CopyStatusType;\n isIncrementalCopy?: boolean;\n destinationSnapshot?: string;\n leaseDuration?: LeaseDurationType;\n leaseState?: LeaseStateType;\n leaseStatus?: LeaseStatusType;\n contentLength?: number;\n contentType?: string;\n etag?: string;\n contentMD5?: Uint8Array;\n contentEncoding?: string;\n contentDisposition?: string;\n contentLanguage?: string;\n cacheControl?: string;\n // blobSequenceNumber?: number;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n acceptRanges?: string;\n // blobCommittedBlockCount?: number;\n isServerEncrypted?: boolean;\n encryptionKeySha256?: string;\n /**\n * Returns the name of the encryption scope used to encrypt the path contents and application metadata.\n * Note that the absence of this header implies use of the default account encryption scope.\n */\n encryptionScope?: string;\n accessTier?: string;\n accessTierInferred?: boolean;\n archiveStatus?: string;\n accessTierChangedOn?: Date;\n\n /**\n * The time the file will expire.\n */\n expiresOn?: Date;\n /**\n * Optional. Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n owner?: string;\n group?: string;\n permissions?: PathPermissions;\n /**\n * POSIX access control rights on files and directories.\n */\n acl: PathAccessControlItem[];\n}\n\nexport type PathGetPropertiesResponse = WithResponse<\n PathGetPropertiesHeaders,\n PathGetPropertiesHeaders\n>;\n\nexport interface PathSetHttpHeadersOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n}\n\nexport interface PathHttpHeaders {\n cacheControl?: string;\n contentEncoding?: string;\n contentLanguage?: string;\n contentDisposition?: string;\n contentType?: string;\n contentMD5?: Uint8Array;\n /** Specify the transactional md5 for the body, to be validated by the service. */\n transactionalContentHash?: Uint8Array;\n}\n\nexport interface PathSetHttpHeadersHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n}\n\nexport type PathSetHttpHeadersResponse = WithResponse<\n PathSetHttpHeadersHeaders,\n PathSetHttpHeadersHeaders\n>;\n\nexport interface PathSetMetadataOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\n/**\n * Specifies HTTP options for conditional requests based on path tags.\n */\nexport interface TagConditions {\n /**\n * Optional SQL statement to apply to the tags of the path.\n */\n tagConditions?: string;\n}\n\n/**\n * Options to configure the {@link DataLakePathClient.getTags} operation.\n */\nexport interface PathGetTagsOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Conditions to meet for the blob to perform this operation.\n */\n conditions?: TagConditions & LeaseAccessConditions & ModifiedAccessConditions;\n}\n\n/** Defines headers for Blob_getTags operation. */\nexport interface PathGetTagsHeaders {\n /** If a client request id header is sent in the request, this header will be present in the response with the same value. */\n clientRequestId?: string;\n /** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */\n requestId?: string;\n /** Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above. */\n version?: string;\n /** UTC date/time value generated by the service that indicates the time at which the response was initiated */\n date?: Date;\n /** Error Code */\n errorCode?: string;\n}\n\n/**\n * Contains response data for the {@link DataLakePathClient.getTags} operation.\n */\nexport type PathGetTagsResponse = WithResponse<\n { tags: Tags } & PathGetTagsHeaders,\n PathGetTagsHeaders,\n BlobTags\n>;\n\n/**\n * Options to configure the {@link DataLakePathClient.setTags} operation.\n */\nexport interface PathSetTagsOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Conditions to meet for the blob to perform this operation.\n */\n conditions?: TagConditions & LeaseAccessConditions & ModifiedAccessConditions;\n}\n\n/** Defines headers for Path_setTags operation. */\nexport interface PathSetTagsHeaders {\n /** If a client request id header is sent in the request, this header will be present in the response with the same value. */\n clientRequestId?: string;\n /** This header uniquely identifies the request that was made and can be used for troubleshooting the request. */\n requestId?: string;\n /** Indicates the version of the Blob service used to execute the request. This header is returned for requests made against version 2009-09-19 and above. */\n version?: string;\n /** UTC date/time value generated by the service that indicates the time at which the response was initiated */\n date?: Date;\n /** Error Code */\n errorCode?: string;\n}\n\n/**\n * Contains response data for the {@link DataLakePathClient.setTags} operation.\n */\nexport type PathSetTagsResponse = WithResponse<PathSetTagsHeaders, PathSetTagsHeaders>;\n\nexport interface PathSetMetadataHeaders {\n etag?: string;\n lastModified?: Date;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n date?: Date;\n isServerEncrypted?: boolean;\n encryptionKeySha256?: string;\n}\n\nexport type PathSetMetadataResponse = WithResponse<PathSetMetadataHeaders, PathSetMetadataHeaders>;\n\nexport interface PathMoveOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n destinationConditions?: DataLakeRequestConditions;\n}\n\nexport interface PathRemoveHeaders {\n date?: Date;\n etag?: string;\n lastModified?: Date;\n requestId?: string;\n version?: string;\n contentLength?: number;\n}\n\nexport type PathMoveResponse = WithResponse<PathRemoveHeaders, PathRemoveHeaders>;\n\n/**\n * Option interface for Data Lake directory/file exists operations\n *\n * See:\n * - {@link DataLakePathClient.exists}\n */\nexport interface PathExistsOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\n/**\n * Contains response data for the {@link DataLakePathClient.createIfNotExists} operation.\n */\nexport interface PathCreateIfNotExistsResponse extends PathCreateResponse {\n /**\n * Indicate whether the directory/file is successfully created. Is false when the directory/file is not changed as it already exists.\n */\n succeeded: boolean;\n}\n\n/**\n * Contains response data for the {@link DataLakePathClient.deleteIfExists} operation.\n */\nexport interface PathDeleteIfExistsResponse extends PathDeleteResponse {\n /**\n * Indicate whether the directory/file is successfully deleted. Is false if the directory/file doesn't exist in the first place.\n */\n succeeded: boolean;\n}\n\n// Keeping these for backward compatibility when we changed to use string unions.\n/**\n * Defines values for PathGetPropertiesAction.\n * Possible values include: 'getAccessControl', 'getStatus'\n * @readonly\n */\nexport enum PathGetPropertiesAction {\n GetAccessControl = \"getAccessControl\",\n GetStatus = \"getStatus\",\n}\n/**\n * Defines values for PathRenameMode.\n * Possible values include: 'legacy', 'posix'\n * @readonly\n */\nexport enum PathRenameMode {\n Legacy = \"legacy\",\n Posix = \"posix\",\n}\n/**\n * Defines values for PathResourceType.\n * Possible values include: 'directory', 'file'\n * @readonly\n */\nexport enum PathResourceType {\n Directory = \"directory\",\n File = \"file\",\n}\n\n/** **************************************************************/\n/** DataLakeDirectoryClient option and response related models **/\n/** **************************************************************/\n\nexport interface DirectoryCreateOptions extends PathCreateOptions {}\n\nexport interface DirectoryCreateIfNotExistsOptions extends PathCreateIfNotExistsOptions {}\n\nexport interface DirectoryCreateResponse extends PathCreateResponse {}\n\nexport interface DirectoryCreateIfNotExistsResponse extends PathCreateIfNotExistsResponse {}\n\n/**\n * Options to configure {@link DataLakeDirectoryClient.generateSasUrl} operation.\n */\nexport interface DirectoryGenerateSasUrlOptions extends CommonGenerateSasUrlOptions {\n /**\n * Optional only when identifier is provided. Specifies the list of permissions to be associated with the SAS.\n */\n permissions?: DirectorySASPermissions;\n}\n\n/** *********************************************************/\n/** DataLakeFileClient option and response related models **/\n/** *********************************************************/\n\nexport interface FileReadOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n rangeGetContentMD5?: boolean;\n rangeGetContentCrc64?: boolean;\n /**\n * Options to indication which algorithm to use for content validation in downloading.\n */\n contentChecksumAlgorithm?: StorageChecksumAlgorithm;\n conditions?: DataLakeRequestConditions;\n onProgress?: (progress: TransferProgressEvent) => void;\n maxRetryRequests?: number;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\nexport interface FileReadHeaders {\n lastModified?: Date;\n /**\n * Returns the date and time the file was created.\n */\n createdOn?: Date;\n metadata?: Metadata;\n contentLength?: number;\n contentType?: string;\n contentRange?: string;\n etag?: string;\n contentMD5?: Uint8Array;\n contentEncoding?: string;\n cacheControl?: string;\n contentDisposition?: string;\n contentLanguage?: string;\n // blobSequenceNumber?: number;\n copyCompletedOn?: Date;\n copyStatusDescription?: string;\n copyId?: string;\n copyProgress?: string;\n copySource?: string;\n copyStatus?: CopyStatusType;\n leaseDuration?: LeaseDurationType;\n leaseState?: LeaseStateType;\n leaseStatus?: LeaseStatusType;\n clientRequestId?: string;\n requestId?: string;\n version?: string;\n acceptRanges?: string;\n date?: Date;\n // blobCommittedBlockCount?: number;\n isServerEncrypted?: boolean;\n encryptionKeySha256?: string;\n fileContentMD5?: Uint8Array; // Content MD5 for whole file\n contentCrc64?: Uint8Array;\n /**\n * Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n owner?: string;\n group?: string;\n permissions?: PathPermissions;\n /**\n * POSIX access control rights on files and directories.\n */\n acl: PathAccessControlItem[];\n /** Indicates the response body contains a structured message and specifies the message schema version and properties. */\n structuredBodyType?: string;\n /** The length of the blob/file content inside the message body when the response body is returned as a structured message. Will always be smaller than Content-Length. */\n structuredContentLength?: number;\n}\n\nexport type FileReadResponse = WithResponse<\n FileReadHeaders & {\n contentAsBlob?: Promise<Blob>;\n readableStreamBody?: NodeJSReadableStream;\n },\n FileReadHeaders\n>;\n\nexport interface FileAppendOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: LeaseAccessConditions;\n transactionalContentMD5?: Uint8Array;\n onProgress?: (progress: TransferProgressEvent) => void;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * If file should be flushed automatically after the append\n */\n flush?: boolean;\n\n /**\n * Options to indication which algorithm to use for content validation in uploading.\n */\n contentChecksumAlgorithm?: StorageChecksumAlgorithm;\n /**\n * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.\n * */\n proposedLeaseId?: string;\n /**\n * The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.\n * */\n leaseDurationInSeconds?: number;\n /**\n * Optional. If \"acquire\" it will acquire the lease. If \"auto-renew\" it will renew the lease. If \"release\" it will release the lease only on flush. If \"acquire-release\" it will acquire & complete the operation & release the lease once operation is done.\n * */\n leaseAction?: LeaseAction;\n}\n\nexport interface FileFlushOptions extends CommonOptions {\n abortSignal?: AbortSignalLike;\n conditions?: DataLakeRequestConditions;\n retainUncommittedData?: boolean;\n close?: boolean;\n pathHttpHeaders?: PathHttpHeaders;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * Proposed lease ID, in a GUID string format. The Blob service returns 400 (Invalid request) if the proposed lease ID is not in the correct format. See Guid Constructor (String) for a list of valid GUID string formats.\n */\n proposedLeaseId?: string;\n /**\n * The lease duration is required to acquire a lease, and specifies the duration of the lease in seconds. The lease duration must be between 15 and 60 seconds or -1 for infinite lease.\n */\n leaseDurationInSeconds?: number;\n /**\n * Optional. If \"acquire\" it will acquire the lease. If \"auto-renew\" it will renew the lease. If \"release\" it will release the lease only on flush. If \"acquire-release\" it will acquire & complete the operation & release the lease once operation is done.\n */\n leaseAction?: LeaseAction;\n}\n\nexport interface FileCreateOptions extends PathCreateOptions {}\n\nexport interface FileCreateIfNotExistsOptions extends PathCreateIfNotExistsOptions {}\n\nexport interface FileCreateResponse extends PathCreateResponse {}\n\nexport interface FileCreateIfNotExistsResponse extends PathCreateIfNotExistsResponse {}\n\n/**\n * Option interface for Data Lake file - Upload operations\n *\n * See:\n * - {@link DataLakeFileClient.upload}\n * - {@link DataLakeFileClient.uploadFile}\n * - {@link DataLakeFileClient.uploadStream}\n */\nexport interface FileParallelUploadOptions extends CommonOptions {\n // For all.\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n\n /**\n * Access conditions headers.\n */\n conditions?: DataLakeRequestConditions;\n\n // For create and flush.\n /**\n * Http headers.\n */\n pathHttpHeaders?: PathHttpHeaders;\n\n // For create.\n /**\n * A collection of key-value string pair to associate with the Data Lake file.\n */\n metadata?: Metadata;\n\n /**\n * Sets POSIX access permissions for the file owner, the file owning group, and others.\n * Each class may be granted read, write, or execute permission. The sticky bit is also supported.\n * Both symbolic (rwxrw-rw-) and 4-digit octal notation (e.g. 0766) are supported.\n */\n permissions?: string; // TODO: model or string?\n\n /**\n * The umask restricts the permissions of the file to be created.\n * The resulting permission is given by p & ^u, where p is the permission and u is the umask.\n * For example, if p is 0777 and u is 0057, then the resulting permission is 0720.\n * The default permission is 0666 for a file. The default umask is 0027.\n * The umask must be specified in 4-digit octal notation (e.g. 0766).\n */\n umask?: string; // TODO: model or string?\n\n // For append.\n /**\n * Progress updater.\n */\n onProgress?: (progress: TransferProgressEvent) => void;\n\n // For flush.\n /**\n * When Azure Storage Events are enabled, a file changed event is raised.\n * This event has a property indicating whether this is the final change\n * to distinguish the difference between an intermediate flush to a file stream (when close set to \"false\")\n * and the final close of a file stream (when close set to \"true\").\n */\n close?: boolean;\n\n /**\n * Options to indication which algorithm to use for content validation in uploading.\n */\n contentChecksumAlgorithm?: StorageChecksumAlgorithm;\n\n // For parallel transfer control.\n\n /**\n * Data size threshold in bytes to use a single upload operation rather than parallel uploading.\n * Data of smaller size than this limit will be transferred in a single upload.\n * Data larger than this limit will be transferred in chunks in parallel.\n * Its default and max value is FILE_MAX_SINGLE_UPLOAD_THRESHOLD.\n * Note: {@link DataLakeFileClient.uploadStream} do not respect this field and always do parallel uploading.\n */\n singleUploadThreshold?: number;\n\n /**\n * The size of data in bytes that will be transferred in parallel.\n * If set to 0 or undefined, it will be automatically calculated according\n * to the data size. Its max value is FILE_UPLOAD_MAX_CHUNK_SIZE.\n */\n chunkSize?: number;\n /**\n * Max concurrency of parallel uploading. Must be greater than or equal to 0. Its default value is DEFAULT_HIGH_LEVEL_CONCURRENCY.\n */\n maxConcurrency?: number;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n /**\n * Specifies the encryption context to set on the file.\n */\n encryptionContext?: string;\n}\n\n/**\n * Option interface for Data Lake file - readToBuffer operations\n *\n * See:\n * - {@link DataLakeFileClient.readToBuffer}\n */\nexport interface FileReadToBufferOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n\n /**\n * Access conditions headers.\n */\n conditions?: DataLakeRequestConditions;\n\n /**\n * Progress updater.\n */\n onProgress?: (progress: TransferProgressEvent) => void;\n\n /**\n * How many retries will perform for each read when the original chunk read stream ends unexpectedly.\n * Above kind of ends will not trigger retry policy defined in a pipeline,\n * because they doesn't emit network errors. Default value is 5.\n */\n maxRetryRequestsPerChunk?: number;\n /**\n * Options to indication which algorithm to use for content validation in downloading.\n */\n contentChecksumAlgorithm?: StorageChecksumAlgorithm;\n\n /**\n * chunkSize is size of data every request trying to read.\n * Must be greater than or equal to 0, if set to 0 or undefined, it will automatically calculated according\n * to the file size.\n */\n chunkSize?: number;\n\n /**\n * Concurrency of parallel read.\n */\n concurrency?: number;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\n/**\n * Options to query file with JSON format.\n */\nexport interface FileQueryJsonTextConfiguration {\n /**\n * Record separator.\n */\n recordSeparator: string;\n /**\n * Query for a JSON format file.\n */\n kind: \"json\";\n}\n\n/**\n * Options to query file with CSV format.\n */\nexport interface FileQueryCsvTextConfiguration {\n /**\n * Record separator.\n */\n recordSeparator: string;\n /**\n * Query for a CSV format file.\n */\n kind: \"csv\";\n /**\n * Column separator. Default is \",\".\n */\n columnSeparator?: string;\n /**\n * Field quote.\n */\n fieldQuote?: string;\n /**\n * Escape character.\n */\n escapeCharacter?: string;\n /**\n * Has headers. Default is false.\n */\n hasHeaders?: boolean;\n}\n\n/**\n * Options to query file with Parquet format.\n */\nexport interface FileQueryParquetConfiguration {\n /**\n * Kind.\n */\n kind: \"parquet\";\n}\n\n/**\n * File query error type.\n */\nexport interface FileQueryError {\n /**\n * Whether the error is fatal or not. A fatal error will stop the query.\n */\n isFatal: boolean;\n /**\n * Error name.\n */\n name: string;\n /**\n * Position in bytes of the query.\n */\n position: number;\n /**\n * Error description.\n */\n description: string;\n}\n\n/**\n * Option interface for Data Lake file - query operations\n *\n * See:\n * - {@link DataLakeFileClient.query}\n */\nexport interface FileQueryOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Configurations for the query input.\n */\n inputTextConfiguration?:\n | FileQueryJsonTextConfiguration\n | FileQueryCsvTextConfiguration\n | FileQueryParquetConfiguration;\n /**\n * Configurations for the query output.\n */\n outputTextConfiguration?:\n | FileQueryJsonTextConfiguration\n | FileQueryCsvTextConfiguration\n | FileQueryArrowConfiguration;\n /**\n * Callback to receive events on the progress of query operation.\n */\n onProgress?: (progress: TransferProgressEvent) => void;\n /**\n * Callback to receive error events during the query operaiton.\n */\n onError?: (error: FileQueryError) => void;\n /**\n * Conditions to meet when uploading to the block file.\n */\n conditions?: DataLakeRequestConditions;\n /**\n * Customer Provided Key Info.\n */\n customerProvidedKey?: CpkInfo;\n}\n\n/**\n * Option interface for the {@link DataLakeFileClient.setExpiry} operation.\n */\nexport interface FileSetExpiryOptions extends CommonOptions {\n /**\n * An implementation of the `AbortSignalLike` interface to signal the request to cancel the operation.\n * For example, use the @azure/abort-controller to create an `AbortSignal`.\n */\n abortSignal?: AbortSignalLike;\n\n /**\n * The time to set the file to expire on, used in combination with the \"Absolute\" {@link FileExpiryMode}.\n * A time in the past is not allowed and milliseconds will be dropped.\n */\n expiresOn?: Date;\n\n /**\n * The number of milliseconds to elapse before the file expires, used in combination with the \"RelativeToCreation\" or \"RelativeToNow\" {@link FileExpiryMode}.\n */\n timeToExpireInMs?: number;\n}\n\n/**\n * Options to configure {@link DataLakeFileClient.generateSasUrl} operation.\n */\nexport interface FileGenerateSasUrlOptions extends CommonGenerateSasUrlOptions {\n /**\n * Optional only when identifier is provided. Specifies the list of permissions to be associated with the SAS.\n */\n permissions?: DataLakeSASPermissions;\n}\n\n/**\n * Options to specify encryption scope on a file system.\n */\nexport declare interface FileSystemEncryptionScope {\n /** Optional. Version 2021-02-12 and later. Specifies the default encryption scope to set on the file system and use for all future writes. */\n defaultEncryptionScope?: string;\n\n /** Optional. Version 2021-02-12 and newer. If true, prevents any request from specifying a different encryption scope than the scope set on the container. */\n preventEncryptionScopeOverride?: boolean;\n}\n\n/**\n * Defines the known cloud audiences for Storage.\n */\nexport enum StorageDataLakeAudience {\n /**\n * The OAuth scope to use to retrieve an AAD token for Azure Storage.\n */\n StorageOAuthScopes = \"https://storage.azure.com/.default\",\n}\n\n/**\n * To get OAuth audience for a storage account for datalake service.\n */\nexport function getDataLakeServiceAccountAudience(storageAccountName: string): string {\n return `https://${storageAccountName}.dfs.core.windows.net/.default`;\n}\n\n/**\n * To indicate check sum algorithm used in content validation.\n */\nexport type StorageChecksumAlgorithm = \"Auto\" | \"None\" | \"Customized\" | \"StorageCrc64\";\n\n/**\n * Config used in creating datalake client instances.\n */\nexport interface DataLakeClientConfig {\n /**\n * Options to indication which algorithm to use for content validation in uploading.\n */\n uploadContentChecksumAlgorithm?: StorageChecksumAlgorithm;\n\n /**\n * Options to indication which algorithm to use for content validation in downloading.\n */\n downloadContentChecksumAlgorithm?: StorageChecksumAlgorithm;\n}\n\n/**\n * Options for creating DataLakeFileSystemClient instances\n */\nexport type DataLakeFileSystemClientOptions = StoragePipelineOptions & DataLakeClientConfig;\n/**\n * Options for creating DataLakeServiceClient instances\n */\nexport type DataLakeServiceClientOptions = StoragePipelineOptions & DataLakeClientConfig;\n/**\n * Options for creating DataLakePathClient instances\n */\nexport type DataLakePathClientOptions = StoragePipelineOptions & DataLakeClientConfig;\n/**\n * Options for creating DataLakeFileClient instances\n */\nexport type DataLakeFileClientOptions = StoragePipelineOptions & DataLakeClientConfig;\n\n/**\n * Request headers used in generating a SAS token\n */\nexport type RequestHeaders = Record<string, string>;\n\n/**\n * Request query parameters used in generating a SAS token\n */\nexport type RequestQueryParameters = Record<string, string>;\n\n/** *********************************************************/\n/** DataLakeLeaseClient option and response related models */\n/** *********************************************************/\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA4xCO,IAAK,0BAAL,kBAAKA,6BAAL;AACL,EAAAA,yBAAA,sBAAmB;AACnB,EAAAA,yBAAA,eAAY;AAFF,SAAAA;AAAA,GAAA;AASL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,YAAS;AACT,EAAAA,gBAAA,WAAQ;AAFE,SAAAA;AAAA,GAAA;AASL,IAAK,mBAAL,kBAAKC,sBAAL;AACL,EAAAA,kBAAA,eAAY;AACZ,EAAAA,kBAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AA0eL,IAAK,0BAAL,kBAAKC,6BAAL;AAIL,EAAAA,yBAAA,wBAAqB;AAJX,SAAAA;AAAA,GAAA;AAUL,SAAS,kCAAkC,oBAAoC;AACpF,SAAO,WAAW,kBAAkB;AACtC;",
|
|
6
6
|
"names": ["PathGetPropertiesAction", "PathRenameMode", "PathResourceType", "StorageDataLakeAudience"]
|
|
7
7
|
}
|
|
@@ -43,6 +43,10 @@ export declare class DataLakeSASPermissions {
|
|
|
43
43
|
* Specifies Execute access granted.
|
|
44
44
|
*/
|
|
45
45
|
execute: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Specifies Tag access granted.
|
|
48
|
+
*/
|
|
49
|
+
tag: boolean;
|
|
46
50
|
/**
|
|
47
51
|
* Specifies Ownership access granted, which allows the caller to set owner, owning group,
|
|
48
52
|
* or act as the owner when renaming or deleting a blob (file or directory) within a folder
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataLakeSASPermissions.d.ts","sourceRoot":"","sources":["../../../src/sas/DataLakeSASPermissions.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,qBAAa,sBAAsB;IACjC;;;;;OAKG;WACW,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,sBAAsB;
|
|
1
|
+
{"version":3,"file":"DataLakeSASPermissions.d.ts","sourceRoot":"","sources":["../../../src/sas/DataLakeSASPermissions.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,qBAAa,sBAAsB;IACjC;;;;;OAKG;WACW,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,sBAAsB;IA2ChE;;OAEG;IACI,IAAI,EAAE,OAAO,CAAS;IAE7B;;OAEG;IACI,GAAG,EAAE,OAAO,CAAS;IAE5B;;OAEG;IACI,MAAM,EAAE,OAAO,CAAS;IAE/B;;OAEG;IACI,KAAK,EAAE,OAAO,CAAS;IAE9B;;OAEG;IACI,MAAM,EAAE,OAAO,CAAS;IAE/B;;OAEG;IACI,IAAI,EAAE,OAAO,CAAS;IAE7B;;OAEG;IACI,OAAO,EAAE,OAAO,CAAS;IAChC;;OAEG;IACI,GAAG,EAAE,OAAO,CAAS;IAE5B;;;;OAIG;IACI,eAAe,EAAE,OAAO,CAAS;IAExC;;;OAGG;IACI,mBAAmB,EAAE,OAAO,CAAS;IAE5C;;;;;OAKG;IACI,QAAQ,IAAI,MAAM;CAkC1B"}
|
|
@@ -34,6 +34,9 @@ class DataLakeSASPermissions {
|
|
|
34
34
|
case "r":
|
|
35
35
|
blobSASPermissions.read = true;
|
|
36
36
|
break;
|
|
37
|
+
case "t":
|
|
38
|
+
blobSASPermissions.tag = true;
|
|
39
|
+
break;
|
|
37
40
|
case "a":
|
|
38
41
|
blobSASPermissions.add = true;
|
|
39
42
|
break;
|
|
@@ -92,6 +95,10 @@ class DataLakeSASPermissions {
|
|
|
92
95
|
* Specifies Execute access granted.
|
|
93
96
|
*/
|
|
94
97
|
execute = false;
|
|
98
|
+
/**
|
|
99
|
+
* Specifies Tag access granted.
|
|
100
|
+
*/
|
|
101
|
+
tag = false;
|
|
95
102
|
/**
|
|
96
103
|
* Specifies Ownership access granted, which allows the caller to set owner, owning group,
|
|
97
104
|
* or act as the owner when renaming or deleting a blob (file or directory) within a folder
|
|
@@ -114,6 +121,9 @@ class DataLakeSASPermissions {
|
|
|
114
121
|
if (this.read) {
|
|
115
122
|
permissions.push("r");
|
|
116
123
|
}
|
|
124
|
+
if (this.tag) {
|
|
125
|
+
permissions.push("t");
|
|
126
|
+
}
|
|
117
127
|
if (this.add) {
|
|
118
128
|
permissions.push("a");
|
|
119
129
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/sas/DataLakeSASPermissions.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * This is a helper class to construct a string representing the permissions granted by a ServiceSAS. Setting\n * a value to true means that any SAS which uses these permissions will grant permissions for that operation. Once all\n * the values are set, this should be serialized with toString and set as the permissions field on a\n * {@link DataLakeSASSignatureValues} object. It is possible to construct the permissions string without this class, but\n * the order of the permissions is particular and this class guarantees correctness.\n */\nexport class DataLakeSASPermissions {\n /**\n * Creates a {@link DataLakeSASPermissions} from the specified permissions string. This method will throw an\n * Error if it encounters a character that does not correspond to a valid permission.\n *\n * @param permissions -\n */\n public static parse(permissions: string): DataLakeSASPermissions {\n const blobSASPermissions = new DataLakeSASPermissions();\n\n for (const char of permissions) {\n switch (char) {\n case \"r\":\n blobSASPermissions.read = true;\n break;\n case \"a\":\n blobSASPermissions.add = true;\n break;\n case \"c\":\n blobSASPermissions.create = true;\n break;\n case \"w\":\n blobSASPermissions.write = true;\n break;\n case \"d\":\n blobSASPermissions.delete = true;\n break;\n case \"m\":\n blobSASPermissions.move = true;\n break;\n case \"e\":\n blobSASPermissions.execute = true;\n break;\n case \"o\":\n blobSASPermissions.manageOwnership = true;\n break;\n case \"p\":\n blobSASPermissions.manageAccessControl = true;\n break;\n default:\n throw new RangeError(`Invalid permission: ${char}`);\n }\n }\n\n return blobSASPermissions;\n }\n\n /**\n * Specifies Read access granted.\n */\n public read: boolean = false;\n\n /**\n * Specifies Add access granted.\n */\n public add: boolean = false;\n\n /**\n * Specifies Create access granted.\n */\n public create: boolean = false;\n\n /**\n * Specifies Write access granted.\n */\n public write: boolean = false;\n\n /**\n * Specifies Delete access granted.\n */\n public delete: boolean = false;\n\n /**\n * Specifies Move access granted.\n */\n public move: boolean = false;\n\n /**\n * Specifies Execute access granted.\n */\n public execute: boolean = false;\n\n /**\n * Specifies Ownership access granted, which allows the caller to set owner, owning group,\n * or act as the owner when renaming or deleting a blob (file or directory) within a folder\n * that has the sticky bit set.\n */\n public manageOwnership: boolean = false;\n\n /**\n * Specifies Permission access granted, which allows the caller to set permissions and\n * POSIX ACLs on blobs (files and directories).\n */\n public manageAccessControl: boolean = false;\n\n /**\n * Converts the given permissions to a string. Using this method will guarantee the permissions are in an\n * order accepted by the service.\n *\n * @returns A string which represents the DataLakeSASPermissions\n */\n public toString(): string {\n const permissions: string[] = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.move) {\n permissions.push(\"m\");\n }\n if (this.execute) {\n permissions.push(\"e\");\n }\n if (this.manageOwnership) {\n permissions.push(\"o\");\n }\n if (this.manageAccessControl) {\n permissions.push(\"p\");\n }\n return permissions.join(\"\");\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlC,OAAc,MAAM,aAA6C;AAC/D,UAAM,qBAAqB,IAAI,uBAAuB;AAEtD,eAAW,QAAQ,aAAa;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,6BAAmB,OAAO;AAC1B;AAAA,QACF,KAAK;AACH,6BAAmB,MAAM;AACzB;AAAA,QACF,KAAK;AACH,6BAAmB,SAAS;AAC5B;AAAA,QACF,KAAK;AACH,6BAAmB,QAAQ;AAC3B;AAAA,QACF,KAAK;AACH,6BAAmB,SAAS;AAC5B;AAAA,QACF,KAAK;AACH,6BAAmB,OAAO;AAC1B;AAAA,QACF,KAAK;AACH,6BAAmB,UAAU;AAC7B;AAAA,QACF,KAAK;AACH,6BAAmB,kBAAkB;AACrC;AAAA,QACF,KAAK;AACH,6BAAmB,sBAAsB;AACzC;AAAA,QACF;AACE,gBAAM,IAAI,WAAW,uBAAuB,IAAI,EAAE;AAAA,MACtD;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKO,OAAgB;AAAA;AAAA;AAAA;AAAA,EAKhB,MAAe;AAAA;AAAA;AAAA;AAAA,EAKf,SAAkB;AAAA;AAAA;AAAA;AAAA,EAKlB,QAAiB;AAAA;AAAA;AAAA;AAAA,EAKjB,SAAkB;AAAA;AAAA;AAAA;AAAA,EAKlB,OAAgB;AAAA;AAAA;AAAA;AAAA,EAKhB,UAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * ONLY AVAILABLE IN NODE.JS RUNTIME.\n *\n * This is a helper class to construct a string representing the permissions granted by a ServiceSAS. Setting\n * a value to true means that any SAS which uses these permissions will grant permissions for that operation. Once all\n * the values are set, this should be serialized with toString and set as the permissions field on a\n * {@link DataLakeSASSignatureValues} object. It is possible to construct the permissions string without this class, but\n * the order of the permissions is particular and this class guarantees correctness.\n */\nexport class DataLakeSASPermissions {\n /**\n * Creates a {@link DataLakeSASPermissions} from the specified permissions string. This method will throw an\n * Error if it encounters a character that does not correspond to a valid permission.\n *\n * @param permissions -\n */\n public static parse(permissions: string): DataLakeSASPermissions {\n const blobSASPermissions = new DataLakeSASPermissions();\n\n for (const char of permissions) {\n switch (char) {\n case \"r\":\n blobSASPermissions.read = true;\n break;\n case \"t\":\n blobSASPermissions.tag = true;\n break;\n case \"a\":\n blobSASPermissions.add = true;\n break;\n case \"c\":\n blobSASPermissions.create = true;\n break;\n case \"w\":\n blobSASPermissions.write = true;\n break;\n case \"d\":\n blobSASPermissions.delete = true;\n break;\n case \"m\":\n blobSASPermissions.move = true;\n break;\n case \"e\":\n blobSASPermissions.execute = true;\n break;\n case \"o\":\n blobSASPermissions.manageOwnership = true;\n break;\n case \"p\":\n blobSASPermissions.manageAccessControl = true;\n break;\n default:\n throw new RangeError(`Invalid permission: ${char}`);\n }\n }\n\n return blobSASPermissions;\n }\n\n /**\n * Specifies Read access granted.\n */\n public read: boolean = false;\n\n /**\n * Specifies Add access granted.\n */\n public add: boolean = false;\n\n /**\n * Specifies Create access granted.\n */\n public create: boolean = false;\n\n /**\n * Specifies Write access granted.\n */\n public write: boolean = false;\n\n /**\n * Specifies Delete access granted.\n */\n public delete: boolean = false;\n\n /**\n * Specifies Move access granted.\n */\n public move: boolean = false;\n\n /**\n * Specifies Execute access granted.\n */\n public execute: boolean = false;\n /**\n * Specifies Tag access granted.\n */\n public tag: boolean = false;\n\n /**\n * Specifies Ownership access granted, which allows the caller to set owner, owning group,\n * or act as the owner when renaming or deleting a blob (file or directory) within a folder\n * that has the sticky bit set.\n */\n public manageOwnership: boolean = false;\n\n /**\n * Specifies Permission access granted, which allows the caller to set permissions and\n * POSIX ACLs on blobs (files and directories).\n */\n public manageAccessControl: boolean = false;\n\n /**\n * Converts the given permissions to a string. Using this method will guarantee the permissions are in an\n * order accepted by the service.\n *\n * @returns A string which represents the DataLakeSASPermissions\n */\n public toString(): string {\n const permissions: string[] = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.tag) {\n permissions.push(\"t\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.move) {\n permissions.push(\"m\");\n }\n if (this.execute) {\n permissions.push(\"e\");\n }\n if (this.manageOwnership) {\n permissions.push(\"o\");\n }\n if (this.manageAccessControl) {\n permissions.push(\"p\");\n }\n return permissions.join(\"\");\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYO,MAAM,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOlC,OAAc,MAAM,aAA6C;AAC/D,UAAM,qBAAqB,IAAI,uBAAuB;AAEtD,eAAW,QAAQ,aAAa;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,6BAAmB,OAAO;AAC1B;AAAA,QACF,KAAK;AACH,6BAAmB,MAAM;AACzB;AAAA,QACF,KAAK;AACH,6BAAmB,MAAM;AACzB;AAAA,QACF,KAAK;AACH,6BAAmB,SAAS;AAC5B;AAAA,QACF,KAAK;AACH,6BAAmB,QAAQ;AAC3B;AAAA,QACF,KAAK;AACH,6BAAmB,SAAS;AAC5B;AAAA,QACF,KAAK;AACH,6BAAmB,OAAO;AAC1B;AAAA,QACF,KAAK;AACH,6BAAmB,UAAU;AAC7B;AAAA,QACF,KAAK;AACH,6BAAmB,kBAAkB;AACrC;AAAA,QACF,KAAK;AACH,6BAAmB,sBAAsB;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C5B;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -45,6 +45,10 @@ export declare class FileSystemSASPermissions {
|
|
|
45
45
|
* Specifies Execute access granted.
|
|
46
46
|
*/
|
|
47
47
|
execute: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Specifies tag access granted.
|
|
50
|
+
*/
|
|
51
|
+
tag: boolean;
|
|
48
52
|
/**
|
|
49
53
|
* Specifies Ownership access granted, which allows the caller to set owner, owning group,
|
|
50
54
|
* or act as the owner when renaming or deleting a blob (file or directory) within a folder
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileSystemSASPermissions.d.ts","sourceRoot":"","sources":["../../../src/sas/FileSystemSASPermissions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,qBAAa,wBAAwB;IACnC;;;;;OAKG;WACW,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,wBAAwB;
|
|
1
|
+
{"version":3,"file":"FileSystemSASPermissions.d.ts","sourceRoot":"","sources":["../../../src/sas/FileSystemSASPermissions.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,qBAAa,wBAAwB;IACnC;;;;;OAKG;WACW,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,wBAAwB;IA8ClE;;OAEG;IACI,IAAI,EAAE,OAAO,CAAS;IAE7B;;OAEG;IACI,GAAG,EAAE,OAAO,CAAS;IAE5B;;OAEG;IACI,MAAM,EAAE,OAAO,CAAS;IAE/B;;OAEG;IACI,KAAK,EAAE,OAAO,CAAS;IAE9B;;OAEG;IACI,MAAM,EAAE,OAAO,CAAS;IAE/B;;OAEG;IACI,IAAI,EAAE,OAAO,CAAS;IAE7B;;OAEG;IACI,IAAI,EAAE,OAAO,CAAS;IAE7B;;OAEG;IACI,OAAO,EAAE,OAAO,CAAS;IAEhC;;OAEG;IACI,GAAG,EAAE,OAAO,CAAS;IAE5B;;;;OAIG;IACI,eAAe,EAAE,OAAO,CAAS;IAExC;;;OAGG;IACI,mBAAmB,EAAE,OAAO,CAAS;IAE5C;;;;;;;OAOG;IACI,QAAQ,IAAI,MAAM;CAqC1B"}
|
|
@@ -34,6 +34,9 @@ class FileSystemSASPermissions {
|
|
|
34
34
|
case "r":
|
|
35
35
|
containerSASPermissions.read = true;
|
|
36
36
|
break;
|
|
37
|
+
case "t":
|
|
38
|
+
containerSASPermissions.tag = true;
|
|
39
|
+
break;
|
|
37
40
|
case "a":
|
|
38
41
|
containerSASPermissions.add = true;
|
|
39
42
|
break;
|
|
@@ -99,6 +102,10 @@ class FileSystemSASPermissions {
|
|
|
99
102
|
* Specifies Execute access granted.
|
|
100
103
|
*/
|
|
101
104
|
execute = false;
|
|
105
|
+
/**
|
|
106
|
+
* Specifies tag access granted.
|
|
107
|
+
*/
|
|
108
|
+
tag = false;
|
|
102
109
|
/**
|
|
103
110
|
* Specifies Ownership access granted, which allows the caller to set owner, owning group,
|
|
104
111
|
* or act as the owner when renaming or deleting a blob (file or directory) within a folder
|
|
@@ -123,6 +130,9 @@ class FileSystemSASPermissions {
|
|
|
123
130
|
if (this.read) {
|
|
124
131
|
permissions.push("r");
|
|
125
132
|
}
|
|
133
|
+
if (this.tag) {
|
|
134
|
+
permissions.push("t");
|
|
135
|
+
}
|
|
126
136
|
if (this.add) {
|
|
127
137
|
permissions.push("a");
|
|
128
138
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/sas/FileSystemSASPermissions.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a container.\n * Setting a value to true means that any SAS which uses these permissions will grant permissions for that operation.\n * Once all the values are set, this should be serialized with toString and set as the permissions field on a\n * {@link DataLakeSASSignatureValues} object. It is possible to construct the permissions string without this class, but\n * the order of the permissions is particular and this class guarantees correctness.\n */\nexport class FileSystemSASPermissions {\n /**\n * Creates an {@link FileSystemSASPermissions} from the specified permissions string. This method will throw an\n * Error if it encounters a character that does not correspond to a valid permission.\n *\n * @param permissions -\n */\n public static parse(permissions: string): FileSystemSASPermissions {\n const containerSASPermissions = new FileSystemSASPermissions();\n\n for (const char of permissions) {\n switch (char) {\n case \"r\":\n containerSASPermissions.read = true;\n break;\n case \"a\":\n containerSASPermissions.add = true;\n break;\n case \"c\":\n containerSASPermissions.create = true;\n break;\n case \"w\":\n containerSASPermissions.write = true;\n break;\n case \"d\":\n containerSASPermissions.delete = true;\n break;\n case \"l\":\n containerSASPermissions.list = true;\n break;\n case \"m\":\n containerSASPermissions.move = true;\n break;\n case \"e\":\n containerSASPermissions.execute = true;\n break;\n case \"o\":\n containerSASPermissions.manageOwnership = true;\n break;\n case \"p\":\n containerSASPermissions.manageAccessControl = true;\n break;\n default:\n throw new RangeError(`Invalid permission ${char}`);\n }\n }\n\n return containerSASPermissions;\n }\n\n /**\n * Specifies Read access granted.\n */\n public read: boolean = false;\n\n /**\n * Specifies Add access granted.\n */\n public add: boolean = false;\n\n /**\n * Specifies Create access granted.\n */\n public create: boolean = false;\n\n /**\n * Specifies Write access granted.\n */\n public write: boolean = false;\n\n /**\n * Specifies Delete access granted.\n */\n public delete: boolean = false;\n\n /**\n * Specifies List access granted.\n */\n public list: boolean = false;\n\n /**\n * Specifies Move access granted.\n */\n public move: boolean = false;\n\n /**\n * Specifies Execute access granted.\n */\n public execute: boolean = false;\n\n /**\n * Specifies Ownership access granted, which allows the caller to set owner, owning group,\n * or act as the owner when renaming or deleting a blob (file or directory) within a folder\n * that has the sticky bit set.\n */\n public manageOwnership: boolean = false;\n\n /**\n * Specifies Permission access granted, which allows the caller to set permissions and\n * POSIX ACLs on blobs (files and directories).\n */\n public manageAccessControl: boolean = false;\n\n /**\n * Converts the given permissions to a string. Using this method will guarantee the permissions are in an\n * order accepted by the service.\n *\n * The order of the characters should be as specified here to ensure correctness.\n * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas\n *\n */\n public toString(): string {\n const permissions: string[] = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.list) {\n permissions.push(\"l\");\n }\n if (this.move) {\n permissions.push(\"m\");\n }\n if (this.execute) {\n permissions.push(\"e\");\n }\n if (this.manageOwnership) {\n permissions.push(\"o\");\n }\n if (this.manageAccessControl) {\n permissions.push(\"p\");\n }\n return permissions.join(\"\");\n }\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOpC,OAAc,MAAM,aAA+C;AACjE,UAAM,0BAA0B,IAAI,yBAAyB;AAE7D,eAAW,QAAQ,aAAa;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,kCAAwB,OAAO;AAC/B;AAAA,QACF,KAAK;AACH,kCAAwB,MAAM;AAC9B;AAAA,QACF,KAAK;AACH,kCAAwB,SAAS;AACjC;AAAA,QACF,KAAK;AACH,kCAAwB,QAAQ;AAChC;AAAA,QACF,KAAK;AACH,kCAAwB,SAAS;AACjC;AAAA,QACF,KAAK;AACH,kCAAwB,OAAO;AAC/B;AAAA,QACF,KAAK;AACH,kCAAwB,OAAO;AAC/B;AAAA,QACF,KAAK;AACH,kCAAwB,UAAU;AAClC;AAAA,QACF,KAAK;AACH,kCAAwB,kBAAkB;AAC1C;AAAA,QACF,KAAK;AACH,kCAAwB,sBAAsB;AAC9C;AAAA,QACF;AACE,gBAAM,IAAI,WAAW,sBAAsB,IAAI,EAAE;AAAA,MACrD;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKO,OAAgB;AAAA;AAAA;AAAA;AAAA,EAKhB,MAAe;AAAA;AAAA;AAAA;AAAA,EAKf,SAAkB;AAAA;AAAA;AAAA;AAAA,EAKlB,QAAiB;AAAA;AAAA;AAAA;AAAA,EAKjB,SAAkB;AAAA;AAAA;AAAA;AAAA,EAKlB,OAAgB;AAAA;AAAA;AAAA;AAAA,EAKhB,OAAgB;AAAA;AAAA;AAAA;AAAA,EAKhB,UAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * This is a helper class to construct a string representing the permissions granted by a ServiceSAS to a container.\n * Setting a value to true means that any SAS which uses these permissions will grant permissions for that operation.\n * Once all the values are set, this should be serialized with toString and set as the permissions field on a\n * {@link DataLakeSASSignatureValues} object. It is possible to construct the permissions string without this class, but\n * the order of the permissions is particular and this class guarantees correctness.\n */\nexport class FileSystemSASPermissions {\n /**\n * Creates an {@link FileSystemSASPermissions} from the specified permissions string. This method will throw an\n * Error if it encounters a character that does not correspond to a valid permission.\n *\n * @param permissions -\n */\n public static parse(permissions: string): FileSystemSASPermissions {\n const containerSASPermissions = new FileSystemSASPermissions();\n\n for (const char of permissions) {\n switch (char) {\n case \"r\":\n containerSASPermissions.read = true;\n break;\n case \"t\":\n containerSASPermissions.tag = true;\n break;\n case \"a\":\n containerSASPermissions.add = true;\n break;\n case \"c\":\n containerSASPermissions.create = true;\n break;\n case \"w\":\n containerSASPermissions.write = true;\n break;\n case \"d\":\n containerSASPermissions.delete = true;\n break;\n case \"l\":\n containerSASPermissions.list = true;\n break;\n case \"m\":\n containerSASPermissions.move = true;\n break;\n case \"e\":\n containerSASPermissions.execute = true;\n break;\n case \"o\":\n containerSASPermissions.manageOwnership = true;\n break;\n case \"p\":\n containerSASPermissions.manageAccessControl = true;\n break;\n default:\n throw new RangeError(`Invalid permission ${char}`);\n }\n }\n\n return containerSASPermissions;\n }\n\n /**\n * Specifies Read access granted.\n */\n public read: boolean = false;\n\n /**\n * Specifies Add access granted.\n */\n public add: boolean = false;\n\n /**\n * Specifies Create access granted.\n */\n public create: boolean = false;\n\n /**\n * Specifies Write access granted.\n */\n public write: boolean = false;\n\n /**\n * Specifies Delete access granted.\n */\n public delete: boolean = false;\n\n /**\n * Specifies List access granted.\n */\n public list: boolean = false;\n\n /**\n * Specifies Move access granted.\n */\n public move: boolean = false;\n\n /**\n * Specifies Execute access granted.\n */\n public execute: boolean = false;\n\n /**\n * Specifies tag access granted.\n */\n public tag: boolean = false;\n\n /**\n * Specifies Ownership access granted, which allows the caller to set owner, owning group,\n * or act as the owner when renaming or deleting a blob (file or directory) within a folder\n * that has the sticky bit set.\n */\n public manageOwnership: boolean = false;\n\n /**\n * Specifies Permission access granted, which allows the caller to set permissions and\n * POSIX ACLs on blobs (files and directories).\n */\n public manageAccessControl: boolean = false;\n\n /**\n * Converts the given permissions to a string. Using this method will guarantee the permissions are in an\n * order accepted by the service.\n *\n * The order of the characters should be as specified here to ensure correctness.\n * @see https://learn.microsoft.com/rest/api/storageservices/constructing-a-service-sas\n *\n */\n public toString(): string {\n const permissions: string[] = [];\n if (this.read) {\n permissions.push(\"r\");\n }\n if (this.tag) {\n permissions.push(\"t\");\n }\n if (this.add) {\n permissions.push(\"a\");\n }\n if (this.create) {\n permissions.push(\"c\");\n }\n if (this.write) {\n permissions.push(\"w\");\n }\n if (this.delete) {\n permissions.push(\"d\");\n }\n if (this.list) {\n permissions.push(\"l\");\n }\n if (this.move) {\n permissions.push(\"m\");\n }\n if (this.execute) {\n permissions.push(\"e\");\n }\n if (this.manageOwnership) {\n permissions.push(\"o\");\n }\n if (this.manageAccessControl) {\n permissions.push(\"p\");\n }\n return permissions.join(\"\");\n }\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,MAAM,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOpC,OAAc,MAAM,aAA+C;AACjE,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AAG;AAAA,IACtB;AACA,QAAI,KAAK,KAAK;AACZ,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,KAAK;AACZ,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,QAAQ;AACf,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,OAAO;AACd,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,QAAQ;AACf,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,MAAM;AACb,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,MAAM;AACb,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,SAAS;AAChB,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,iBAAiB;AACxB,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,QAAI,KAAK,qBAAqB;AAC5B,kBAAY,KAAK,GAAG;AAAA,IACtB;AACA,WAAO,YAAY,KAAK,EAAE;AAAA,EAC5B;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -45,8 +45,8 @@ __export(constants_exports, {
|
|
|
45
45
|
UrlConstants: () => UrlConstants
|
|
46
46
|
});
|
|
47
47
|
module.exports = __toCommonJS(constants_exports);
|
|
48
|
-
const SDK_VERSION = "12.
|
|
49
|
-
const SERVICE_VERSION = "2026-
|
|
48
|
+
const SDK_VERSION = "12.31.0";
|
|
49
|
+
const SERVICE_VERSION = "2026-06-06";
|
|
50
50
|
const KB = 1024;
|
|
51
51
|
const MB = KB * 1024;
|
|
52
52
|
const GB = MB * 1024;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/constants.ts"],
|
|
4
|
-
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"12.
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport const SDK_VERSION: string = \"12.31.0\";\nexport const SERVICE_VERSION: string = \"2026-06-06\";\n\nexport const KB: number = 1024;\nexport const MB: number = KB * 1024;\nexport const GB: number = MB * 1024;\nexport const TB: number = GB * 1024;\n\nexport const DEFAULT_HIGH_LEVEL_CONCURRENCY: number = 5;\nexport const FILE_MAX_SINGLE_UPLOAD_THRESHOLD: number = 100 * MB;\nexport const FILE_UPLOAD_MAX_CHUNK_SIZE: number = 4000 * MB;\nexport const FILE_UPLOAD_DEFAULT_CHUNK_SIZE: number = 8 * MB;\nexport const BLOCK_BLOB_MAX_BLOCKS: number = 50000;\nexport const FILE_MAX_SIZE_BYTES: number = BLOCK_BLOB_MAX_BLOCKS * FILE_UPLOAD_MAX_CHUNK_SIZE;\n\n/**\n * The OAuth scope to use with Azure Storage.\n */\nexport const StorageOAuthScopes: string | string[] = \"https://storage.azure.com/.default\";\n\nexport const StorageDataLakeLoggingAllowedHeaderNames = [\n \"Access-Control-Allow-Origin\",\n \"Cache-Control\",\n \"Content-Length\",\n \"Content-Type\",\n \"Date\",\n \"Request-Id\",\n \"traceparent\",\n \"Transfer-Encoding\",\n \"User-Agent\",\n \"x-ms-client-request-id\",\n \"x-ms-date\",\n \"x-ms-error-code\",\n \"x-ms-request-id\",\n \"x-ms-return-client-request-id\",\n \"x-ms-version\",\n \"Accept-Ranges\",\n \"Content-Disposition\",\n \"Content-Encoding\",\n \"Content-Language\",\n \"Content-MD5\",\n \"Content-Range\",\n \"ETag\",\n \"Last-Modified\",\n \"Server\",\n \"Vary\",\n \"x-ms-content-crc64\",\n \"x-ms-copy-action\",\n \"x-ms-copy-completion-time\",\n \"x-ms-copy-id\",\n \"x-ms-copy-progress\",\n \"x-ms-copy-status\",\n \"x-ms-has-immutability-policy\",\n \"x-ms-has-legal-hold\",\n \"x-ms-lease-state\",\n \"x-ms-lease-status\",\n \"x-ms-range\",\n \"x-ms-request-server-encrypted\",\n \"x-ms-server-encrypted\",\n \"x-ms-snapshot\",\n \"x-ms-source-range\",\n \"If-Match\",\n \"If-Modified-Since\",\n \"If-None-Match\",\n \"If-Unmodified-Since\",\n \"x-ms-access-tier\",\n \"x-ms-access-tier-change-time\",\n \"x-ms-access-tier-inferred\",\n \"x-ms-account-kind\",\n \"x-ms-archive-status\",\n \"x-ms-blob-append-offset\",\n \"x-ms-blob-cache-control\",\n \"x-ms-blob-committed-block-count\",\n \"x-ms-blob-condition-appendpos\",\n \"x-ms-blob-condition-maxsize\",\n \"x-ms-blob-content-disposition\",\n \"x-ms-blob-content-encoding\",\n \"x-ms-blob-content-language\",\n \"x-ms-blob-content-length\",\n \"x-ms-blob-content-md5\",\n \"x-ms-blob-content-type\",\n \"x-ms-blob-public-access\",\n \"x-ms-blob-sequence-number\",\n \"x-ms-blob-type\",\n \"x-ms-copy-destination-snapshot\",\n \"x-ms-creation-time\",\n \"x-ms-default-encryption-scope\",\n \"x-ms-delete-snapshots\",\n \"x-ms-delete-type-permanent\",\n \"x-ms-deny-encryption-scope-override\",\n \"x-ms-encryption-algorithm\",\n \"x-ms-if-sequence-number-eq\",\n \"x-ms-if-sequence-number-le\",\n \"x-ms-if-sequence-number-lt\",\n \"x-ms-incremental-copy\",\n \"x-ms-lease-action\",\n \"x-ms-lease-break-period\",\n \"x-ms-lease-duration\",\n \"x-ms-lease-id\",\n \"x-ms-lease-time\",\n \"x-ms-page-write\",\n \"x-ms-proposed-lease-id\",\n \"x-ms-range-get-content-md5\",\n \"x-ms-rehydrate-priority\",\n \"x-ms-sequence-number-action\",\n \"x-ms-sku-name\",\n \"x-ms-source-content-md5\",\n \"x-ms-source-if-match\",\n \"x-ms-source-if-modified-since\",\n \"x-ms-source-if-none-match\",\n \"x-ms-source-if-unmodified-since\",\n \"x-ms-tag-count\",\n \"x-ms-encryption-key-sha256\",\n];\n\nexport const StorageDataLakeLoggingAllowedQueryParameters = [\n \"comp\",\n \"maxresults\",\n \"rscc\",\n \"rscd\",\n \"rsce\",\n \"rscl\",\n \"rsct\",\n \"se\",\n \"si\",\n \"sip\",\n \"sp\",\n \"spr\",\n \"sr\",\n \"srt\",\n \"ss\",\n \"st\",\n \"sv\",\n \"include\",\n \"marker\",\n \"prefix\",\n \"copyid\",\n \"restype\",\n \"blockid\",\n \"blocklisttype\",\n \"delimiter\",\n \"prevsnapshot\",\n \"ske\",\n \"skoid\",\n \"sks\",\n \"skt\",\n \"sktid\",\n \"skv\",\n \"snapshot\",\n];\n\nexport const UrlConstants = {\n Parameters: {\n FORCE_BROWSER_NO_CACHE: \"_\",\n SIGNATURE: \"sig\",\n SNAPSHOT: \"snapshot\",\n TIMEOUT: \"timeout\",\n },\n};\n\nexport const HttpUrlConnection = {\n HTTP_ACCEPTED: 202,\n HTTP_CONFLICT: 409,\n HTTP_NOT_FOUND: 404,\n HTTP_PRECON_FAILED: 412,\n HTTP_RANGE_NOT_SATISFIABLE: 416,\n};\n\nexport const HeaderConstants = {\n AUTHORIZATION: \"Authorization\",\n AUTHORIZATION_SCHEME: \"Bearer\",\n CONTENT_ENCODING: \"Content-Encoding\",\n CONTENT_ID: \"Content-ID\",\n CONTENT_LANGUAGE: \"Content-Language\",\n CONTENT_LENGTH: \"Content-Length\",\n CONTENT_MD5: \"Content-Md5\",\n CONTENT_TRANSFER_ENCODING: \"Content-Transfer-Encoding\",\n CONTENT_TYPE: \"Content-Type\",\n COOKIE: \"Cookie\",\n DATE: \"date\",\n IF_MATCH: \"if-match\",\n IF_MODIFIED_SINCE: \"if-modified-since\",\n IF_NONE_MATCH: \"if-none-match\",\n IF_UNMODIFIED_SINCE: \"if-unmodified-since\",\n PREFIX_FOR_STORAGE: \"x-ms-\",\n RANGE: \"Range\",\n USER_AGENT: \"User-Agent\",\n X_MS_CLIENT_REQUEST_ID: \"x-ms-client-request-id\",\n X_MS_COPY_SOURCE: \"x-ms-copy-source\",\n X_MS_DATE: \"x-ms-date\",\n X_MS_ERROR_CODE: \"x-ms-error-code\",\n X_MS_VERSION: \"x-ms-version\",\n};\n\nexport const DevelopmentConnectionString = `DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;\n\n// Mapping pairs to transform url from dfs endpoint to blob endpoint\n// Customize this value to add more mapping patterns\nexport const ToBlobEndpointHostMappings = [\n [\"dfs.preprod.core.windows.net\", \"blob.preprod.core.windows.net\"],\n [\"dfs.core.windows.net\", \"blob.core.windows.net\"],\n [\"dfs.core.chinacloudapi.cn\", \"blob.core.chinacloudapi.cn\"],\n [\"dfs.core.usgovcloudapi.net\", \"blob.core.usgovcloudapi.net\"],\n [\"dfs.core.cloudapi.de\", \"blob.core.cloudapi.de\"],\n [\"dfs.core.microsoft.scloud\", \"blob.core.microsoft.scloud\"],\n [\"dfs.core.eaglex.ic.gov\", \"blob.core.eaglex.ic.gov\"],\n [\"dfs.storage.azure.net\", \"blob.storage.azure.net\"],\n];\n\n// Mapping pairs to transform url from blob endpoint to dfs endpoint\n// Customize this value to add more mapping patterns\nexport const ToDfsEndpointHostMappings = [\n [\"blob.preprod.core.windows.net\", \"dfs.preprod.core.windows.net\"],\n [\"blob.core.windows.net\", \"dfs.core.windows.net\"],\n [\"blob.core.chinacloudapi.cn\", \"dfs.core.chinacloudapi.cn\"],\n [\"blob.core.usgovcloudapi.net\", \"dfs.core.usgovcloudapi.net\"],\n [\"blob.core.cloudapi.de\", \"dfs.core.cloudapi.de\"],\n [\"blob.core.microsoft.scloud\", \"dfs.core.microsoft.scloud\"],\n [\"blob.core.eaglex.ic.gov\", \"dfs.core.eaglex.ic.gov\"],\n [\"blob.storage.azure.net\", \"dfs.storage.azure.net\"],\n];\n\nexport const ETagAny = \"*\";\n\nexport const DeletionIdKey = \"deletionid\";\nexport const EncryptionAlgorithmAES25 = \"AES256\";\n\nexport const PathResultTypeConstants = {\n FileResourceType: \"file\",\n DirectoryResourceType: \"directory\",\n};\n\n/// List of ports used for path style addressing.\n/// Path style addressing means that storage account is put in URI's Path segment in instead of in host.\nexport const PathStylePorts = [\n \"10000\",\n \"10001\",\n \"10002\",\n \"10003\",\n \"10004\",\n \"10100\",\n \"10101\",\n \"10102\",\n \"10103\",\n \"10104\",\n \"11000\",\n \"11001\",\n \"11002\",\n \"11003\",\n \"11004\",\n \"11100\",\n \"11101\",\n \"11102\",\n \"11103\",\n \"11104\",\n];\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,MAAM,cAAsB;AAC5B,MAAM,kBAA0B;AAEhC,MAAM,KAAa;AACnB,MAAM,KAAa,KAAK;AACxB,MAAM,KAAa,KAAK;AACxB,MAAM,KAAa,KAAK;AAExB,MAAM,iCAAyC;AAC/C,MAAM,mCAA2C,MAAM;AACvD,MAAM,6BAAqC,MAAO;AAClD,MAAM,iCAAyC,IAAI;AACnD,MAAM,wBAAgC;AACtC,MAAM,sBAA8B,wBAAwB;AAK5D,MAAM,qBAAwC;AAE9C,MAAM,2CAA2C;AAAA,EACtD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;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AA2B;AAEjC,MAAM,0BAA0B;AAAA,EACrC,kBAAkB;AAAA,EAClB,uBAAuB;AACzB;AAIO,MAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.common.d.ts","sourceRoot":"","sources":["../../../src/utils/utils.common.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAG7D,OAAO,KAAK,EAAE,wBAAwB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,EACL,OAAO,EACP,sCAAsC,EACtC,yBAAyB,EACzB,qBAAqB,EACrB,eAAe,EACf,wBAAwB,EACzB,MAAM,cAAc,CAAC;AAStB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAG5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAUjD;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,mBAAmB,GAAG,eAAe,CAAC;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAkBD,wBAAgB,oBAAoB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IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,yBAAyB,CAAC,EAAE,UAAU,CAAC;IACvC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,UAAU,yBAAyB;IACjC,uBAAuB,CAAC,EAAE,UAAU,CAAC;IACrC,yBAAyB,CAAC,EAAE,UAAU,CAAC;IACvC,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,UAAU,kBAAkB;IAC1B,wBAAwB,CAAC,EAAE,wBAAwB,CAAC;IACpD,IAAI,EAAE,eAAe,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,wBAAsB,2BAA2B,CAC/C,IAAI,EAAE,eAAe,EACrB,aAAa,EAAE,MAAM,EACrB,UAAU,EAAE,4BAA4B,EACxC,aAAa,EAAE,yBAAyB,EACxC,8BAA8B,CAAC,EAAE,wBAAwB,GACxD,OAAO,CAAC,kBAAkB,CAAC,CAmC7B;AAED,wBAAgB,wCAAwC,CACtD,SAAS,EAAE,OAAO,GACjB,SAAS,IAAI,sCAAsC,CAQrD"}
|
|
@@ -293,12 +293,25 @@ function sanitizeHeaders(originalHeader) {
|
|
|
293
293
|
function iEqual(str1, str2) {
|
|
294
294
|
return str1.toLocaleLowerCase() === str2.toLocaleLowerCase();
|
|
295
295
|
}
|
|
296
|
+
const accountNameSuffixes = [
|
|
297
|
+
"-secondary-ipv6",
|
|
298
|
+
"-secondary-dualstack",
|
|
299
|
+
"-ipv6",
|
|
300
|
+
"-dualstack",
|
|
301
|
+
"-secondary"
|
|
302
|
+
];
|
|
296
303
|
function getAccountNameFromUrl(url) {
|
|
297
304
|
const parsedUrl = new URL(url);
|
|
298
305
|
let accountName;
|
|
299
306
|
try {
|
|
300
307
|
if (parsedUrl.hostname.split(".")[1] === "blob") {
|
|
301
308
|
accountName = parsedUrl.hostname.split(".")[0];
|
|
309
|
+
for (let i = 0; i < accountNameSuffixes.length; ++i) {
|
|
310
|
+
const suffix = accountNameSuffixes[i];
|
|
311
|
+
if (accountName.endsWith(suffix)) {
|
|
312
|
+
accountName = accountName.substring(0, accountName.length - suffix.length);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
302
315
|
} else if (isIpEndpointStyle(parsedUrl)) {
|
|
303
316
|
accountName = parsedUrl.pathname.split("/")[1];
|
|
304
317
|
} else {
|