@azure/storage-file-share 12.9.0-alpha.20220111.2 → 12.9.0-alpha.20220211.2
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/CHANGELOG.md +12 -5
- package/README.md +6 -5
- package/dist/index.js +786 -227
- package/dist/index.js.map +1 -1
- package/dist-esm/src/Clients.js +125 -1
- package/dist-esm/src/Clients.js.map +1 -1
- package/dist-esm/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/src/generated/src/models/mappers.js +232 -0
- package/dist-esm/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/src/models/parameters.js +101 -35
- package/dist-esm/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/src/generated/src/operations/directory.js +48 -0
- package/dist-esm/src/generated/src/operations/directory.js.map +1 -1
- package/dist-esm/src/generated/src/operations/file.js +51 -7
- package/dist-esm/src/generated/src/operations/file.js.map +1 -1
- package/dist-esm/src/generated/src/storageClientContext.js +2 -2
- package/dist-esm/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/src/generatedModels.js.map +1 -1
- package/dist-esm/src/utils/constants.js +2 -2
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/utils.common.js +22 -0
- package/dist-esm/src/utils/utils.common.js.map +1 -1
- package/package.json +33 -34
- package/{typings → types}/3.1/storage-file-share.d.ts +225 -4
- package/{typings → types}/latest/storage-file-share.d.ts +231 -4
package/dist/index.js
CHANGED
@@ -15,6 +15,29 @@ var events = require('events');
|
|
15
15
|
var fs = require('fs');
|
16
16
|
var util = require('util');
|
17
17
|
|
18
|
+
function _interopNamespace(e) {
|
19
|
+
if (e && e.__esModule) return e;
|
20
|
+
var n = Object.create(null);
|
21
|
+
if (e) {
|
22
|
+
Object.keys(e).forEach(function (k) {
|
23
|
+
if (k !== 'default') {
|
24
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
25
|
+
Object.defineProperty(n, k, d.get ? d : {
|
26
|
+
enumerable: true,
|
27
|
+
get: function () { return e[k]; }
|
28
|
+
});
|
29
|
+
}
|
30
|
+
});
|
31
|
+
}
|
32
|
+
n["default"] = e;
|
33
|
+
return Object.freeze(n);
|
34
|
+
}
|
35
|
+
|
36
|
+
var coreHttp__namespace = /*#__PURE__*/_interopNamespace(coreHttp);
|
37
|
+
var os__namespace = /*#__PURE__*/_interopNamespace(os);
|
38
|
+
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
39
|
+
var util__namespace = /*#__PURE__*/_interopNamespace(util);
|
40
|
+
|
18
41
|
// Copyright (c) Microsoft Corporation.
|
19
42
|
// Licensed under the MIT license.
|
20
43
|
/**
|
@@ -311,8 +334,8 @@ function ipRangeToString(ipRange) {
|
|
311
334
|
|
312
335
|
// Copyright (c) Microsoft Corporation.
|
313
336
|
// Licensed under the MIT license.
|
314
|
-
const SDK_VERSION = "12.9.0-beta.
|
315
|
-
const SERVICE_VERSION = "2021-
|
337
|
+
const SDK_VERSION = "12.9.0-beta.4";
|
338
|
+
const SERVICE_VERSION = "2021-04-10";
|
316
339
|
const FILE_MAX_SIZE_BYTES = 4 * 1024 * 1024 * 1024 * 1024; // 4TB
|
317
340
|
const FILE_RANGE_MAX_SIZE_BYTES = 4 * 1024 * 1024; // 4MB
|
318
341
|
const DEFAULT_MAX_DOWNLOAD_RETRY_REQUESTS = 5;
|
@@ -802,8 +825,34 @@ function getShareNameAndPathFromUrl(url) {
|
|
802
825
|
function httpAuthorizationToString(httpAuthorization) {
|
803
826
|
return httpAuthorization ? httpAuthorization.scheme + " " + httpAuthorization.value : undefined;
|
804
827
|
}
|
828
|
+
/**
|
829
|
+
* Set URL path.
|
830
|
+
*
|
831
|
+
* @param url - URL to change path to.
|
832
|
+
* @param path - Path to set into the URL.
|
833
|
+
*/
|
834
|
+
function setURLPath(url, path) {
|
835
|
+
const urlParsed = coreHttp.URLBuilder.parse(url);
|
836
|
+
urlParsed.setPath(path);
|
837
|
+
return urlParsed.toString();
|
838
|
+
}
|
839
|
+
/**
|
840
|
+
* Set URL query string.
|
841
|
+
*
|
842
|
+
* @param url - URL to set query string to.
|
843
|
+
* @param queryString - Query string to set to the URL.
|
844
|
+
*/
|
845
|
+
function setURLQueries(url, queryString) {
|
846
|
+
const urlParsed = coreHttp.URLBuilder.parse(url);
|
847
|
+
urlParsed.setQuery(queryString);
|
848
|
+
return urlParsed.toString();
|
849
|
+
}
|
805
850
|
|
806
851
|
// Copyright (c) Microsoft Corporation.
|
852
|
+
/**
|
853
|
+
* Protocols for generated SAS.
|
854
|
+
*/
|
855
|
+
exports.SASProtocol = void 0;
|
807
856
|
(function (SASProtocol) {
|
808
857
|
/**
|
809
858
|
* Protocol that allows HTTPS only
|
@@ -4450,6 +4499,122 @@ const DirectoryForceCloseHandlesExceptionHeaders = {
|
|
4450
4499
|
}
|
4451
4500
|
}
|
4452
4501
|
};
|
4502
|
+
const DirectoryRenameHeaders = {
|
4503
|
+
serializedName: "Directory_renameHeaders",
|
4504
|
+
type: {
|
4505
|
+
name: "Composite",
|
4506
|
+
className: "DirectoryRenameHeaders",
|
4507
|
+
modelProperties: {
|
4508
|
+
etag: {
|
4509
|
+
serializedName: "etag",
|
4510
|
+
xmlName: "etag",
|
4511
|
+
type: {
|
4512
|
+
name: "String"
|
4513
|
+
}
|
4514
|
+
},
|
4515
|
+
lastModified: {
|
4516
|
+
serializedName: "last-modified",
|
4517
|
+
xmlName: "last-modified",
|
4518
|
+
type: {
|
4519
|
+
name: "DateTimeRfc1123"
|
4520
|
+
}
|
4521
|
+
},
|
4522
|
+
requestId: {
|
4523
|
+
serializedName: "x-ms-request-id",
|
4524
|
+
xmlName: "x-ms-request-id",
|
4525
|
+
type: {
|
4526
|
+
name: "String"
|
4527
|
+
}
|
4528
|
+
},
|
4529
|
+
version: {
|
4530
|
+
serializedName: "x-ms-version",
|
4531
|
+
xmlName: "x-ms-version",
|
4532
|
+
type: {
|
4533
|
+
name: "String"
|
4534
|
+
}
|
4535
|
+
},
|
4536
|
+
date: {
|
4537
|
+
serializedName: "date",
|
4538
|
+
xmlName: "date",
|
4539
|
+
type: {
|
4540
|
+
name: "DateTimeRfc1123"
|
4541
|
+
}
|
4542
|
+
},
|
4543
|
+
isServerEncrypted: {
|
4544
|
+
serializedName: "x-ms-request-server-encrypted",
|
4545
|
+
xmlName: "x-ms-request-server-encrypted",
|
4546
|
+
type: {
|
4547
|
+
name: "Boolean"
|
4548
|
+
}
|
4549
|
+
},
|
4550
|
+
filePermissionKey: {
|
4551
|
+
serializedName: "x-ms-file-permission-key",
|
4552
|
+
xmlName: "x-ms-file-permission-key",
|
4553
|
+
type: {
|
4554
|
+
name: "String"
|
4555
|
+
}
|
4556
|
+
},
|
4557
|
+
fileAttributes: {
|
4558
|
+
serializedName: "x-ms-file-attributes",
|
4559
|
+
xmlName: "x-ms-file-attributes",
|
4560
|
+
type: {
|
4561
|
+
name: "String"
|
4562
|
+
}
|
4563
|
+
},
|
4564
|
+
fileCreationTime: {
|
4565
|
+
serializedName: "x-ms-file-creation-time",
|
4566
|
+
xmlName: "x-ms-file-creation-time",
|
4567
|
+
type: {
|
4568
|
+
name: "DateTimeRfc1123"
|
4569
|
+
}
|
4570
|
+
},
|
4571
|
+
fileLastWriteTime: {
|
4572
|
+
serializedName: "x-ms-file-last-write-time",
|
4573
|
+
xmlName: "x-ms-file-last-write-time",
|
4574
|
+
type: {
|
4575
|
+
name: "DateTimeRfc1123"
|
4576
|
+
}
|
4577
|
+
},
|
4578
|
+
fileChangeTime: {
|
4579
|
+
serializedName: "x-ms-file-change-time",
|
4580
|
+
xmlName: "x-ms-file-change-time",
|
4581
|
+
type: {
|
4582
|
+
name: "DateTimeRfc1123"
|
4583
|
+
}
|
4584
|
+
},
|
4585
|
+
fileId: {
|
4586
|
+
serializedName: "x-ms-file-id",
|
4587
|
+
xmlName: "x-ms-file-id",
|
4588
|
+
type: {
|
4589
|
+
name: "String"
|
4590
|
+
}
|
4591
|
+
},
|
4592
|
+
fileParentId: {
|
4593
|
+
serializedName: "x-ms-file-parent-id",
|
4594
|
+
xmlName: "x-ms-file-parent-id",
|
4595
|
+
type: {
|
4596
|
+
name: "String"
|
4597
|
+
}
|
4598
|
+
}
|
4599
|
+
}
|
4600
|
+
}
|
4601
|
+
};
|
4602
|
+
const DirectoryRenameExceptionHeaders = {
|
4603
|
+
serializedName: "Directory_renameExceptionHeaders",
|
4604
|
+
type: {
|
4605
|
+
name: "Composite",
|
4606
|
+
className: "DirectoryRenameExceptionHeaders",
|
4607
|
+
modelProperties: {
|
4608
|
+
errorCode: {
|
4609
|
+
serializedName: "x-ms-error-code",
|
4610
|
+
xmlName: "x-ms-error-code",
|
4611
|
+
type: {
|
4612
|
+
name: "String"
|
4613
|
+
}
|
4614
|
+
}
|
4615
|
+
}
|
4616
|
+
}
|
4617
|
+
};
|
4453
4618
|
const FileCreateHeaders = {
|
4454
4619
|
serializedName: "File_createHeaders",
|
4455
4620
|
type: {
|
@@ -6146,6 +6311,122 @@ const FileForceCloseHandlesExceptionHeaders = {
|
|
6146
6311
|
}
|
6147
6312
|
}
|
6148
6313
|
};
|
6314
|
+
const FileRenameHeaders = {
|
6315
|
+
serializedName: "File_renameHeaders",
|
6316
|
+
type: {
|
6317
|
+
name: "Composite",
|
6318
|
+
className: "FileRenameHeaders",
|
6319
|
+
modelProperties: {
|
6320
|
+
etag: {
|
6321
|
+
serializedName: "etag",
|
6322
|
+
xmlName: "etag",
|
6323
|
+
type: {
|
6324
|
+
name: "String"
|
6325
|
+
}
|
6326
|
+
},
|
6327
|
+
lastModified: {
|
6328
|
+
serializedName: "last-modified",
|
6329
|
+
xmlName: "last-modified",
|
6330
|
+
type: {
|
6331
|
+
name: "DateTimeRfc1123"
|
6332
|
+
}
|
6333
|
+
},
|
6334
|
+
requestId: {
|
6335
|
+
serializedName: "x-ms-request-id",
|
6336
|
+
xmlName: "x-ms-request-id",
|
6337
|
+
type: {
|
6338
|
+
name: "String"
|
6339
|
+
}
|
6340
|
+
},
|
6341
|
+
version: {
|
6342
|
+
serializedName: "x-ms-version",
|
6343
|
+
xmlName: "x-ms-version",
|
6344
|
+
type: {
|
6345
|
+
name: "String"
|
6346
|
+
}
|
6347
|
+
},
|
6348
|
+
date: {
|
6349
|
+
serializedName: "date",
|
6350
|
+
xmlName: "date",
|
6351
|
+
type: {
|
6352
|
+
name: "DateTimeRfc1123"
|
6353
|
+
}
|
6354
|
+
},
|
6355
|
+
isServerEncrypted: {
|
6356
|
+
serializedName: "x-ms-request-server-encrypted",
|
6357
|
+
xmlName: "x-ms-request-server-encrypted",
|
6358
|
+
type: {
|
6359
|
+
name: "Boolean"
|
6360
|
+
}
|
6361
|
+
},
|
6362
|
+
filePermissionKey: {
|
6363
|
+
serializedName: "x-ms-file-permission-key",
|
6364
|
+
xmlName: "x-ms-file-permission-key",
|
6365
|
+
type: {
|
6366
|
+
name: "String"
|
6367
|
+
}
|
6368
|
+
},
|
6369
|
+
fileAttributes: {
|
6370
|
+
serializedName: "x-ms-file-attributes",
|
6371
|
+
xmlName: "x-ms-file-attributes",
|
6372
|
+
type: {
|
6373
|
+
name: "String"
|
6374
|
+
}
|
6375
|
+
},
|
6376
|
+
fileCreationTime: {
|
6377
|
+
serializedName: "x-ms-file-creation-time",
|
6378
|
+
xmlName: "x-ms-file-creation-time",
|
6379
|
+
type: {
|
6380
|
+
name: "DateTimeRfc1123"
|
6381
|
+
}
|
6382
|
+
},
|
6383
|
+
fileLastWriteTime: {
|
6384
|
+
serializedName: "x-ms-file-last-write-time",
|
6385
|
+
xmlName: "x-ms-file-last-write-time",
|
6386
|
+
type: {
|
6387
|
+
name: "DateTimeRfc1123"
|
6388
|
+
}
|
6389
|
+
},
|
6390
|
+
fileChangeTime: {
|
6391
|
+
serializedName: "x-ms-file-change-time",
|
6392
|
+
xmlName: "x-ms-file-change-time",
|
6393
|
+
type: {
|
6394
|
+
name: "DateTimeRfc1123"
|
6395
|
+
}
|
6396
|
+
},
|
6397
|
+
fileId: {
|
6398
|
+
serializedName: "x-ms-file-id",
|
6399
|
+
xmlName: "x-ms-file-id",
|
6400
|
+
type: {
|
6401
|
+
name: "String"
|
6402
|
+
}
|
6403
|
+
},
|
6404
|
+
fileParentId: {
|
6405
|
+
serializedName: "x-ms-file-parent-id",
|
6406
|
+
xmlName: "x-ms-file-parent-id",
|
6407
|
+
type: {
|
6408
|
+
name: "String"
|
6409
|
+
}
|
6410
|
+
}
|
6411
|
+
}
|
6412
|
+
}
|
6413
|
+
};
|
6414
|
+
const FileRenameExceptionHeaders = {
|
6415
|
+
serializedName: "File_renameExceptionHeaders",
|
6416
|
+
type: {
|
6417
|
+
name: "Composite",
|
6418
|
+
className: "FileRenameExceptionHeaders",
|
6419
|
+
modelProperties: {
|
6420
|
+
errorCode: {
|
6421
|
+
serializedName: "x-ms-error-code",
|
6422
|
+
xmlName: "x-ms-error-code",
|
6423
|
+
type: {
|
6424
|
+
name: "String"
|
6425
|
+
}
|
6426
|
+
}
|
6427
|
+
}
|
6428
|
+
}
|
6429
|
+
};
|
6149
6430
|
|
6150
6431
|
var Mappers = /*#__PURE__*/Object.freeze({
|
6151
6432
|
__proto__: null,
|
@@ -6230,6 +6511,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
6230
6511
|
DirectoryListHandlesExceptionHeaders: DirectoryListHandlesExceptionHeaders,
|
6231
6512
|
DirectoryForceCloseHandlesHeaders: DirectoryForceCloseHandlesHeaders,
|
6232
6513
|
DirectoryForceCloseHandlesExceptionHeaders: DirectoryForceCloseHandlesExceptionHeaders,
|
6514
|
+
DirectoryRenameHeaders: DirectoryRenameHeaders,
|
6515
|
+
DirectoryRenameExceptionHeaders: DirectoryRenameExceptionHeaders,
|
6233
6516
|
FileCreateHeaders: FileCreateHeaders,
|
6234
6517
|
FileCreateExceptionHeaders: FileCreateExceptionHeaders,
|
6235
6518
|
FileDownloadHeaders: FileDownloadHeaders,
|
@@ -6263,7 +6546,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
6263
6546
|
FileListHandlesHeaders: FileListHandlesHeaders,
|
6264
6547
|
FileListHandlesExceptionHeaders: FileListHandlesExceptionHeaders,
|
6265
6548
|
FileForceCloseHandlesHeaders: FileForceCloseHandlesHeaders,
|
6266
|
-
FileForceCloseHandlesExceptionHeaders: FileForceCloseHandlesExceptionHeaders
|
6549
|
+
FileForceCloseHandlesExceptionHeaders: FileForceCloseHandlesExceptionHeaders,
|
6550
|
+
FileRenameHeaders: FileRenameHeaders,
|
6551
|
+
FileRenameExceptionHeaders: FileRenameExceptionHeaders
|
6267
6552
|
});
|
6268
6553
|
|
6269
6554
|
/*
|
@@ -6349,7 +6634,7 @@ const timeoutInSeconds = {
|
|
6349
6634
|
const version = {
|
6350
6635
|
parameterPath: "version",
|
6351
6636
|
mapper: {
|
6352
|
-
defaultValue: "2021-
|
6637
|
+
defaultValue: "2021-04-10",
|
6353
6638
|
isConstant: true,
|
6354
6639
|
serializedName: "x-ms-version",
|
6355
6640
|
type: {
|
@@ -6911,32 +7196,128 @@ const handleId = {
|
|
6911
7196
|
}
|
6912
7197
|
}
|
6913
7198
|
};
|
6914
|
-
const
|
6915
|
-
parameterPath: "
|
7199
|
+
const comp11 = {
|
7200
|
+
parameterPath: "comp",
|
6916
7201
|
mapper: {
|
6917
|
-
|
6918
|
-
|
6919
|
-
|
7202
|
+
defaultValue: "rename",
|
7203
|
+
isConstant: true,
|
7204
|
+
serializedName: "comp",
|
6920
7205
|
type: {
|
6921
|
-
name: "
|
7206
|
+
name: "String"
|
6922
7207
|
}
|
6923
7208
|
}
|
6924
7209
|
};
|
6925
|
-
const
|
6926
|
-
parameterPath: "
|
7210
|
+
const renameSource = {
|
7211
|
+
parameterPath: "renameSource",
|
6927
7212
|
mapper: {
|
6928
|
-
|
6929
|
-
|
6930
|
-
|
7213
|
+
serializedName: "x-ms-file-rename-source",
|
7214
|
+
required: true,
|
7215
|
+
xmlName: "x-ms-file-rename-source",
|
6931
7216
|
type: {
|
6932
7217
|
name: "String"
|
6933
7218
|
}
|
6934
7219
|
}
|
6935
7220
|
};
|
6936
|
-
const
|
6937
|
-
parameterPath: ["options", "
|
7221
|
+
const replaceIfExists = {
|
7222
|
+
parameterPath: ["options", "replaceIfExists"],
|
6938
7223
|
mapper: {
|
6939
|
-
serializedName: "x-ms-
|
7224
|
+
serializedName: "x-ms-file-rename-replace-if-exists",
|
7225
|
+
xmlName: "x-ms-file-rename-replace-if-exists",
|
7226
|
+
type: {
|
7227
|
+
name: "Boolean"
|
7228
|
+
}
|
7229
|
+
}
|
7230
|
+
};
|
7231
|
+
const ignoreReadOnly = {
|
7232
|
+
parameterPath: ["options", "ignoreReadOnly"],
|
7233
|
+
mapper: {
|
7234
|
+
serializedName: "x-ms-file-rename-ignore-readonly",
|
7235
|
+
xmlName: "x-ms-file-rename-ignore-readonly",
|
7236
|
+
type: {
|
7237
|
+
name: "Boolean"
|
7238
|
+
}
|
7239
|
+
}
|
7240
|
+
};
|
7241
|
+
const sourceLeaseId = {
|
7242
|
+
parameterPath: ["options", "sourceLeaseAccessConditions", "sourceLeaseId"],
|
7243
|
+
mapper: {
|
7244
|
+
serializedName: "x-ms-source-lease-id",
|
7245
|
+
xmlName: "x-ms-source-lease-id",
|
7246
|
+
type: {
|
7247
|
+
name: "String"
|
7248
|
+
}
|
7249
|
+
}
|
7250
|
+
};
|
7251
|
+
const destinationLeaseId = {
|
7252
|
+
parameterPath: [
|
7253
|
+
"options",
|
7254
|
+
"destinationLeaseAccessConditions",
|
7255
|
+
"destinationLeaseId"
|
7256
|
+
],
|
7257
|
+
mapper: {
|
7258
|
+
serializedName: "x-ms-destination-lease-id",
|
7259
|
+
xmlName: "x-ms-destination-lease-id",
|
7260
|
+
type: {
|
7261
|
+
name: "String"
|
7262
|
+
}
|
7263
|
+
}
|
7264
|
+
};
|
7265
|
+
const fileAttributes1 = {
|
7266
|
+
parameterPath: ["options", "copyFileSmbInfo", "fileAttributes"],
|
7267
|
+
mapper: {
|
7268
|
+
serializedName: "x-ms-file-attributes",
|
7269
|
+
xmlName: "x-ms-file-attributes",
|
7270
|
+
type: {
|
7271
|
+
name: "String"
|
7272
|
+
}
|
7273
|
+
}
|
7274
|
+
};
|
7275
|
+
const fileCreationTime = {
|
7276
|
+
parameterPath: ["options", "copyFileSmbInfo", "fileCreationTime"],
|
7277
|
+
mapper: {
|
7278
|
+
serializedName: "x-ms-file-creation-time",
|
7279
|
+
xmlName: "x-ms-file-creation-time",
|
7280
|
+
type: {
|
7281
|
+
name: "String"
|
7282
|
+
}
|
7283
|
+
}
|
7284
|
+
};
|
7285
|
+
const fileLastWriteTime = {
|
7286
|
+
parameterPath: ["options", "copyFileSmbInfo", "fileLastWriteTime"],
|
7287
|
+
mapper: {
|
7288
|
+
serializedName: "x-ms-file-last-write-time",
|
7289
|
+
xmlName: "x-ms-file-last-write-time",
|
7290
|
+
type: {
|
7291
|
+
name: "String"
|
7292
|
+
}
|
7293
|
+
}
|
7294
|
+
};
|
7295
|
+
const fileContentLength = {
|
7296
|
+
parameterPath: "fileContentLength",
|
7297
|
+
mapper: {
|
7298
|
+
serializedName: "x-ms-content-length",
|
7299
|
+
required: true,
|
7300
|
+
xmlName: "x-ms-content-length",
|
7301
|
+
type: {
|
7302
|
+
name: "Number"
|
7303
|
+
}
|
7304
|
+
}
|
7305
|
+
};
|
7306
|
+
const fileTypeConstant = {
|
7307
|
+
parameterPath: "fileTypeConstant",
|
7308
|
+
mapper: {
|
7309
|
+
defaultValue: "file",
|
7310
|
+
isConstant: true,
|
7311
|
+
serializedName: "x-ms-type",
|
7312
|
+
type: {
|
7313
|
+
name: "String"
|
7314
|
+
}
|
7315
|
+
}
|
7316
|
+
};
|
7317
|
+
const fileContentType = {
|
7318
|
+
parameterPath: ["options", "fileHttpHeaders", "fileContentType"],
|
7319
|
+
mapper: {
|
7320
|
+
serializedName: "x-ms-content-type",
|
6940
7321
|
xmlName: "x-ms-content-type",
|
6941
7322
|
type: {
|
6942
7323
|
name: "String"
|
@@ -7055,7 +7436,7 @@ const accept3 = {
|
|
7055
7436
|
}
|
7056
7437
|
}
|
7057
7438
|
};
|
7058
|
-
const
|
7439
|
+
const comp12 = {
|
7059
7440
|
parameterPath: "comp",
|
7060
7441
|
mapper: {
|
7061
7442
|
defaultValue: "range",
|
@@ -7191,7 +7572,7 @@ const copySourceAuthorization = {
|
|
7191
7572
|
}
|
7192
7573
|
}
|
7193
7574
|
};
|
7194
|
-
const
|
7575
|
+
const comp13 = {
|
7195
7576
|
parameterPath: "comp",
|
7196
7577
|
mapper: {
|
7197
7578
|
defaultValue: "rangelist",
|
@@ -7223,7 +7604,7 @@ const filePermissionCopyMode = {
|
|
7223
7604
|
}
|
7224
7605
|
}
|
7225
7606
|
};
|
7226
|
-
const
|
7607
|
+
const ignoreReadOnly1 = {
|
7227
7608
|
parameterPath: ["options", "copyFileSmbInfo", "ignoreReadOnly"],
|
7228
7609
|
mapper: {
|
7229
7610
|
serializedName: "x-ms-file-copy-ignore-read-only",
|
@@ -7233,36 +7614,6 @@ const ignoreReadOnly = {
|
|
7233
7614
|
}
|
7234
7615
|
}
|
7235
7616
|
};
|
7236
|
-
const fileAttributes1 = {
|
7237
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileAttributes"],
|
7238
|
-
mapper: {
|
7239
|
-
serializedName: "x-ms-file-attributes",
|
7240
|
-
xmlName: "x-ms-file-attributes",
|
7241
|
-
type: {
|
7242
|
-
name: "String"
|
7243
|
-
}
|
7244
|
-
}
|
7245
|
-
};
|
7246
|
-
const fileCreationTime = {
|
7247
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileCreationTime"],
|
7248
|
-
mapper: {
|
7249
|
-
serializedName: "x-ms-file-creation-time",
|
7250
|
-
xmlName: "x-ms-file-creation-time",
|
7251
|
-
type: {
|
7252
|
-
name: "String"
|
7253
|
-
}
|
7254
|
-
}
|
7255
|
-
};
|
7256
|
-
const fileLastWriteTime = {
|
7257
|
-
parameterPath: ["options", "copyFileSmbInfo", "fileLastWriteTime"],
|
7258
|
-
mapper: {
|
7259
|
-
serializedName: "x-ms-file-last-write-time",
|
7260
|
-
xmlName: "x-ms-file-last-write-time",
|
7261
|
-
type: {
|
7262
|
-
name: "String"
|
7263
|
-
}
|
7264
|
-
}
|
7265
|
-
};
|
7266
7617
|
const setArchiveAttribute = {
|
7267
7618
|
parameterPath: ["options", "copyFileSmbInfo", "setArchiveAttribute"],
|
7268
7619
|
mapper: {
|
@@ -7273,7 +7624,7 @@ const setArchiveAttribute = {
|
|
7273
7624
|
}
|
7274
7625
|
}
|
7275
7626
|
};
|
7276
|
-
const
|
7627
|
+
const comp14 = {
|
7277
7628
|
parameterPath: "comp",
|
7278
7629
|
mapper: {
|
7279
7630
|
defaultValue: "copy",
|
@@ -7332,9 +7683,9 @@ class Service {
|
|
7332
7683
|
setProperties(properties, options) {
|
7333
7684
|
const operationArguments = {
|
7334
7685
|
properties,
|
7335
|
-
options:
|
7686
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7336
7687
|
};
|
7337
|
-
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
7688
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec$2);
|
7338
7689
|
}
|
7339
7690
|
/**
|
7340
7691
|
* Gets the properties of a storage account's File service, including properties for Storage Analytics
|
@@ -7343,9 +7694,9 @@ class Service {
|
|
7343
7694
|
*/
|
7344
7695
|
getProperties(options) {
|
7345
7696
|
const operationArguments = {
|
7346
|
-
options:
|
7697
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7347
7698
|
};
|
7348
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
7699
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$3);
|
7349
7700
|
}
|
7350
7701
|
/**
|
7351
7702
|
* The List Shares Segment operation returns a list of the shares and share snapshots under the
|
@@ -7354,14 +7705,14 @@ class Service {
|
|
7354
7705
|
*/
|
7355
7706
|
listSharesSegment(options) {
|
7356
7707
|
const operationArguments = {
|
7357
|
-
options:
|
7708
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7358
7709
|
};
|
7359
7710
|
return this.client.sendOperationRequest(operationArguments, listSharesSegmentOperationSpec);
|
7360
7711
|
}
|
7361
7712
|
}
|
7362
7713
|
// Operation Specifications
|
7363
|
-
const xmlSerializer = new
|
7364
|
-
const setPropertiesOperationSpec = {
|
7714
|
+
const xmlSerializer$3 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
7715
|
+
const setPropertiesOperationSpec$2 = {
|
7365
7716
|
path: "/",
|
7366
7717
|
httpMethod: "PUT",
|
7367
7718
|
responses: {
|
@@ -7388,9 +7739,9 @@ const setPropertiesOperationSpec = {
|
|
7388
7739
|
isXML: true,
|
7389
7740
|
contentType: "application/xml; charset=utf-8",
|
7390
7741
|
mediaType: "xml",
|
7391
|
-
serializer: xmlSerializer
|
7742
|
+
serializer: xmlSerializer$3
|
7392
7743
|
};
|
7393
|
-
const getPropertiesOperationSpec = {
|
7744
|
+
const getPropertiesOperationSpec$3 = {
|
7394
7745
|
path: "/",
|
7395
7746
|
httpMethod: "GET",
|
7396
7747
|
responses: {
|
@@ -7411,7 +7762,7 @@ const getPropertiesOperationSpec = {
|
|
7411
7762
|
urlParameters: [url],
|
7412
7763
|
headerParameters: [version, accept1],
|
7413
7764
|
isXML: true,
|
7414
|
-
serializer: xmlSerializer
|
7765
|
+
serializer: xmlSerializer$3
|
7415
7766
|
};
|
7416
7767
|
const listSharesSegmentOperationSpec = {
|
7417
7768
|
path: "/",
|
@@ -7437,7 +7788,7 @@ const listSharesSegmentOperationSpec = {
|
|
7437
7788
|
urlParameters: [url],
|
7438
7789
|
headerParameters: [version, accept1],
|
7439
7790
|
isXML: true,
|
7440
|
-
serializer: xmlSerializer
|
7791
|
+
serializer: xmlSerializer$3
|
7441
7792
|
};
|
7442
7793
|
|
7443
7794
|
/*
|
@@ -7463,9 +7814,9 @@ class Share {
|
|
7463
7814
|
*/
|
7464
7815
|
create(options) {
|
7465
7816
|
const operationArguments = {
|
7466
|
-
options:
|
7817
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7467
7818
|
};
|
7468
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
7819
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);
|
7469
7820
|
}
|
7470
7821
|
/**
|
7471
7822
|
* Returns all user-defined metadata and system properties for the specified share or share snapshot.
|
@@ -7474,9 +7825,9 @@ class Share {
|
|
7474
7825
|
*/
|
7475
7826
|
getProperties(options) {
|
7476
7827
|
const operationArguments = {
|
7477
|
-
options:
|
7828
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7478
7829
|
};
|
7479
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$
|
7830
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$2);
|
7480
7831
|
}
|
7481
7832
|
/**
|
7482
7833
|
* Operation marks the specified share or share snapshot for deletion. The share or share snapshot and
|
@@ -7485,9 +7836,9 @@ class Share {
|
|
7485
7836
|
*/
|
7486
7837
|
delete(options) {
|
7487
7838
|
const operationArguments = {
|
7488
|
-
options:
|
7839
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7489
7840
|
};
|
7490
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
7841
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$2);
|
7491
7842
|
}
|
7492
7843
|
/**
|
7493
7844
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7496,9 +7847,9 @@ class Share {
|
|
7496
7847
|
*/
|
7497
7848
|
acquireLease(options) {
|
7498
7849
|
const operationArguments = {
|
7499
|
-
options:
|
7850
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7500
7851
|
};
|
7501
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
7852
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec$1);
|
7502
7853
|
}
|
7503
7854
|
/**
|
7504
7855
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7509,9 +7860,9 @@ class Share {
|
|
7509
7860
|
releaseLease(leaseId, options) {
|
7510
7861
|
const operationArguments = {
|
7511
7862
|
leaseId,
|
7512
|
-
options:
|
7863
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7513
7864
|
};
|
7514
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
7865
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec$1);
|
7515
7866
|
}
|
7516
7867
|
/**
|
7517
7868
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7522,9 +7873,9 @@ class Share {
|
|
7522
7873
|
changeLease(leaseId, options) {
|
7523
7874
|
const operationArguments = {
|
7524
7875
|
leaseId,
|
7525
|
-
options:
|
7876
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7526
7877
|
};
|
7527
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
7878
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec$1);
|
7528
7879
|
}
|
7529
7880
|
/**
|
7530
7881
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7535,7 +7886,7 @@ class Share {
|
|
7535
7886
|
renewLease(leaseId, options) {
|
7536
7887
|
const operationArguments = {
|
7537
7888
|
leaseId,
|
7538
|
-
options:
|
7889
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7539
7890
|
};
|
7540
7891
|
return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec);
|
7541
7892
|
}
|
@@ -7546,9 +7897,9 @@ class Share {
|
|
7546
7897
|
*/
|
7547
7898
|
breakLease(options) {
|
7548
7899
|
const operationArguments = {
|
7549
|
-
options:
|
7900
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7550
7901
|
};
|
7551
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
7902
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec$1);
|
7552
7903
|
}
|
7553
7904
|
/**
|
7554
7905
|
* Creates a read-only snapshot of a share.
|
@@ -7556,7 +7907,7 @@ class Share {
|
|
7556
7907
|
*/
|
7557
7908
|
createSnapshot(options) {
|
7558
7909
|
const operationArguments = {
|
7559
|
-
options:
|
7910
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7560
7911
|
};
|
7561
7912
|
return this.client.sendOperationRequest(operationArguments, createSnapshotOperationSpec);
|
7562
7913
|
}
|
@@ -7568,7 +7919,7 @@ class Share {
|
|
7568
7919
|
createPermission(sharePermission, options) {
|
7569
7920
|
const operationArguments = {
|
7570
7921
|
sharePermission,
|
7571
|
-
options:
|
7922
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7572
7923
|
};
|
7573
7924
|
return this.client.sendOperationRequest(operationArguments, createPermissionOperationSpec);
|
7574
7925
|
}
|
@@ -7580,7 +7931,7 @@ class Share {
|
|
7580
7931
|
getPermission(filePermissionKey, options) {
|
7581
7932
|
const operationArguments = {
|
7582
7933
|
filePermissionKey,
|
7583
|
-
options:
|
7934
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7584
7935
|
};
|
7585
7936
|
return this.client.sendOperationRequest(operationArguments, getPermissionOperationSpec);
|
7586
7937
|
}
|
@@ -7590,7 +7941,7 @@ class Share {
|
|
7590
7941
|
*/
|
7591
7942
|
setProperties(options) {
|
7592
7943
|
const operationArguments = {
|
7593
|
-
options:
|
7944
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7594
7945
|
};
|
7595
7946
|
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec$1);
|
7596
7947
|
}
|
@@ -7600,9 +7951,9 @@ class Share {
|
|
7600
7951
|
*/
|
7601
7952
|
setMetadata(options) {
|
7602
7953
|
const operationArguments = {
|
7603
|
-
options:
|
7954
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7604
7955
|
};
|
7605
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
7956
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$2);
|
7606
7957
|
}
|
7607
7958
|
/**
|
7608
7959
|
* Returns information about stored access policies specified on the share.
|
@@ -7610,7 +7961,7 @@ class Share {
|
|
7610
7961
|
*/
|
7611
7962
|
getAccessPolicy(options) {
|
7612
7963
|
const operationArguments = {
|
7613
|
-
options:
|
7964
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7614
7965
|
};
|
7615
7966
|
return this.client.sendOperationRequest(operationArguments, getAccessPolicyOperationSpec);
|
7616
7967
|
}
|
@@ -7620,7 +7971,7 @@ class Share {
|
|
7620
7971
|
*/
|
7621
7972
|
setAccessPolicy(options) {
|
7622
7973
|
const operationArguments = {
|
7623
|
-
options:
|
7974
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7624
7975
|
};
|
7625
7976
|
return this.client.sendOperationRequest(operationArguments, setAccessPolicyOperationSpec);
|
7626
7977
|
}
|
@@ -7630,7 +7981,7 @@ class Share {
|
|
7630
7981
|
*/
|
7631
7982
|
getStatistics(options) {
|
7632
7983
|
const operationArguments = {
|
7633
|
-
options:
|
7984
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7634
7985
|
};
|
7635
7986
|
return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
|
7636
7987
|
}
|
@@ -7640,15 +7991,15 @@ class Share {
|
|
7640
7991
|
*/
|
7641
7992
|
restore(options) {
|
7642
7993
|
const operationArguments = {
|
7643
|
-
options:
|
7994
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7644
7995
|
};
|
7645
7996
|
return this.client.sendOperationRequest(operationArguments, restoreOperationSpec);
|
7646
7997
|
}
|
7647
7998
|
}
|
7648
7999
|
// Operation Specifications
|
7649
|
-
const xmlSerializer$
|
7650
|
-
const serializer = new
|
7651
|
-
const createOperationSpec = {
|
8000
|
+
const xmlSerializer$2 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
8001
|
+
const serializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);
|
8002
|
+
const createOperationSpec$2 = {
|
7652
8003
|
path: "/{shareName}",
|
7653
8004
|
httpMethod: "PUT",
|
7654
8005
|
responses: {
|
@@ -7672,9 +8023,9 @@ const createOperationSpec = {
|
|
7672
8023
|
rootSquash
|
7673
8024
|
],
|
7674
8025
|
isXML: true,
|
7675
|
-
serializer: xmlSerializer$
|
8026
|
+
serializer: xmlSerializer$2
|
7676
8027
|
};
|
7677
|
-
const getPropertiesOperationSpec$
|
8028
|
+
const getPropertiesOperationSpec$2 = {
|
7678
8029
|
path: "/{shareName}",
|
7679
8030
|
httpMethod: "GET",
|
7680
8031
|
responses: {
|
@@ -7698,9 +8049,9 @@ const getPropertiesOperationSpec$1 = {
|
|
7698
8049
|
leaseId
|
7699
8050
|
],
|
7700
8051
|
isXML: true,
|
7701
|
-
serializer: xmlSerializer$
|
8052
|
+
serializer: xmlSerializer$2
|
7702
8053
|
};
|
7703
|
-
const deleteOperationSpec = {
|
8054
|
+
const deleteOperationSpec$2 = {
|
7704
8055
|
path: "/{shareName}",
|
7705
8056
|
httpMethod: "DELETE",
|
7706
8057
|
responses: {
|
@@ -7725,9 +8076,9 @@ const deleteOperationSpec = {
|
|
7725
8076
|
deleteSnapshots
|
7726
8077
|
],
|
7727
8078
|
isXML: true,
|
7728
|
-
serializer: xmlSerializer$
|
8079
|
+
serializer: xmlSerializer$2
|
7729
8080
|
};
|
7730
|
-
const acquireLeaseOperationSpec = {
|
8081
|
+
const acquireLeaseOperationSpec$1 = {
|
7731
8082
|
path: "/{shareName}",
|
7732
8083
|
httpMethod: "PUT",
|
7733
8084
|
responses: {
|
@@ -7755,9 +8106,9 @@ const acquireLeaseOperationSpec = {
|
|
7755
8106
|
requestId
|
7756
8107
|
],
|
7757
8108
|
isXML: true,
|
7758
|
-
serializer: xmlSerializer$
|
8109
|
+
serializer: xmlSerializer$2
|
7759
8110
|
};
|
7760
|
-
const releaseLeaseOperationSpec = {
|
8111
|
+
const releaseLeaseOperationSpec$1 = {
|
7761
8112
|
path: "/{shareName}",
|
7762
8113
|
httpMethod: "PUT",
|
7763
8114
|
responses: {
|
@@ -7784,9 +8135,9 @@ const releaseLeaseOperationSpec = {
|
|
7784
8135
|
leaseId1
|
7785
8136
|
],
|
7786
8137
|
isXML: true,
|
7787
|
-
serializer: xmlSerializer$
|
8138
|
+
serializer: xmlSerializer$2
|
7788
8139
|
};
|
7789
|
-
const changeLeaseOperationSpec = {
|
8140
|
+
const changeLeaseOperationSpec$1 = {
|
7790
8141
|
path: "/{shareName}",
|
7791
8142
|
httpMethod: "PUT",
|
7792
8143
|
responses: {
|
@@ -7814,7 +8165,7 @@ const changeLeaseOperationSpec = {
|
|
7814
8165
|
action2
|
7815
8166
|
],
|
7816
8167
|
isXML: true,
|
7817
|
-
serializer: xmlSerializer$
|
8168
|
+
serializer: xmlSerializer$2
|
7818
8169
|
};
|
7819
8170
|
const renewLeaseOperationSpec = {
|
7820
8171
|
path: "/{shareName}",
|
@@ -7843,9 +8194,9 @@ const renewLeaseOperationSpec = {
|
|
7843
8194
|
action3
|
7844
8195
|
],
|
7845
8196
|
isXML: true,
|
7846
|
-
serializer: xmlSerializer$
|
8197
|
+
serializer: xmlSerializer$2
|
7847
8198
|
};
|
7848
|
-
const breakLeaseOperationSpec = {
|
8199
|
+
const breakLeaseOperationSpec$1 = {
|
7849
8200
|
path: "/{shareName}",
|
7850
8201
|
httpMethod: "PUT",
|
7851
8202
|
responses: {
|
@@ -7873,7 +8224,7 @@ const breakLeaseOperationSpec = {
|
|
7873
8224
|
breakPeriod
|
7874
8225
|
],
|
7875
8226
|
isXML: true,
|
7876
|
-
serializer: xmlSerializer$
|
8227
|
+
serializer: xmlSerializer$2
|
7877
8228
|
};
|
7878
8229
|
const createSnapshotOperationSpec = {
|
7879
8230
|
path: "/{shareName}",
|
@@ -7899,7 +8250,7 @@ const createSnapshotOperationSpec = {
|
|
7899
8250
|
metadata
|
7900
8251
|
],
|
7901
8252
|
isXML: true,
|
7902
|
-
serializer: xmlSerializer$
|
8253
|
+
serializer: xmlSerializer$2
|
7903
8254
|
};
|
7904
8255
|
const createPermissionOperationSpec = {
|
7905
8256
|
path: "/{shareName}",
|
@@ -7927,7 +8278,7 @@ const createPermissionOperationSpec = {
|
|
7927
8278
|
],
|
7928
8279
|
isXML: false,
|
7929
8280
|
contentType: "application/xml; charset=utf-8",
|
7930
|
-
serializer: xmlSerializer$
|
8281
|
+
serializer: xmlSerializer$2
|
7931
8282
|
};
|
7932
8283
|
const getPermissionOperationSpec = {
|
7933
8284
|
path: "/{shareName}",
|
@@ -7982,9 +8333,9 @@ const setPropertiesOperationSpec$1 = {
|
|
7982
8333
|
leaseId
|
7983
8334
|
],
|
7984
8335
|
isXML: true,
|
7985
|
-
serializer: xmlSerializer$
|
8336
|
+
serializer: xmlSerializer$2
|
7986
8337
|
};
|
7987
|
-
const setMetadataOperationSpec = {
|
8338
|
+
const setMetadataOperationSpec$2 = {
|
7988
8339
|
path: "/{shareName}",
|
7989
8340
|
httpMethod: "PUT",
|
7990
8341
|
responses: {
|
@@ -8009,7 +8360,7 @@ const setMetadataOperationSpec = {
|
|
8009
8360
|
leaseId
|
8010
8361
|
],
|
8011
8362
|
isXML: true,
|
8012
|
-
serializer: xmlSerializer$
|
8363
|
+
serializer: xmlSerializer$2
|
8013
8364
|
};
|
8014
8365
|
const getAccessPolicyOperationSpec = {
|
8015
8366
|
path: "/{shareName}",
|
@@ -8047,7 +8398,7 @@ const getAccessPolicyOperationSpec = {
|
|
8047
8398
|
leaseId
|
8048
8399
|
],
|
8049
8400
|
isXML: true,
|
8050
|
-
serializer: xmlSerializer$
|
8401
|
+
serializer: xmlSerializer$2
|
8051
8402
|
};
|
8052
8403
|
const setAccessPolicyOperationSpec = {
|
8053
8404
|
path: "/{shareName}",
|
@@ -8077,7 +8428,7 @@ const setAccessPolicyOperationSpec = {
|
|
8077
8428
|
isXML: true,
|
8078
8429
|
contentType: "application/xml; charset=utf-8",
|
8079
8430
|
mediaType: "xml",
|
8080
|
-
serializer: xmlSerializer$
|
8431
|
+
serializer: xmlSerializer$2
|
8081
8432
|
};
|
8082
8433
|
const getStatisticsOperationSpec = {
|
8083
8434
|
path: "/{shareName}",
|
@@ -8104,7 +8455,7 @@ const getStatisticsOperationSpec = {
|
|
8104
8455
|
leaseId
|
8105
8456
|
],
|
8106
8457
|
isXML: true,
|
8107
|
-
serializer: xmlSerializer$
|
8458
|
+
serializer: xmlSerializer$2
|
8108
8459
|
};
|
8109
8460
|
const restoreOperationSpec = {
|
8110
8461
|
path: "/{shareName}",
|
@@ -8132,7 +8483,7 @@ const restoreOperationSpec = {
|
|
8132
8483
|
deletedShareVersion
|
8133
8484
|
],
|
8134
8485
|
isXML: true,
|
8135
|
-
serializer: xmlSerializer$
|
8486
|
+
serializer: xmlSerializer$2
|
8136
8487
|
};
|
8137
8488
|
|
8138
8489
|
/*
|
@@ -8164,7 +8515,7 @@ class Directory {
|
|
8164
8515
|
fileAttributes,
|
8165
8516
|
fileCreatedOn,
|
8166
8517
|
fileLastWriteOn,
|
8167
|
-
options:
|
8518
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8168
8519
|
};
|
8169
8520
|
return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);
|
8170
8521
|
}
|
@@ -8176,9 +8527,9 @@ class Directory {
|
|
8176
8527
|
*/
|
8177
8528
|
getProperties(options) {
|
8178
8529
|
const operationArguments = {
|
8179
|
-
options:
|
8530
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8180
8531
|
};
|
8181
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$
|
8532
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$1);
|
8182
8533
|
}
|
8183
8534
|
/**
|
8184
8535
|
* Removes the specified empty directory. Note that the directory must be empty before it can be
|
@@ -8187,7 +8538,7 @@ class Directory {
|
|
8187
8538
|
*/
|
8188
8539
|
delete(options) {
|
8189
8540
|
const operationArguments = {
|
8190
|
-
options:
|
8541
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8191
8542
|
};
|
8192
8543
|
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
|
8193
8544
|
}
|
@@ -8204,9 +8555,9 @@ class Directory {
|
|
8204
8555
|
fileAttributes,
|
8205
8556
|
fileCreatedOn,
|
8206
8557
|
fileLastWriteOn,
|
8207
|
-
options:
|
8558
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8208
8559
|
};
|
8209
|
-
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec
|
8560
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
8210
8561
|
}
|
8211
8562
|
/**
|
8212
8563
|
* Updates user defined metadata for the specified directory.
|
@@ -8214,7 +8565,7 @@ class Directory {
|
|
8214
8565
|
*/
|
8215
8566
|
setMetadata(options) {
|
8216
8567
|
const operationArguments = {
|
8217
|
-
options:
|
8568
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8218
8569
|
};
|
8219
8570
|
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$1);
|
8220
8571
|
}
|
@@ -8225,7 +8576,7 @@ class Directory {
|
|
8225
8576
|
*/
|
8226
8577
|
listFilesAndDirectoriesSegment(options) {
|
8227
8578
|
const operationArguments = {
|
8228
|
-
options:
|
8579
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8229
8580
|
};
|
8230
8581
|
return this.client.sendOperationRequest(operationArguments, listFilesAndDirectoriesSegmentOperationSpec);
|
8231
8582
|
}
|
@@ -8235,9 +8586,9 @@ class Directory {
|
|
8235
8586
|
*/
|
8236
8587
|
listHandles(options) {
|
8237
8588
|
const operationArguments = {
|
8238
|
-
options:
|
8589
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8239
8590
|
};
|
8240
|
-
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec);
|
8591
|
+
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec$1);
|
8241
8592
|
}
|
8242
8593
|
/**
|
8243
8594
|
* Closes all handles open for given directory.
|
@@ -8248,13 +8599,25 @@ class Directory {
|
|
8248
8599
|
forceCloseHandles(handleId, options) {
|
8249
8600
|
const operationArguments = {
|
8250
8601
|
handleId,
|
8251
|
-
options:
|
8602
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8252
8603
|
};
|
8253
|
-
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec);
|
8604
|
+
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec$1);
|
8605
|
+
}
|
8606
|
+
/**
|
8607
|
+
* Renames a directory
|
8608
|
+
* @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.
|
8609
|
+
* @param options The options parameters.
|
8610
|
+
*/
|
8611
|
+
rename(renameSource, options) {
|
8612
|
+
const operationArguments = {
|
8613
|
+
renameSource,
|
8614
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8615
|
+
};
|
8616
|
+
return this.client.sendOperationRequest(operationArguments, renameOperationSpec$1);
|
8254
8617
|
}
|
8255
8618
|
}
|
8256
8619
|
// Operation Specifications
|
8257
|
-
const xmlSerializer$
|
8620
|
+
const xmlSerializer$1 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
8258
8621
|
const createOperationSpec$1 = {
|
8259
8622
|
path: "/{shareName}/{directory}",
|
8260
8623
|
httpMethod: "PUT",
|
@@ -8280,9 +8643,9 @@ const createOperationSpec$1 = {
|
|
8280
8643
|
fileLastWriteOn
|
8281
8644
|
],
|
8282
8645
|
isXML: true,
|
8283
|
-
serializer: xmlSerializer$
|
8646
|
+
serializer: xmlSerializer$1
|
8284
8647
|
};
|
8285
|
-
const getPropertiesOperationSpec$
|
8648
|
+
const getPropertiesOperationSpec$1 = {
|
8286
8649
|
path: "/{shareName}/{directory}",
|
8287
8650
|
httpMethod: "GET",
|
8288
8651
|
responses: {
|
@@ -8302,7 +8665,7 @@ const getPropertiesOperationSpec$2 = {
|
|
8302
8665
|
urlParameters: [url],
|
8303
8666
|
headerParameters: [version, accept1],
|
8304
8667
|
isXML: true,
|
8305
|
-
serializer: xmlSerializer$
|
8668
|
+
serializer: xmlSerializer$1
|
8306
8669
|
};
|
8307
8670
|
const deleteOperationSpec$1 = {
|
8308
8671
|
path: "/{shareName}/{directory}",
|
@@ -8320,9 +8683,9 @@ const deleteOperationSpec$1 = {
|
|
8320
8683
|
urlParameters: [url],
|
8321
8684
|
headerParameters: [version, accept1],
|
8322
8685
|
isXML: true,
|
8323
|
-
serializer: xmlSerializer$
|
8686
|
+
serializer: xmlSerializer$1
|
8324
8687
|
};
|
8325
|
-
const setPropertiesOperationSpec
|
8688
|
+
const setPropertiesOperationSpec = {
|
8326
8689
|
path: "/{shareName}/{directory}",
|
8327
8690
|
httpMethod: "PUT",
|
8328
8691
|
responses: {
|
@@ -8350,7 +8713,7 @@ const setPropertiesOperationSpec$2 = {
|
|
8350
8713
|
fileLastWriteOn
|
8351
8714
|
],
|
8352
8715
|
isXML: true,
|
8353
|
-
serializer: xmlSerializer$
|
8716
|
+
serializer: xmlSerializer$1
|
8354
8717
|
};
|
8355
8718
|
const setMetadataOperationSpec$1 = {
|
8356
8719
|
path: "/{shareName}/{directory}",
|
@@ -8376,7 +8739,7 @@ const setMetadataOperationSpec$1 = {
|
|
8376
8739
|
metadata
|
8377
8740
|
],
|
8378
8741
|
isXML: true,
|
8379
|
-
serializer: xmlSerializer$
|
8742
|
+
serializer: xmlSerializer$1
|
8380
8743
|
};
|
8381
8744
|
const listFilesAndDirectoriesSegmentOperationSpec = {
|
8382
8745
|
path: "/{shareName}/{directory}",
|
@@ -8408,9 +8771,9 @@ const listFilesAndDirectoriesSegmentOperationSpec = {
|
|
8408
8771
|
includeExtendedInfo
|
8409
8772
|
],
|
8410
8773
|
isXML: true,
|
8411
|
-
serializer: xmlSerializer$
|
8774
|
+
serializer: xmlSerializer$1
|
8412
8775
|
};
|
8413
|
-
const listHandlesOperationSpec = {
|
8776
|
+
const listHandlesOperationSpec$1 = {
|
8414
8777
|
path: "/{shareName}/{directory}",
|
8415
8778
|
httpMethod: "GET",
|
8416
8779
|
responses: {
|
@@ -8437,9 +8800,9 @@ const listHandlesOperationSpec = {
|
|
8437
8800
|
recursive
|
8438
8801
|
],
|
8439
8802
|
isXML: true,
|
8440
|
-
serializer: xmlSerializer$
|
8803
|
+
serializer: xmlSerializer$1
|
8441
8804
|
};
|
8442
|
-
const forceCloseHandlesOperationSpec = {
|
8805
|
+
const forceCloseHandlesOperationSpec$1 = {
|
8443
8806
|
path: "/{shareName}/{directory}",
|
8444
8807
|
httpMethod: "PUT",
|
8445
8808
|
responses: {
|
@@ -8465,7 +8828,43 @@ const forceCloseHandlesOperationSpec = {
|
|
8465
8828
|
handleId
|
8466
8829
|
],
|
8467
8830
|
isXML: true,
|
8468
|
-
serializer: xmlSerializer$
|
8831
|
+
serializer: xmlSerializer$1
|
8832
|
+
};
|
8833
|
+
const renameOperationSpec$1 = {
|
8834
|
+
path: "/{shareName}/{directory}",
|
8835
|
+
httpMethod: "PUT",
|
8836
|
+
responses: {
|
8837
|
+
200: {
|
8838
|
+
headersMapper: DirectoryRenameHeaders
|
8839
|
+
},
|
8840
|
+
default: {
|
8841
|
+
bodyMapper: StorageError,
|
8842
|
+
headersMapper: DirectoryRenameExceptionHeaders
|
8843
|
+
}
|
8844
|
+
},
|
8845
|
+
queryParameters: [
|
8846
|
+
timeoutInSeconds,
|
8847
|
+
restype2,
|
8848
|
+
comp11
|
8849
|
+
],
|
8850
|
+
urlParameters: [url],
|
8851
|
+
headerParameters: [
|
8852
|
+
version,
|
8853
|
+
accept1,
|
8854
|
+
metadata,
|
8855
|
+
filePermission,
|
8856
|
+
filePermissionKey1,
|
8857
|
+
renameSource,
|
8858
|
+
replaceIfExists,
|
8859
|
+
ignoreReadOnly,
|
8860
|
+
sourceLeaseId,
|
8861
|
+
destinationLeaseId,
|
8862
|
+
fileAttributes1,
|
8863
|
+
fileCreationTime,
|
8864
|
+
fileLastWriteTime
|
8865
|
+
],
|
8866
|
+
isXML: true,
|
8867
|
+
serializer: xmlSerializer$1
|
8469
8868
|
};
|
8470
8869
|
|
8471
8870
|
/*
|
@@ -8499,9 +8898,9 @@ class File {
|
|
8499
8898
|
fileAttributes,
|
8500
8899
|
fileCreatedOn,
|
8501
8900
|
fileLastWriteOn,
|
8502
|
-
options:
|
8901
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8503
8902
|
};
|
8504
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec
|
8903
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
8505
8904
|
}
|
8506
8905
|
/**
|
8507
8906
|
* Reads or downloads a file from the system, including its metadata and properties.
|
@@ -8509,7 +8908,7 @@ class File {
|
|
8509
8908
|
*/
|
8510
8909
|
download(options) {
|
8511
8910
|
const operationArguments = {
|
8512
|
-
options:
|
8911
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8513
8912
|
};
|
8514
8913
|
return this.client.sendOperationRequest(operationArguments, downloadOperationSpec);
|
8515
8914
|
}
|
@@ -8520,9 +8919,9 @@ class File {
|
|
8520
8919
|
*/
|
8521
8920
|
getProperties(options) {
|
8522
8921
|
const operationArguments = {
|
8523
|
-
options:
|
8922
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8524
8923
|
};
|
8525
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec
|
8924
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
8526
8925
|
}
|
8527
8926
|
/**
|
8528
8927
|
* removes the file from the storage account.
|
@@ -8530,9 +8929,9 @@ class File {
|
|
8530
8929
|
*/
|
8531
8930
|
delete(options) {
|
8532
8931
|
const operationArguments = {
|
8533
|
-
options:
|
8932
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8534
8933
|
};
|
8535
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec
|
8934
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
8536
8935
|
}
|
8537
8936
|
/**
|
8538
8937
|
* Sets HTTP headers on the file.
|
@@ -8547,7 +8946,7 @@ class File {
|
|
8547
8946
|
fileAttributes,
|
8548
8947
|
fileCreatedOn,
|
8549
8948
|
fileLastWriteOn,
|
8550
|
-
options:
|
8949
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8551
8950
|
};
|
8552
8951
|
return this.client.sendOperationRequest(operationArguments, setHttpHeadersOperationSpec);
|
8553
8952
|
}
|
@@ -8557,9 +8956,9 @@ class File {
|
|
8557
8956
|
*/
|
8558
8957
|
setMetadata(options) {
|
8559
8958
|
const operationArguments = {
|
8560
|
-
options:
|
8959
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8561
8960
|
};
|
8562
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec
|
8961
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
8563
8962
|
}
|
8564
8963
|
/**
|
8565
8964
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8568,9 +8967,9 @@ class File {
|
|
8568
8967
|
*/
|
8569
8968
|
acquireLease(options) {
|
8570
8969
|
const operationArguments = {
|
8571
|
-
options:
|
8970
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8572
8971
|
};
|
8573
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec
|
8972
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
8574
8973
|
}
|
8575
8974
|
/**
|
8576
8975
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8581,9 +8980,9 @@ class File {
|
|
8581
8980
|
releaseLease(leaseId, options) {
|
8582
8981
|
const operationArguments = {
|
8583
8982
|
leaseId,
|
8584
|
-
options:
|
8983
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8585
8984
|
};
|
8586
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec
|
8985
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
8587
8986
|
}
|
8588
8987
|
/**
|
8589
8988
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8594,9 +8993,9 @@ class File {
|
|
8594
8993
|
changeLease(leaseId, options) {
|
8595
8994
|
const operationArguments = {
|
8596
8995
|
leaseId,
|
8597
|
-
options:
|
8996
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8598
8997
|
};
|
8599
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec
|
8998
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
8600
8999
|
}
|
8601
9000
|
/**
|
8602
9001
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8605,9 +9004,9 @@ class File {
|
|
8605
9004
|
*/
|
8606
9005
|
breakLease(options) {
|
8607
9006
|
const operationArguments = {
|
8608
|
-
options:
|
9007
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8609
9008
|
};
|
8610
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec
|
9009
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
8611
9010
|
}
|
8612
9011
|
/**
|
8613
9012
|
* Upload a range of bytes to a file.
|
@@ -8630,7 +9029,7 @@ class File {
|
|
8630
9029
|
range,
|
8631
9030
|
fileRangeWrite,
|
8632
9031
|
contentLength,
|
8633
|
-
options:
|
9032
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8634
9033
|
};
|
8635
9034
|
return this.client.sendOperationRequest(operationArguments, uploadRangeOperationSpec);
|
8636
9035
|
}
|
@@ -8652,7 +9051,7 @@ class File {
|
|
8652
9051
|
range,
|
8653
9052
|
copySource,
|
8654
9053
|
contentLength,
|
8655
|
-
options:
|
9054
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8656
9055
|
};
|
8657
9056
|
return this.client.sendOperationRequest(operationArguments, uploadRangeFromURLOperationSpec);
|
8658
9057
|
}
|
@@ -8662,7 +9061,7 @@ class File {
|
|
8662
9061
|
*/
|
8663
9062
|
getRangeList(options) {
|
8664
9063
|
const operationArguments = {
|
8665
|
-
options:
|
9064
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8666
9065
|
};
|
8667
9066
|
return this.client.sendOperationRequest(operationArguments, getRangeListOperationSpec);
|
8668
9067
|
}
|
@@ -8679,7 +9078,7 @@ class File {
|
|
8679
9078
|
startCopy(copySource, options) {
|
8680
9079
|
const operationArguments = {
|
8681
9080
|
copySource,
|
8682
|
-
options:
|
9081
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8683
9082
|
};
|
8684
9083
|
return this.client.sendOperationRequest(operationArguments, startCopyOperationSpec);
|
8685
9084
|
}
|
@@ -8693,7 +9092,7 @@ class File {
|
|
8693
9092
|
abortCopy(copyId, options) {
|
8694
9093
|
const operationArguments = {
|
8695
9094
|
copyId,
|
8696
|
-
options:
|
9095
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8697
9096
|
};
|
8698
9097
|
return this.client.sendOperationRequest(operationArguments, abortCopyOperationSpec);
|
8699
9098
|
}
|
@@ -8703,9 +9102,9 @@ class File {
|
|
8703
9102
|
*/
|
8704
9103
|
listHandles(options) {
|
8705
9104
|
const operationArguments = {
|
8706
|
-
options:
|
9105
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8707
9106
|
};
|
8708
|
-
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec
|
9107
|
+
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec);
|
8709
9108
|
}
|
8710
9109
|
/**
|
8711
9110
|
* Closes all handles open for given file
|
@@ -8716,14 +9115,26 @@ class File {
|
|
8716
9115
|
forceCloseHandles(handleId, options) {
|
8717
9116
|
const operationArguments = {
|
8718
9117
|
handleId,
|
8719
|
-
options:
|
9118
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8720
9119
|
};
|
8721
|
-
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec
|
9120
|
+
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec);
|
9121
|
+
}
|
9122
|
+
/**
|
9123
|
+
* Renames a file
|
9124
|
+
* @param renameSource Required. Specifies the URI-style path of the source file, up to 2 KB in length.
|
9125
|
+
* @param options The options parameters.
|
9126
|
+
*/
|
9127
|
+
rename(renameSource, options) {
|
9128
|
+
const operationArguments = {
|
9129
|
+
renameSource,
|
9130
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
9131
|
+
};
|
9132
|
+
return this.client.sendOperationRequest(operationArguments, renameOperationSpec);
|
8722
9133
|
}
|
8723
9134
|
}
|
8724
9135
|
// Operation Specifications
|
8725
|
-
const xmlSerializer
|
8726
|
-
const createOperationSpec
|
9136
|
+
const xmlSerializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
9137
|
+
const createOperationSpec = {
|
8727
9138
|
path: "/{shareName}/{directory}/{fileName}",
|
8728
9139
|
httpMethod: "PUT",
|
8729
9140
|
responses: {
|
@@ -8757,7 +9168,7 @@ const createOperationSpec$2 = {
|
|
8757
9168
|
fileContentDisposition
|
8758
9169
|
],
|
8759
9170
|
isXML: true,
|
8760
|
-
serializer: xmlSerializer
|
9171
|
+
serializer: xmlSerializer
|
8761
9172
|
};
|
8762
9173
|
const downloadOperationSpec = {
|
8763
9174
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8792,9 +9203,9 @@ const downloadOperationSpec = {
|
|
8792
9203
|
rangeGetContentMD5
|
8793
9204
|
],
|
8794
9205
|
isXML: true,
|
8795
|
-
serializer: xmlSerializer
|
9206
|
+
serializer: xmlSerializer
|
8796
9207
|
};
|
8797
|
-
const getPropertiesOperationSpec
|
9208
|
+
const getPropertiesOperationSpec = {
|
8798
9209
|
path: "/{shareName}/{directory}/{fileName}",
|
8799
9210
|
httpMethod: "HEAD",
|
8800
9211
|
responses: {
|
@@ -8814,9 +9225,9 @@ const getPropertiesOperationSpec$3 = {
|
|
8814
9225
|
leaseId
|
8815
9226
|
],
|
8816
9227
|
isXML: true,
|
8817
|
-
serializer: xmlSerializer
|
9228
|
+
serializer: xmlSerializer
|
8818
9229
|
};
|
8819
|
-
const deleteOperationSpec
|
9230
|
+
const deleteOperationSpec = {
|
8820
9231
|
path: "/{shareName}/{directory}/{fileName}",
|
8821
9232
|
httpMethod: "DELETE",
|
8822
9233
|
responses: {
|
@@ -8836,7 +9247,7 @@ const deleteOperationSpec$2 = {
|
|
8836
9247
|
leaseId
|
8837
9248
|
],
|
8838
9249
|
isXML: true,
|
8839
|
-
serializer: xmlSerializer
|
9250
|
+
serializer: xmlSerializer
|
8840
9251
|
};
|
8841
9252
|
const setHttpHeadersOperationSpec = {
|
8842
9253
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8870,9 +9281,9 @@ const setHttpHeadersOperationSpec = {
|
|
8870
9281
|
fileContentLength1
|
8871
9282
|
],
|
8872
9283
|
isXML: true,
|
8873
|
-
serializer: xmlSerializer
|
9284
|
+
serializer: xmlSerializer
|
8874
9285
|
};
|
8875
|
-
const setMetadataOperationSpec
|
9286
|
+
const setMetadataOperationSpec = {
|
8876
9287
|
path: "/{shareName}/{directory}/{fileName}",
|
8877
9288
|
httpMethod: "PUT",
|
8878
9289
|
responses: {
|
@@ -8893,9 +9304,9 @@ const setMetadataOperationSpec$2 = {
|
|
8893
9304
|
leaseId
|
8894
9305
|
],
|
8895
9306
|
isXML: true,
|
8896
|
-
serializer: xmlSerializer
|
9307
|
+
serializer: xmlSerializer
|
8897
9308
|
};
|
8898
|
-
const acquireLeaseOperationSpec
|
9309
|
+
const acquireLeaseOperationSpec = {
|
8899
9310
|
path: "/{shareName}/{directory}/{fileName}",
|
8900
9311
|
httpMethod: "PUT",
|
8901
9312
|
responses: {
|
@@ -8918,9 +9329,9 @@ const acquireLeaseOperationSpec$1 = {
|
|
8918
9329
|
requestId
|
8919
9330
|
],
|
8920
9331
|
isXML: true,
|
8921
|
-
serializer: xmlSerializer
|
9332
|
+
serializer: xmlSerializer
|
8922
9333
|
};
|
8923
|
-
const releaseLeaseOperationSpec
|
9334
|
+
const releaseLeaseOperationSpec = {
|
8924
9335
|
path: "/{shareName}/{directory}/{fileName}",
|
8925
9336
|
httpMethod: "PUT",
|
8926
9337
|
responses: {
|
@@ -8942,9 +9353,9 @@ const releaseLeaseOperationSpec$1 = {
|
|
8942
9353
|
leaseId1
|
8943
9354
|
],
|
8944
9355
|
isXML: true,
|
8945
|
-
serializer: xmlSerializer
|
9356
|
+
serializer: xmlSerializer
|
8946
9357
|
};
|
8947
|
-
const changeLeaseOperationSpec
|
9358
|
+
const changeLeaseOperationSpec = {
|
8948
9359
|
path: "/{shareName}/{directory}/{fileName}",
|
8949
9360
|
httpMethod: "PUT",
|
8950
9361
|
responses: {
|
@@ -8967,9 +9378,9 @@ const changeLeaseOperationSpec$1 = {
|
|
8967
9378
|
action2
|
8968
9379
|
],
|
8969
9380
|
isXML: true,
|
8970
|
-
serializer: xmlSerializer
|
9381
|
+
serializer: xmlSerializer
|
8971
9382
|
};
|
8972
|
-
const breakLeaseOperationSpec
|
9383
|
+
const breakLeaseOperationSpec = {
|
8973
9384
|
path: "/{shareName}/{directory}/{fileName}",
|
8974
9385
|
httpMethod: "PUT",
|
8975
9386
|
responses: {
|
@@ -8991,7 +9402,7 @@ const breakLeaseOperationSpec$1 = {
|
|
8991
9402
|
action4
|
8992
9403
|
],
|
8993
9404
|
isXML: true,
|
8994
|
-
serializer: xmlSerializer
|
9405
|
+
serializer: xmlSerializer
|
8995
9406
|
};
|
8996
9407
|
const uploadRangeOperationSpec = {
|
8997
9408
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9006,7 +9417,7 @@ const uploadRangeOperationSpec = {
|
|
9006
9417
|
}
|
9007
9418
|
},
|
9008
9419
|
requestBody: body,
|
9009
|
-
queryParameters: [timeoutInSeconds,
|
9420
|
+
queryParameters: [timeoutInSeconds, comp12],
|
9010
9421
|
urlParameters: [url],
|
9011
9422
|
headerParameters: [
|
9012
9423
|
version,
|
@@ -9020,7 +9431,7 @@ const uploadRangeOperationSpec = {
|
|
9020
9431
|
],
|
9021
9432
|
contentType: "application/octet-stream",
|
9022
9433
|
isXML: true,
|
9023
|
-
serializer: xmlSerializer
|
9434
|
+
serializer: xmlSerializer
|
9024
9435
|
};
|
9025
9436
|
const uploadRangeFromURLOperationSpec = {
|
9026
9437
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9034,7 +9445,7 @@ const uploadRangeFromURLOperationSpec = {
|
|
9034
9445
|
headersMapper: FileUploadRangeFromURLExceptionHeaders
|
9035
9446
|
}
|
9036
9447
|
},
|
9037
|
-
queryParameters: [timeoutInSeconds,
|
9448
|
+
queryParameters: [timeoutInSeconds, comp12],
|
9038
9449
|
urlParameters: [url],
|
9039
9450
|
headerParameters: [
|
9040
9451
|
version,
|
@@ -9051,7 +9462,7 @@ const uploadRangeFromURLOperationSpec = {
|
|
9051
9462
|
copySourceAuthorization
|
9052
9463
|
],
|
9053
9464
|
isXML: true,
|
9054
|
-
serializer: xmlSerializer
|
9465
|
+
serializer: xmlSerializer
|
9055
9466
|
};
|
9056
9467
|
const getRangeListOperationSpec = {
|
9057
9468
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9069,7 +9480,7 @@ const getRangeListOperationSpec = {
|
|
9069
9480
|
queryParameters: [
|
9070
9481
|
timeoutInSeconds,
|
9071
9482
|
shareSnapshot,
|
9072
|
-
|
9483
|
+
comp13,
|
9073
9484
|
prevsharesnapshot
|
9074
9485
|
],
|
9075
9486
|
urlParameters: [url],
|
@@ -9080,7 +9491,7 @@ const getRangeListOperationSpec = {
|
|
9080
9491
|
range
|
9081
9492
|
],
|
9082
9493
|
isXML: true,
|
9083
|
-
serializer: xmlSerializer
|
9494
|
+
serializer: xmlSerializer
|
9084
9495
|
};
|
9085
9496
|
const startCopyOperationSpec = {
|
9086
9497
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9103,16 +9514,16 @@ const startCopyOperationSpec = {
|
|
9103
9514
|
leaseId,
|
9104
9515
|
filePermission,
|
9105
9516
|
filePermissionKey1,
|
9106
|
-
copySource,
|
9107
|
-
filePermissionCopyMode,
|
9108
|
-
ignoreReadOnly,
|
9109
9517
|
fileAttributes1,
|
9110
9518
|
fileCreationTime,
|
9111
9519
|
fileLastWriteTime,
|
9520
|
+
copySource,
|
9521
|
+
filePermissionCopyMode,
|
9522
|
+
ignoreReadOnly1,
|
9112
9523
|
setArchiveAttribute
|
9113
9524
|
],
|
9114
9525
|
isXML: true,
|
9115
|
-
serializer: xmlSerializer
|
9526
|
+
serializer: xmlSerializer
|
9116
9527
|
};
|
9117
9528
|
const abortCopyOperationSpec = {
|
9118
9529
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9128,7 +9539,7 @@ const abortCopyOperationSpec = {
|
|
9128
9539
|
},
|
9129
9540
|
queryParameters: [
|
9130
9541
|
timeoutInSeconds,
|
9131
|
-
|
9542
|
+
comp14,
|
9132
9543
|
copyId
|
9133
9544
|
],
|
9134
9545
|
urlParameters: [url],
|
@@ -9139,9 +9550,9 @@ const abortCopyOperationSpec = {
|
|
9139
9550
|
copyActionAbortConstant
|
9140
9551
|
],
|
9141
9552
|
isXML: true,
|
9142
|
-
serializer: xmlSerializer
|
9553
|
+
serializer: xmlSerializer
|
9143
9554
|
};
|
9144
|
-
const listHandlesOperationSpec
|
9555
|
+
const listHandlesOperationSpec = {
|
9145
9556
|
path: "/{shareName}/{directory}/{fileName}",
|
9146
9557
|
httpMethod: "GET",
|
9147
9558
|
responses: {
|
@@ -9164,9 +9575,9 @@ const listHandlesOperationSpec$1 = {
|
|
9164
9575
|
urlParameters: [url],
|
9165
9576
|
headerParameters: [version, accept1],
|
9166
9577
|
isXML: true,
|
9167
|
-
serializer: xmlSerializer
|
9578
|
+
serializer: xmlSerializer
|
9168
9579
|
};
|
9169
|
-
const forceCloseHandlesOperationSpec
|
9580
|
+
const forceCloseHandlesOperationSpec = {
|
9170
9581
|
path: "/{shareName}/{directory}/{fileName}",
|
9171
9582
|
httpMethod: "PUT",
|
9172
9583
|
responses: {
|
@@ -9191,7 +9602,39 @@ const forceCloseHandlesOperationSpec$1 = {
|
|
9191
9602
|
handleId
|
9192
9603
|
],
|
9193
9604
|
isXML: true,
|
9194
|
-
serializer: xmlSerializer
|
9605
|
+
serializer: xmlSerializer
|
9606
|
+
};
|
9607
|
+
const renameOperationSpec = {
|
9608
|
+
path: "/{shareName}/{directory}/{fileName}",
|
9609
|
+
httpMethod: "PUT",
|
9610
|
+
responses: {
|
9611
|
+
200: {
|
9612
|
+
headersMapper: FileRenameHeaders
|
9613
|
+
},
|
9614
|
+
default: {
|
9615
|
+
bodyMapper: StorageError,
|
9616
|
+
headersMapper: FileRenameExceptionHeaders
|
9617
|
+
}
|
9618
|
+
},
|
9619
|
+
queryParameters: [timeoutInSeconds, comp11],
|
9620
|
+
urlParameters: [url],
|
9621
|
+
headerParameters: [
|
9622
|
+
version,
|
9623
|
+
accept1,
|
9624
|
+
metadata,
|
9625
|
+
filePermission,
|
9626
|
+
filePermissionKey1,
|
9627
|
+
renameSource,
|
9628
|
+
replaceIfExists,
|
9629
|
+
ignoreReadOnly,
|
9630
|
+
sourceLeaseId,
|
9631
|
+
destinationLeaseId,
|
9632
|
+
fileAttributes1,
|
9633
|
+
fileCreationTime,
|
9634
|
+
fileLastWriteTime
|
9635
|
+
],
|
9636
|
+
isXML: true,
|
9637
|
+
serializer: xmlSerializer
|
9195
9638
|
};
|
9196
9639
|
|
9197
9640
|
// Copyright (c) Microsoft Corporation.
|
@@ -9259,6 +9702,10 @@ class StorageBrowserPolicyFactory {
|
|
9259
9702
|
}
|
9260
9703
|
|
9261
9704
|
// Copyright (c) Microsoft Corporation.
|
9705
|
+
/**
|
9706
|
+
* RetryPolicy types.
|
9707
|
+
*/
|
9708
|
+
exports.StorageRetryPolicyType = void 0;
|
9262
9709
|
(function (StorageRetryPolicyType) {
|
9263
9710
|
/**
|
9264
9711
|
* Exponential retry. Retry time delay grows exponentially.
|
@@ -9520,7 +9967,7 @@ class TelemetryPolicyFactory {
|
|
9520
9967
|
userAgentInfo.push(libInfo);
|
9521
9968
|
}
|
9522
9969
|
// e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
|
9523
|
-
const runtimeInfo = `(NODE-VERSION ${process.version}; ${
|
9970
|
+
const runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
|
9524
9971
|
if (userAgentInfo.indexOf(runtimeInfo) === -1) {
|
9525
9972
|
userAgentInfo.push(runtimeInfo);
|
9526
9973
|
}
|
@@ -9902,8 +10349,8 @@ function convertTracingToRequestOptionsBase(options) {
|
|
9902
10349
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
9903
10350
|
*/
|
9904
10351
|
const packageName = "azure-storage-file-share";
|
9905
|
-
const packageVersion = "12.9.0-beta.
|
9906
|
-
class StorageClientContext extends
|
10352
|
+
const packageVersion = "12.9.0-beta.4";
|
10353
|
+
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
9907
10354
|
/**
|
9908
10355
|
* Initializes a new instance of the StorageClientContext class.
|
9909
10356
|
* @param url The URL of the service account, share, directory or file that is the target of the
|
@@ -9919,7 +10366,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9919
10366
|
options = {};
|
9920
10367
|
}
|
9921
10368
|
if (!options.userAgent) {
|
9922
|
-
const defaultUserAgent =
|
10369
|
+
const defaultUserAgent = coreHttp__namespace.getDefaultUserAgentValue();
|
9923
10370
|
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
9924
10371
|
}
|
9925
10372
|
super(undefined, options);
|
@@ -9928,7 +10375,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9928
10375
|
// Parameter assignments
|
9929
10376
|
this.url = url;
|
9930
10377
|
// Assigning values to Constant parameters
|
9931
|
-
this.version = options.version || "2021-
|
10378
|
+
this.version = options.version || "2021-04-10";
|
9932
10379
|
this.fileRangeWriteFromUrl = options.fileRangeWriteFromUrl || "update";
|
9933
10380
|
}
|
9934
10381
|
}
|
@@ -11123,7 +11570,7 @@ async function streamToBuffer(stream, buffer, offset, end, encoding) {
|
|
11123
11570
|
*/
|
11124
11571
|
async function readStreamToLocalFile(rs, file) {
|
11125
11572
|
return new Promise((resolve, reject) => {
|
11126
|
-
const ws =
|
11573
|
+
const ws = fs__namespace.createWriteStream(file);
|
11127
11574
|
rs.on("error", (err) => {
|
11128
11575
|
reject(err);
|
11129
11576
|
});
|
@@ -11139,8 +11586,8 @@ async function readStreamToLocalFile(rs, file) {
|
|
11139
11586
|
*
|
11140
11587
|
* Promisified version of fs.stat().
|
11141
11588
|
*/
|
11142
|
-
const fsStat =
|
11143
|
-
const fsCreateReadStream =
|
11589
|
+
const fsStat = util__namespace.promisify(fs__namespace.stat);
|
11590
|
+
const fsCreateReadStream = fs__namespace.createReadStream;
|
11144
11591
|
|
11145
11592
|
// Copyright (c) Microsoft Corporation.
|
11146
11593
|
/**
|
@@ -12766,6 +13213,68 @@ class ShareDirectoryClient extends StorageClient {
|
|
12766
13213
|
span.end();
|
12767
13214
|
}
|
12768
13215
|
}
|
13216
|
+
/**
|
13217
|
+
* Renames a directory.
|
13218
|
+
* This API only supports renaming a directory in the same share.
|
13219
|
+
*
|
13220
|
+
* @param destinationPath - Specifies the destination path to rename to. The path will be encoded to put into a URL to specify the destination.
|
13221
|
+
* @param options - Options for the renaming operation.
|
13222
|
+
* @returns Response data for the file renaming operation.
|
13223
|
+
*
|
13224
|
+
* Example usage:
|
13225
|
+
*
|
13226
|
+
* ```js
|
13227
|
+
*
|
13228
|
+
* // Rename the directory
|
13229
|
+
* await diretoryClient.rename(destinationPath);
|
13230
|
+
* console.log("Renamed directory successfully!");
|
13231
|
+
* ```
|
13232
|
+
*/
|
13233
|
+
async rename(destinationPath, options = {}) {
|
13234
|
+
const { span, updatedOptions } = createSpan("ShareDirectoryClient-rename", options);
|
13235
|
+
const split = destinationPath.split("?");
|
13236
|
+
let destinationUrl;
|
13237
|
+
if (split.length === 2) {
|
13238
|
+
const pathOnly = encodeURIComponent(split[0]);
|
13239
|
+
const renameDestination = `/${this.shareName}/${pathOnly}`;
|
13240
|
+
destinationUrl = setURLPath(this.url, renameDestination);
|
13241
|
+
destinationUrl = setURLQueries(destinationUrl, split[1]);
|
13242
|
+
}
|
13243
|
+
else if (split.length === 1) {
|
13244
|
+
const pathOnly = encodeURIComponent(destinationPath);
|
13245
|
+
const renameDestination = `/${this.shareName}/${pathOnly}`;
|
13246
|
+
destinationUrl = setURLPath(this.url, renameDestination);
|
13247
|
+
}
|
13248
|
+
else {
|
13249
|
+
throw new RangeError("Destination path should not contain more than one query string");
|
13250
|
+
}
|
13251
|
+
const destDirectory = new ShareDirectoryClient(destinationUrl, this.pipeline);
|
13252
|
+
try {
|
13253
|
+
const response = await destDirectory.context.rename(this.url, Object.assign(Object.assign({}, updatedOptions), { sourceLeaseAccessConditions: updatedOptions.sourceLeaseAccessConditions
|
13254
|
+
? {
|
13255
|
+
sourceLeaseId: updatedOptions.sourceLeaseAccessConditions.leaseId,
|
13256
|
+
}
|
13257
|
+
: undefined, destinationLeaseAccessConditions: updatedOptions.destinationLeaseAccessConditions
|
13258
|
+
? {
|
13259
|
+
destinationLeaseId: updatedOptions.destinationLeaseAccessConditions.leaseId,
|
13260
|
+
}
|
13261
|
+
: undefined }));
|
13262
|
+
return {
|
13263
|
+
destinationDirectoryClient: destDirectory,
|
13264
|
+
directoryRenameResponse: response,
|
13265
|
+
};
|
13266
|
+
}
|
13267
|
+
catch (e) {
|
13268
|
+
span.setStatus({
|
13269
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
13270
|
+
message: e.message,
|
13271
|
+
});
|
13272
|
+
throw e;
|
13273
|
+
}
|
13274
|
+
finally {
|
13275
|
+
span.end();
|
13276
|
+
}
|
13277
|
+
}
|
12769
13278
|
}
|
12770
13279
|
/**
|
12771
13280
|
* A ShareFileClient represents a URL to an Azure Storage file.
|
@@ -14112,6 +14621,68 @@ class ShareFileClient extends StorageClient {
|
|
14112
14621
|
const sas = generateFileSASQueryParameters(Object.assign({ shareName: this.shareName, filePath: this.path }, options), this.credential).toString();
|
14113
14622
|
return appendToURLQuery(this.url, sas);
|
14114
14623
|
}
|
14624
|
+
/**
|
14625
|
+
* Renames a file.
|
14626
|
+
* This API only supports renaming a file in the same share.
|
14627
|
+
*
|
14628
|
+
* @param destinationPath - Specifies the destination path to rename to. The path will be encoded to put into a URL to specify the destination.
|
14629
|
+
* @param options - Options for the renaming operation.
|
14630
|
+
* @returns Response data for the file renaming operation.
|
14631
|
+
*
|
14632
|
+
* Example usage:
|
14633
|
+
*
|
14634
|
+
* ```js
|
14635
|
+
*
|
14636
|
+
* // Rename the file
|
14637
|
+
* await fileClient.rename(destinationPath);
|
14638
|
+
* console.log("Renamed file successfully!");
|
14639
|
+
* ```
|
14640
|
+
*/
|
14641
|
+
async rename(destinationPath, options = {}) {
|
14642
|
+
const { span, updatedOptions } = createSpan("ShareFileClient-rename", options);
|
14643
|
+
const split = destinationPath.split("?");
|
14644
|
+
let destinationUrl;
|
14645
|
+
if (split.length === 2) {
|
14646
|
+
const pathOnly = encodeURIComponent(split[0]);
|
14647
|
+
const renameDestination = `/${this.shareName}/${pathOnly}`;
|
14648
|
+
destinationUrl = setURLPath(this.url, renameDestination);
|
14649
|
+
destinationUrl = setURLQueries(destinationUrl, split[1]);
|
14650
|
+
}
|
14651
|
+
else if (split.length === 1) {
|
14652
|
+
const pathOnly = encodeURIComponent(destinationPath);
|
14653
|
+
const renameDestination = `/${this.shareName}/${pathOnly}`;
|
14654
|
+
destinationUrl = setURLPath(this.url, renameDestination);
|
14655
|
+
}
|
14656
|
+
else {
|
14657
|
+
throw new RangeError("Destination path should not contain more than one query string");
|
14658
|
+
}
|
14659
|
+
const destFile = new ShareFileClient(destinationUrl, this.pipeline);
|
14660
|
+
try {
|
14661
|
+
const response = await destFile.context.rename(this.url, Object.assign(Object.assign({}, updatedOptions), { sourceLeaseAccessConditions: updatedOptions.sourceLeaseAccessConditions
|
14662
|
+
? {
|
14663
|
+
sourceLeaseId: updatedOptions.sourceLeaseAccessConditions.leaseId,
|
14664
|
+
}
|
14665
|
+
: undefined, destinationLeaseAccessConditions: updatedOptions.destinationLeaseAccessConditions
|
14666
|
+
? {
|
14667
|
+
destinationLeaseId: updatedOptions.destinationLeaseAccessConditions.leaseId,
|
14668
|
+
}
|
14669
|
+
: undefined }));
|
14670
|
+
return {
|
14671
|
+
destinationFileClient: destFile,
|
14672
|
+
fileRenameResponse: response,
|
14673
|
+
};
|
14674
|
+
}
|
14675
|
+
catch (e) {
|
14676
|
+
span.setStatus({
|
14677
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
14678
|
+
message: e.message,
|
14679
|
+
});
|
14680
|
+
throw e;
|
14681
|
+
}
|
14682
|
+
finally {
|
14683
|
+
span.end();
|
14684
|
+
}
|
14685
|
+
}
|
14115
14686
|
}
|
14116
14687
|
/**
|
14117
14688
|
* A client that manages leases for a {@link ShareFileClient} or {@link ShareClient}.
|
@@ -14736,39 +15307,27 @@ class ShareServiceClient extends StorageClient {
|
|
14736
15307
|
|
14737
15308
|
Object.defineProperty(exports, 'BaseRequestPolicy', {
|
14738
15309
|
enumerable: true,
|
14739
|
-
get: function () {
|
14740
|
-
return coreHttp.BaseRequestPolicy;
|
14741
|
-
}
|
15310
|
+
get: function () { return coreHttp.BaseRequestPolicy; }
|
14742
15311
|
});
|
14743
15312
|
Object.defineProperty(exports, 'HttpHeaders', {
|
14744
15313
|
enumerable: true,
|
14745
|
-
get: function () {
|
14746
|
-
return coreHttp.HttpHeaders;
|
14747
|
-
}
|
15314
|
+
get: function () { return coreHttp.HttpHeaders; }
|
14748
15315
|
});
|
14749
15316
|
Object.defineProperty(exports, 'RequestPolicyOptions', {
|
14750
15317
|
enumerable: true,
|
14751
|
-
get: function () {
|
14752
|
-
return coreHttp.RequestPolicyOptions;
|
14753
|
-
}
|
15318
|
+
get: function () { return coreHttp.RequestPolicyOptions; }
|
14754
15319
|
});
|
14755
15320
|
Object.defineProperty(exports, 'RestError', {
|
14756
15321
|
enumerable: true,
|
14757
|
-
get: function () {
|
14758
|
-
return coreHttp.RestError;
|
14759
|
-
}
|
15322
|
+
get: function () { return coreHttp.RestError; }
|
14760
15323
|
});
|
14761
15324
|
Object.defineProperty(exports, 'WebResource', {
|
14762
15325
|
enumerable: true,
|
14763
|
-
get: function () {
|
14764
|
-
return coreHttp.WebResource;
|
14765
|
-
}
|
15326
|
+
get: function () { return coreHttp.WebResource; }
|
14766
15327
|
});
|
14767
15328
|
Object.defineProperty(exports, 'deserializationPolicy', {
|
14768
15329
|
enumerable: true,
|
14769
|
-
get: function () {
|
14770
|
-
return coreHttp.deserializationPolicy;
|
14771
|
-
}
|
15330
|
+
get: function () { return coreHttp.deserializationPolicy; }
|
14772
15331
|
});
|
14773
15332
|
exports.AccountSASPermissions = AccountSASPermissions;
|
14774
15333
|
exports.AccountSASResourceTypes = AccountSASResourceTypes;
|