@azure/storage-file-datalake 12.14.0 → 12.15.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +30 -7
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/clients.js +11 -2
- package/dist-esm/storage-file-datalake/src/clients.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/generated/src/models/parameters.js +11 -1
- package/dist-esm/storage-file-datalake/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operations/path.js +5 -1
- package/dist-esm/storage-file-datalake/src/generated/src/operations/path.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/generated/src/storageClientContext.js +2 -2
- package/dist-esm/storage-file-datalake/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/storage-file-datalake/src/utils/constants.js +2 -2
- package/dist-esm/storage-file-datalake/src/utils/constants.js.map +1 -1
- package/package.json +2 -2
- package/types/3.1/storage-file-datalake.d.ts +1 -0
- package/types/latest/storage-file-datalake.d.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -123,8 +123,8 @@ class AnonymousCredential extends Credential {
|
|
|
123
123
|
|
|
124
124
|
// Copyright (c) Microsoft Corporation.
|
|
125
125
|
// Licensed under the MIT license.
|
|
126
|
-
const SDK_VERSION = "12.
|
|
127
|
-
const SERVICE_VERSION = "2023-
|
|
126
|
+
const SDK_VERSION = "12.15.0-beta.1";
|
|
127
|
+
const SERVICE_VERSION = "2023-08-03";
|
|
128
128
|
const KB = 1024;
|
|
129
129
|
const MB = KB * 1024;
|
|
130
130
|
const DEFAULT_HIGH_LEVEL_CONCURRENCY = 5;
|
|
@@ -4002,7 +4002,7 @@ const timeout = {
|
|
|
4002
4002
|
const version = {
|
|
4003
4003
|
parameterPath: "version",
|
|
4004
4004
|
mapper: {
|
|
4005
|
-
defaultValue: "2023-
|
|
4005
|
+
defaultValue: "2023-08-03",
|
|
4006
4006
|
isConstant: true,
|
|
4007
4007
|
serializedName: "x-ms-version",
|
|
4008
4008
|
type: {
|
|
@@ -4694,6 +4694,16 @@ const recursive1 = {
|
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
4696
4696
|
};
|
|
4697
|
+
const paginated = {
|
|
4698
|
+
parameterPath: ["options", "paginated"],
|
|
4699
|
+
mapper: {
|
|
4700
|
+
serializedName: "paginated",
|
|
4701
|
+
xmlName: "paginated",
|
|
4702
|
+
type: {
|
|
4703
|
+
name: "Boolean"
|
|
4704
|
+
}
|
|
4705
|
+
}
|
|
4706
|
+
};
|
|
4697
4707
|
const action2 = {
|
|
4698
4708
|
parameterPath: "action",
|
|
4699
4709
|
mapper: {
|
|
@@ -5501,6 +5511,9 @@ const deleteOperationSpec = {
|
|
|
5501
5511
|
200: {
|
|
5502
5512
|
headersMapper: PathDeleteHeaders
|
|
5503
5513
|
},
|
|
5514
|
+
202: {
|
|
5515
|
+
headersMapper: PathDeleteHeaders
|
|
5516
|
+
},
|
|
5504
5517
|
default: {
|
|
5505
5518
|
bodyMapper: StorageError,
|
|
5506
5519
|
headersMapper: PathDeleteExceptionHeaders
|
|
@@ -5509,7 +5522,8 @@ const deleteOperationSpec = {
|
|
|
5509
5522
|
queryParameters: [
|
|
5510
5523
|
continuation,
|
|
5511
5524
|
timeout,
|
|
5512
|
-
recursive1
|
|
5525
|
+
recursive1,
|
|
5526
|
+
paginated
|
|
5513
5527
|
],
|
|
5514
5528
|
urlParameters: [url],
|
|
5515
5529
|
headerParameters: [
|
|
@@ -6178,7 +6192,7 @@ function attachCredential(thing, credential) {
|
|
|
6178
6192
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
6179
6193
|
*/
|
|
6180
6194
|
const packageName = "azure-storage-datalake";
|
|
6181
|
-
const packageVersion = "12.
|
|
6195
|
+
const packageVersion = "12.15.0-beta.1";
|
|
6182
6196
|
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
|
6183
6197
|
/**
|
|
6184
6198
|
* Initializes a new instance of the StorageClientContext class.
|
|
@@ -6204,7 +6218,7 @@ class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
|
|
6204
6218
|
// Parameter assignments
|
|
6205
6219
|
this.url = url;
|
|
6206
6220
|
// Assigning values to Constant parameters
|
|
6207
|
-
this.version = options.version || "2023-
|
|
6221
|
+
this.version = options.version || "2023-08-03";
|
|
6208
6222
|
this.resource = options.resource || "filesystem";
|
|
6209
6223
|
}
|
|
6210
6224
|
}
|
|
@@ -8362,12 +8376,21 @@ class DataLakePathClient extends StorageClient {
|
|
|
8362
8376
|
options.conditions = options.conditions || {};
|
|
8363
8377
|
const { span, updatedOptions } = createSpan("DataLakePathClient-delete", options);
|
|
8364
8378
|
try {
|
|
8379
|
+
if (this.isTokenCredential === undefined) {
|
|
8380
|
+
this.isTokenCredential = false;
|
|
8381
|
+
this.pipeline.factories.forEach((factory) => {
|
|
8382
|
+
if (coreHttp.isTokenCredential(factory.credential)) {
|
|
8383
|
+
this.isTokenCredential = true;
|
|
8384
|
+
}
|
|
8385
|
+
});
|
|
8386
|
+
}
|
|
8387
|
+
const paginated = recursive === true && this.isTokenCredential === true;
|
|
8365
8388
|
let continuation;
|
|
8366
8389
|
let response;
|
|
8367
8390
|
// How to handle long delete loop?
|
|
8368
8391
|
do {
|
|
8369
8392
|
response = await this.pathContext.delete(Object.assign(Object.assign({ continuation,
|
|
8370
|
-
recursive, leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions }, convertTracingToRequestOptionsBase(updatedOptions)), { abortSignal: options.abortSignal }));
|
|
8393
|
+
recursive, leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions }, convertTracingToRequestOptionsBase(updatedOptions)), { abortSignal: options.abortSignal, paginated: paginated }));
|
|
8371
8394
|
continuation = response.continuation;
|
|
8372
8395
|
} while (continuation !== undefined && continuation !== "");
|
|
8373
8396
|
return response;
|