@azure/storage-file-share 12.9.0-alpha.20220113.3 → 12.9.0-alpha.20220128.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/dist/index.js +185 -166
- package/dist/index.js.map +1 -1
- package/package.json +8 -16
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
|
/**
|
@@ -804,6 +827,10 @@ function httpAuthorizationToString(httpAuthorization) {
|
|
804
827
|
}
|
805
828
|
|
806
829
|
// Copyright (c) Microsoft Corporation.
|
830
|
+
/**
|
831
|
+
* Protocols for generated SAS.
|
832
|
+
*/
|
833
|
+
exports.SASProtocol = void 0;
|
807
834
|
(function (SASProtocol) {
|
808
835
|
/**
|
809
836
|
* Protocol that allows HTTPS only
|
@@ -7332,9 +7359,9 @@ class Service {
|
|
7332
7359
|
setProperties(properties, options) {
|
7333
7360
|
const operationArguments = {
|
7334
7361
|
properties,
|
7335
|
-
options:
|
7362
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7336
7363
|
};
|
7337
|
-
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
7364
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec$2);
|
7338
7365
|
}
|
7339
7366
|
/**
|
7340
7367
|
* Gets the properties of a storage account's File service, including properties for Storage Analytics
|
@@ -7343,9 +7370,9 @@ class Service {
|
|
7343
7370
|
*/
|
7344
7371
|
getProperties(options) {
|
7345
7372
|
const operationArguments = {
|
7346
|
-
options:
|
7373
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7347
7374
|
};
|
7348
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
7375
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$3);
|
7349
7376
|
}
|
7350
7377
|
/**
|
7351
7378
|
* The List Shares Segment operation returns a list of the shares and share snapshots under the
|
@@ -7354,14 +7381,14 @@ class Service {
|
|
7354
7381
|
*/
|
7355
7382
|
listSharesSegment(options) {
|
7356
7383
|
const operationArguments = {
|
7357
|
-
options:
|
7384
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7358
7385
|
};
|
7359
7386
|
return this.client.sendOperationRequest(operationArguments, listSharesSegmentOperationSpec);
|
7360
7387
|
}
|
7361
7388
|
}
|
7362
7389
|
// Operation Specifications
|
7363
|
-
const xmlSerializer = new
|
7364
|
-
const setPropertiesOperationSpec = {
|
7390
|
+
const xmlSerializer$3 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
7391
|
+
const setPropertiesOperationSpec$2 = {
|
7365
7392
|
path: "/",
|
7366
7393
|
httpMethod: "PUT",
|
7367
7394
|
responses: {
|
@@ -7388,9 +7415,9 @@ const setPropertiesOperationSpec = {
|
|
7388
7415
|
isXML: true,
|
7389
7416
|
contentType: "application/xml; charset=utf-8",
|
7390
7417
|
mediaType: "xml",
|
7391
|
-
serializer: xmlSerializer
|
7418
|
+
serializer: xmlSerializer$3
|
7392
7419
|
};
|
7393
|
-
const getPropertiesOperationSpec = {
|
7420
|
+
const getPropertiesOperationSpec$3 = {
|
7394
7421
|
path: "/",
|
7395
7422
|
httpMethod: "GET",
|
7396
7423
|
responses: {
|
@@ -7411,7 +7438,7 @@ const getPropertiesOperationSpec = {
|
|
7411
7438
|
urlParameters: [url],
|
7412
7439
|
headerParameters: [version, accept1],
|
7413
7440
|
isXML: true,
|
7414
|
-
serializer: xmlSerializer
|
7441
|
+
serializer: xmlSerializer$3
|
7415
7442
|
};
|
7416
7443
|
const listSharesSegmentOperationSpec = {
|
7417
7444
|
path: "/",
|
@@ -7437,7 +7464,7 @@ const listSharesSegmentOperationSpec = {
|
|
7437
7464
|
urlParameters: [url],
|
7438
7465
|
headerParameters: [version, accept1],
|
7439
7466
|
isXML: true,
|
7440
|
-
serializer: xmlSerializer
|
7467
|
+
serializer: xmlSerializer$3
|
7441
7468
|
};
|
7442
7469
|
|
7443
7470
|
/*
|
@@ -7463,9 +7490,9 @@ class Share {
|
|
7463
7490
|
*/
|
7464
7491
|
create(options) {
|
7465
7492
|
const operationArguments = {
|
7466
|
-
options:
|
7493
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7467
7494
|
};
|
7468
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
7495
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);
|
7469
7496
|
}
|
7470
7497
|
/**
|
7471
7498
|
* Returns all user-defined metadata and system properties for the specified share or share snapshot.
|
@@ -7474,9 +7501,9 @@ class Share {
|
|
7474
7501
|
*/
|
7475
7502
|
getProperties(options) {
|
7476
7503
|
const operationArguments = {
|
7477
|
-
options:
|
7504
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7478
7505
|
};
|
7479
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$
|
7506
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$2);
|
7480
7507
|
}
|
7481
7508
|
/**
|
7482
7509
|
* Operation marks the specified share or share snapshot for deletion. The share or share snapshot and
|
@@ -7485,9 +7512,9 @@ class Share {
|
|
7485
7512
|
*/
|
7486
7513
|
delete(options) {
|
7487
7514
|
const operationArguments = {
|
7488
|
-
options:
|
7515
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7489
7516
|
};
|
7490
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
7517
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$2);
|
7491
7518
|
}
|
7492
7519
|
/**
|
7493
7520
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7496,9 +7523,9 @@ class Share {
|
|
7496
7523
|
*/
|
7497
7524
|
acquireLease(options) {
|
7498
7525
|
const operationArguments = {
|
7499
|
-
options:
|
7526
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7500
7527
|
};
|
7501
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
7528
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec$1);
|
7502
7529
|
}
|
7503
7530
|
/**
|
7504
7531
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7509,9 +7536,9 @@ class Share {
|
|
7509
7536
|
releaseLease(leaseId, options) {
|
7510
7537
|
const operationArguments = {
|
7511
7538
|
leaseId,
|
7512
|
-
options:
|
7539
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7513
7540
|
};
|
7514
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
7541
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec$1);
|
7515
7542
|
}
|
7516
7543
|
/**
|
7517
7544
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7522,9 +7549,9 @@ class Share {
|
|
7522
7549
|
changeLease(leaseId, options) {
|
7523
7550
|
const operationArguments = {
|
7524
7551
|
leaseId,
|
7525
|
-
options:
|
7552
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7526
7553
|
};
|
7527
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
7554
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec$1);
|
7528
7555
|
}
|
7529
7556
|
/**
|
7530
7557
|
* The Lease Share operation establishes and manages a lock on a share, or the specified snapshot for
|
@@ -7535,7 +7562,7 @@ class Share {
|
|
7535
7562
|
renewLease(leaseId, options) {
|
7536
7563
|
const operationArguments = {
|
7537
7564
|
leaseId,
|
7538
|
-
options:
|
7565
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7539
7566
|
};
|
7540
7567
|
return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec);
|
7541
7568
|
}
|
@@ -7546,9 +7573,9 @@ class Share {
|
|
7546
7573
|
*/
|
7547
7574
|
breakLease(options) {
|
7548
7575
|
const operationArguments = {
|
7549
|
-
options:
|
7576
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7550
7577
|
};
|
7551
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
7578
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec$1);
|
7552
7579
|
}
|
7553
7580
|
/**
|
7554
7581
|
* Creates a read-only snapshot of a share.
|
@@ -7556,7 +7583,7 @@ class Share {
|
|
7556
7583
|
*/
|
7557
7584
|
createSnapshot(options) {
|
7558
7585
|
const operationArguments = {
|
7559
|
-
options:
|
7586
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7560
7587
|
};
|
7561
7588
|
return this.client.sendOperationRequest(operationArguments, createSnapshotOperationSpec);
|
7562
7589
|
}
|
@@ -7568,7 +7595,7 @@ class Share {
|
|
7568
7595
|
createPermission(sharePermission, options) {
|
7569
7596
|
const operationArguments = {
|
7570
7597
|
sharePermission,
|
7571
|
-
options:
|
7598
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7572
7599
|
};
|
7573
7600
|
return this.client.sendOperationRequest(operationArguments, createPermissionOperationSpec);
|
7574
7601
|
}
|
@@ -7580,7 +7607,7 @@ class Share {
|
|
7580
7607
|
getPermission(filePermissionKey, options) {
|
7581
7608
|
const operationArguments = {
|
7582
7609
|
filePermissionKey,
|
7583
|
-
options:
|
7610
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7584
7611
|
};
|
7585
7612
|
return this.client.sendOperationRequest(operationArguments, getPermissionOperationSpec);
|
7586
7613
|
}
|
@@ -7590,7 +7617,7 @@ class Share {
|
|
7590
7617
|
*/
|
7591
7618
|
setProperties(options) {
|
7592
7619
|
const operationArguments = {
|
7593
|
-
options:
|
7620
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7594
7621
|
};
|
7595
7622
|
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec$1);
|
7596
7623
|
}
|
@@ -7600,9 +7627,9 @@ class Share {
|
|
7600
7627
|
*/
|
7601
7628
|
setMetadata(options) {
|
7602
7629
|
const operationArguments = {
|
7603
|
-
options:
|
7630
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7604
7631
|
};
|
7605
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
7632
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$2);
|
7606
7633
|
}
|
7607
7634
|
/**
|
7608
7635
|
* Returns information about stored access policies specified on the share.
|
@@ -7610,7 +7637,7 @@ class Share {
|
|
7610
7637
|
*/
|
7611
7638
|
getAccessPolicy(options) {
|
7612
7639
|
const operationArguments = {
|
7613
|
-
options:
|
7640
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7614
7641
|
};
|
7615
7642
|
return this.client.sendOperationRequest(operationArguments, getAccessPolicyOperationSpec);
|
7616
7643
|
}
|
@@ -7620,7 +7647,7 @@ class Share {
|
|
7620
7647
|
*/
|
7621
7648
|
setAccessPolicy(options) {
|
7622
7649
|
const operationArguments = {
|
7623
|
-
options:
|
7650
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7624
7651
|
};
|
7625
7652
|
return this.client.sendOperationRequest(operationArguments, setAccessPolicyOperationSpec);
|
7626
7653
|
}
|
@@ -7630,7 +7657,7 @@ class Share {
|
|
7630
7657
|
*/
|
7631
7658
|
getStatistics(options) {
|
7632
7659
|
const operationArguments = {
|
7633
|
-
options:
|
7660
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7634
7661
|
};
|
7635
7662
|
return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
|
7636
7663
|
}
|
@@ -7640,15 +7667,15 @@ class Share {
|
|
7640
7667
|
*/
|
7641
7668
|
restore(options) {
|
7642
7669
|
const operationArguments = {
|
7643
|
-
options:
|
7670
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
7644
7671
|
};
|
7645
7672
|
return this.client.sendOperationRequest(operationArguments, restoreOperationSpec);
|
7646
7673
|
}
|
7647
7674
|
}
|
7648
7675
|
// Operation Specifications
|
7649
|
-
const xmlSerializer$
|
7650
|
-
const serializer = new
|
7651
|
-
const createOperationSpec = {
|
7676
|
+
const xmlSerializer$2 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
7677
|
+
const serializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);
|
7678
|
+
const createOperationSpec$2 = {
|
7652
7679
|
path: "/{shareName}",
|
7653
7680
|
httpMethod: "PUT",
|
7654
7681
|
responses: {
|
@@ -7672,9 +7699,9 @@ const createOperationSpec = {
|
|
7672
7699
|
rootSquash
|
7673
7700
|
],
|
7674
7701
|
isXML: true,
|
7675
|
-
serializer: xmlSerializer$
|
7702
|
+
serializer: xmlSerializer$2
|
7676
7703
|
};
|
7677
|
-
const getPropertiesOperationSpec$
|
7704
|
+
const getPropertiesOperationSpec$2 = {
|
7678
7705
|
path: "/{shareName}",
|
7679
7706
|
httpMethod: "GET",
|
7680
7707
|
responses: {
|
@@ -7698,9 +7725,9 @@ const getPropertiesOperationSpec$1 = {
|
|
7698
7725
|
leaseId
|
7699
7726
|
],
|
7700
7727
|
isXML: true,
|
7701
|
-
serializer: xmlSerializer$
|
7728
|
+
serializer: xmlSerializer$2
|
7702
7729
|
};
|
7703
|
-
const deleteOperationSpec = {
|
7730
|
+
const deleteOperationSpec$2 = {
|
7704
7731
|
path: "/{shareName}",
|
7705
7732
|
httpMethod: "DELETE",
|
7706
7733
|
responses: {
|
@@ -7725,9 +7752,9 @@ const deleteOperationSpec = {
|
|
7725
7752
|
deleteSnapshots
|
7726
7753
|
],
|
7727
7754
|
isXML: true,
|
7728
|
-
serializer: xmlSerializer$
|
7755
|
+
serializer: xmlSerializer$2
|
7729
7756
|
};
|
7730
|
-
const acquireLeaseOperationSpec = {
|
7757
|
+
const acquireLeaseOperationSpec$1 = {
|
7731
7758
|
path: "/{shareName}",
|
7732
7759
|
httpMethod: "PUT",
|
7733
7760
|
responses: {
|
@@ -7755,9 +7782,9 @@ const acquireLeaseOperationSpec = {
|
|
7755
7782
|
requestId
|
7756
7783
|
],
|
7757
7784
|
isXML: true,
|
7758
|
-
serializer: xmlSerializer$
|
7785
|
+
serializer: xmlSerializer$2
|
7759
7786
|
};
|
7760
|
-
const releaseLeaseOperationSpec = {
|
7787
|
+
const releaseLeaseOperationSpec$1 = {
|
7761
7788
|
path: "/{shareName}",
|
7762
7789
|
httpMethod: "PUT",
|
7763
7790
|
responses: {
|
@@ -7784,9 +7811,9 @@ const releaseLeaseOperationSpec = {
|
|
7784
7811
|
leaseId1
|
7785
7812
|
],
|
7786
7813
|
isXML: true,
|
7787
|
-
serializer: xmlSerializer$
|
7814
|
+
serializer: xmlSerializer$2
|
7788
7815
|
};
|
7789
|
-
const changeLeaseOperationSpec = {
|
7816
|
+
const changeLeaseOperationSpec$1 = {
|
7790
7817
|
path: "/{shareName}",
|
7791
7818
|
httpMethod: "PUT",
|
7792
7819
|
responses: {
|
@@ -7814,7 +7841,7 @@ const changeLeaseOperationSpec = {
|
|
7814
7841
|
action2
|
7815
7842
|
],
|
7816
7843
|
isXML: true,
|
7817
|
-
serializer: xmlSerializer$
|
7844
|
+
serializer: xmlSerializer$2
|
7818
7845
|
};
|
7819
7846
|
const renewLeaseOperationSpec = {
|
7820
7847
|
path: "/{shareName}",
|
@@ -7843,9 +7870,9 @@ const renewLeaseOperationSpec = {
|
|
7843
7870
|
action3
|
7844
7871
|
],
|
7845
7872
|
isXML: true,
|
7846
|
-
serializer: xmlSerializer$
|
7873
|
+
serializer: xmlSerializer$2
|
7847
7874
|
};
|
7848
|
-
const breakLeaseOperationSpec = {
|
7875
|
+
const breakLeaseOperationSpec$1 = {
|
7849
7876
|
path: "/{shareName}",
|
7850
7877
|
httpMethod: "PUT",
|
7851
7878
|
responses: {
|
@@ -7873,7 +7900,7 @@ const breakLeaseOperationSpec = {
|
|
7873
7900
|
breakPeriod
|
7874
7901
|
],
|
7875
7902
|
isXML: true,
|
7876
|
-
serializer: xmlSerializer$
|
7903
|
+
serializer: xmlSerializer$2
|
7877
7904
|
};
|
7878
7905
|
const createSnapshotOperationSpec = {
|
7879
7906
|
path: "/{shareName}",
|
@@ -7899,7 +7926,7 @@ const createSnapshotOperationSpec = {
|
|
7899
7926
|
metadata
|
7900
7927
|
],
|
7901
7928
|
isXML: true,
|
7902
|
-
serializer: xmlSerializer$
|
7929
|
+
serializer: xmlSerializer$2
|
7903
7930
|
};
|
7904
7931
|
const createPermissionOperationSpec = {
|
7905
7932
|
path: "/{shareName}",
|
@@ -7927,7 +7954,7 @@ const createPermissionOperationSpec = {
|
|
7927
7954
|
],
|
7928
7955
|
isXML: false,
|
7929
7956
|
contentType: "application/xml; charset=utf-8",
|
7930
|
-
serializer: xmlSerializer$
|
7957
|
+
serializer: xmlSerializer$2
|
7931
7958
|
};
|
7932
7959
|
const getPermissionOperationSpec = {
|
7933
7960
|
path: "/{shareName}",
|
@@ -7982,9 +8009,9 @@ const setPropertiesOperationSpec$1 = {
|
|
7982
8009
|
leaseId
|
7983
8010
|
],
|
7984
8011
|
isXML: true,
|
7985
|
-
serializer: xmlSerializer$
|
8012
|
+
serializer: xmlSerializer$2
|
7986
8013
|
};
|
7987
|
-
const setMetadataOperationSpec = {
|
8014
|
+
const setMetadataOperationSpec$2 = {
|
7988
8015
|
path: "/{shareName}",
|
7989
8016
|
httpMethod: "PUT",
|
7990
8017
|
responses: {
|
@@ -8009,7 +8036,7 @@ const setMetadataOperationSpec = {
|
|
8009
8036
|
leaseId
|
8010
8037
|
],
|
8011
8038
|
isXML: true,
|
8012
|
-
serializer: xmlSerializer$
|
8039
|
+
serializer: xmlSerializer$2
|
8013
8040
|
};
|
8014
8041
|
const getAccessPolicyOperationSpec = {
|
8015
8042
|
path: "/{shareName}",
|
@@ -8047,7 +8074,7 @@ const getAccessPolicyOperationSpec = {
|
|
8047
8074
|
leaseId
|
8048
8075
|
],
|
8049
8076
|
isXML: true,
|
8050
|
-
serializer: xmlSerializer$
|
8077
|
+
serializer: xmlSerializer$2
|
8051
8078
|
};
|
8052
8079
|
const setAccessPolicyOperationSpec = {
|
8053
8080
|
path: "/{shareName}",
|
@@ -8077,7 +8104,7 @@ const setAccessPolicyOperationSpec = {
|
|
8077
8104
|
isXML: true,
|
8078
8105
|
contentType: "application/xml; charset=utf-8",
|
8079
8106
|
mediaType: "xml",
|
8080
|
-
serializer: xmlSerializer$
|
8107
|
+
serializer: xmlSerializer$2
|
8081
8108
|
};
|
8082
8109
|
const getStatisticsOperationSpec = {
|
8083
8110
|
path: "/{shareName}",
|
@@ -8104,7 +8131,7 @@ const getStatisticsOperationSpec = {
|
|
8104
8131
|
leaseId
|
8105
8132
|
],
|
8106
8133
|
isXML: true,
|
8107
|
-
serializer: xmlSerializer$
|
8134
|
+
serializer: xmlSerializer$2
|
8108
8135
|
};
|
8109
8136
|
const restoreOperationSpec = {
|
8110
8137
|
path: "/{shareName}",
|
@@ -8132,7 +8159,7 @@ const restoreOperationSpec = {
|
|
8132
8159
|
deletedShareVersion
|
8133
8160
|
],
|
8134
8161
|
isXML: true,
|
8135
|
-
serializer: xmlSerializer$
|
8162
|
+
serializer: xmlSerializer$2
|
8136
8163
|
};
|
8137
8164
|
|
8138
8165
|
/*
|
@@ -8164,7 +8191,7 @@ class Directory {
|
|
8164
8191
|
fileAttributes,
|
8165
8192
|
fileCreatedOn,
|
8166
8193
|
fileLastWriteOn,
|
8167
|
-
options:
|
8194
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8168
8195
|
};
|
8169
8196
|
return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);
|
8170
8197
|
}
|
@@ -8176,9 +8203,9 @@ class Directory {
|
|
8176
8203
|
*/
|
8177
8204
|
getProperties(options) {
|
8178
8205
|
const operationArguments = {
|
8179
|
-
options:
|
8206
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8180
8207
|
};
|
8181
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$
|
8208
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$1);
|
8182
8209
|
}
|
8183
8210
|
/**
|
8184
8211
|
* Removes the specified empty directory. Note that the directory must be empty before it can be
|
@@ -8187,7 +8214,7 @@ class Directory {
|
|
8187
8214
|
*/
|
8188
8215
|
delete(options) {
|
8189
8216
|
const operationArguments = {
|
8190
|
-
options:
|
8217
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8191
8218
|
};
|
8192
8219
|
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
|
8193
8220
|
}
|
@@ -8204,9 +8231,9 @@ class Directory {
|
|
8204
8231
|
fileAttributes,
|
8205
8232
|
fileCreatedOn,
|
8206
8233
|
fileLastWriteOn,
|
8207
|
-
options:
|
8234
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8208
8235
|
};
|
8209
|
-
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec
|
8236
|
+
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
8210
8237
|
}
|
8211
8238
|
/**
|
8212
8239
|
* Updates user defined metadata for the specified directory.
|
@@ -8214,7 +8241,7 @@ class Directory {
|
|
8214
8241
|
*/
|
8215
8242
|
setMetadata(options) {
|
8216
8243
|
const operationArguments = {
|
8217
|
-
options:
|
8244
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8218
8245
|
};
|
8219
8246
|
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$1);
|
8220
8247
|
}
|
@@ -8225,7 +8252,7 @@ class Directory {
|
|
8225
8252
|
*/
|
8226
8253
|
listFilesAndDirectoriesSegment(options) {
|
8227
8254
|
const operationArguments = {
|
8228
|
-
options:
|
8255
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8229
8256
|
};
|
8230
8257
|
return this.client.sendOperationRequest(operationArguments, listFilesAndDirectoriesSegmentOperationSpec);
|
8231
8258
|
}
|
@@ -8235,9 +8262,9 @@ class Directory {
|
|
8235
8262
|
*/
|
8236
8263
|
listHandles(options) {
|
8237
8264
|
const operationArguments = {
|
8238
|
-
options:
|
8265
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8239
8266
|
};
|
8240
|
-
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec);
|
8267
|
+
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec$1);
|
8241
8268
|
}
|
8242
8269
|
/**
|
8243
8270
|
* Closes all handles open for given directory.
|
@@ -8248,13 +8275,13 @@ class Directory {
|
|
8248
8275
|
forceCloseHandles(handleId, options) {
|
8249
8276
|
const operationArguments = {
|
8250
8277
|
handleId,
|
8251
|
-
options:
|
8278
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8252
8279
|
};
|
8253
|
-
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec);
|
8280
|
+
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec$1);
|
8254
8281
|
}
|
8255
8282
|
}
|
8256
8283
|
// Operation Specifications
|
8257
|
-
const xmlSerializer$
|
8284
|
+
const xmlSerializer$1 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
8258
8285
|
const createOperationSpec$1 = {
|
8259
8286
|
path: "/{shareName}/{directory}",
|
8260
8287
|
httpMethod: "PUT",
|
@@ -8280,9 +8307,9 @@ const createOperationSpec$1 = {
|
|
8280
8307
|
fileLastWriteOn
|
8281
8308
|
],
|
8282
8309
|
isXML: true,
|
8283
|
-
serializer: xmlSerializer$
|
8310
|
+
serializer: xmlSerializer$1
|
8284
8311
|
};
|
8285
|
-
const getPropertiesOperationSpec$
|
8312
|
+
const getPropertiesOperationSpec$1 = {
|
8286
8313
|
path: "/{shareName}/{directory}",
|
8287
8314
|
httpMethod: "GET",
|
8288
8315
|
responses: {
|
@@ -8302,7 +8329,7 @@ const getPropertiesOperationSpec$2 = {
|
|
8302
8329
|
urlParameters: [url],
|
8303
8330
|
headerParameters: [version, accept1],
|
8304
8331
|
isXML: true,
|
8305
|
-
serializer: xmlSerializer$
|
8332
|
+
serializer: xmlSerializer$1
|
8306
8333
|
};
|
8307
8334
|
const deleteOperationSpec$1 = {
|
8308
8335
|
path: "/{shareName}/{directory}",
|
@@ -8320,9 +8347,9 @@ const deleteOperationSpec$1 = {
|
|
8320
8347
|
urlParameters: [url],
|
8321
8348
|
headerParameters: [version, accept1],
|
8322
8349
|
isXML: true,
|
8323
|
-
serializer: xmlSerializer$
|
8350
|
+
serializer: xmlSerializer$1
|
8324
8351
|
};
|
8325
|
-
const setPropertiesOperationSpec
|
8352
|
+
const setPropertiesOperationSpec = {
|
8326
8353
|
path: "/{shareName}/{directory}",
|
8327
8354
|
httpMethod: "PUT",
|
8328
8355
|
responses: {
|
@@ -8350,7 +8377,7 @@ const setPropertiesOperationSpec$2 = {
|
|
8350
8377
|
fileLastWriteOn
|
8351
8378
|
],
|
8352
8379
|
isXML: true,
|
8353
|
-
serializer: xmlSerializer$
|
8380
|
+
serializer: xmlSerializer$1
|
8354
8381
|
};
|
8355
8382
|
const setMetadataOperationSpec$1 = {
|
8356
8383
|
path: "/{shareName}/{directory}",
|
@@ -8376,7 +8403,7 @@ const setMetadataOperationSpec$1 = {
|
|
8376
8403
|
metadata
|
8377
8404
|
],
|
8378
8405
|
isXML: true,
|
8379
|
-
serializer: xmlSerializer$
|
8406
|
+
serializer: xmlSerializer$1
|
8380
8407
|
};
|
8381
8408
|
const listFilesAndDirectoriesSegmentOperationSpec = {
|
8382
8409
|
path: "/{shareName}/{directory}",
|
@@ -8408,9 +8435,9 @@ const listFilesAndDirectoriesSegmentOperationSpec = {
|
|
8408
8435
|
includeExtendedInfo
|
8409
8436
|
],
|
8410
8437
|
isXML: true,
|
8411
|
-
serializer: xmlSerializer$
|
8438
|
+
serializer: xmlSerializer$1
|
8412
8439
|
};
|
8413
|
-
const listHandlesOperationSpec = {
|
8440
|
+
const listHandlesOperationSpec$1 = {
|
8414
8441
|
path: "/{shareName}/{directory}",
|
8415
8442
|
httpMethod: "GET",
|
8416
8443
|
responses: {
|
@@ -8437,9 +8464,9 @@ const listHandlesOperationSpec = {
|
|
8437
8464
|
recursive
|
8438
8465
|
],
|
8439
8466
|
isXML: true,
|
8440
|
-
serializer: xmlSerializer$
|
8467
|
+
serializer: xmlSerializer$1
|
8441
8468
|
};
|
8442
|
-
const forceCloseHandlesOperationSpec = {
|
8469
|
+
const forceCloseHandlesOperationSpec$1 = {
|
8443
8470
|
path: "/{shareName}/{directory}",
|
8444
8471
|
httpMethod: "PUT",
|
8445
8472
|
responses: {
|
@@ -8465,7 +8492,7 @@ const forceCloseHandlesOperationSpec = {
|
|
8465
8492
|
handleId
|
8466
8493
|
],
|
8467
8494
|
isXML: true,
|
8468
|
-
serializer: xmlSerializer$
|
8495
|
+
serializer: xmlSerializer$1
|
8469
8496
|
};
|
8470
8497
|
|
8471
8498
|
/*
|
@@ -8499,9 +8526,9 @@ class File {
|
|
8499
8526
|
fileAttributes,
|
8500
8527
|
fileCreatedOn,
|
8501
8528
|
fileLastWriteOn,
|
8502
|
-
options:
|
8529
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8503
8530
|
};
|
8504
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec
|
8531
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
8505
8532
|
}
|
8506
8533
|
/**
|
8507
8534
|
* Reads or downloads a file from the system, including its metadata and properties.
|
@@ -8509,7 +8536,7 @@ class File {
|
|
8509
8536
|
*/
|
8510
8537
|
download(options) {
|
8511
8538
|
const operationArguments = {
|
8512
|
-
options:
|
8539
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8513
8540
|
};
|
8514
8541
|
return this.client.sendOperationRequest(operationArguments, downloadOperationSpec);
|
8515
8542
|
}
|
@@ -8520,9 +8547,9 @@ class File {
|
|
8520
8547
|
*/
|
8521
8548
|
getProperties(options) {
|
8522
8549
|
const operationArguments = {
|
8523
|
-
options:
|
8550
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8524
8551
|
};
|
8525
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec
|
8552
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
8526
8553
|
}
|
8527
8554
|
/**
|
8528
8555
|
* removes the file from the storage account.
|
@@ -8530,9 +8557,9 @@ class File {
|
|
8530
8557
|
*/
|
8531
8558
|
delete(options) {
|
8532
8559
|
const operationArguments = {
|
8533
|
-
options:
|
8560
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8534
8561
|
};
|
8535
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec
|
8562
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
8536
8563
|
}
|
8537
8564
|
/**
|
8538
8565
|
* Sets HTTP headers on the file.
|
@@ -8547,7 +8574,7 @@ class File {
|
|
8547
8574
|
fileAttributes,
|
8548
8575
|
fileCreatedOn,
|
8549
8576
|
fileLastWriteOn,
|
8550
|
-
options:
|
8577
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8551
8578
|
};
|
8552
8579
|
return this.client.sendOperationRequest(operationArguments, setHttpHeadersOperationSpec);
|
8553
8580
|
}
|
@@ -8557,9 +8584,9 @@ class File {
|
|
8557
8584
|
*/
|
8558
8585
|
setMetadata(options) {
|
8559
8586
|
const operationArguments = {
|
8560
|
-
options:
|
8587
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8561
8588
|
};
|
8562
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec
|
8589
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
8563
8590
|
}
|
8564
8591
|
/**
|
8565
8592
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8568,9 +8595,9 @@ class File {
|
|
8568
8595
|
*/
|
8569
8596
|
acquireLease(options) {
|
8570
8597
|
const operationArguments = {
|
8571
|
-
options:
|
8598
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8572
8599
|
};
|
8573
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec
|
8600
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
8574
8601
|
}
|
8575
8602
|
/**
|
8576
8603
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8581,9 +8608,9 @@ class File {
|
|
8581
8608
|
releaseLease(leaseId, options) {
|
8582
8609
|
const operationArguments = {
|
8583
8610
|
leaseId,
|
8584
|
-
options:
|
8611
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8585
8612
|
};
|
8586
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec
|
8613
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
8587
8614
|
}
|
8588
8615
|
/**
|
8589
8616
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8594,9 +8621,9 @@ class File {
|
|
8594
8621
|
changeLease(leaseId, options) {
|
8595
8622
|
const operationArguments = {
|
8596
8623
|
leaseId,
|
8597
|
-
options:
|
8624
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8598
8625
|
};
|
8599
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec
|
8626
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
8600
8627
|
}
|
8601
8628
|
/**
|
8602
8629
|
* [Update] The Lease File operation establishes and manages a lock on a file for write and delete
|
@@ -8605,9 +8632,9 @@ class File {
|
|
8605
8632
|
*/
|
8606
8633
|
breakLease(options) {
|
8607
8634
|
const operationArguments = {
|
8608
|
-
options:
|
8635
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8609
8636
|
};
|
8610
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec
|
8637
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
8611
8638
|
}
|
8612
8639
|
/**
|
8613
8640
|
* Upload a range of bytes to a file.
|
@@ -8630,7 +8657,7 @@ class File {
|
|
8630
8657
|
range,
|
8631
8658
|
fileRangeWrite,
|
8632
8659
|
contentLength,
|
8633
|
-
options:
|
8660
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8634
8661
|
};
|
8635
8662
|
return this.client.sendOperationRequest(operationArguments, uploadRangeOperationSpec);
|
8636
8663
|
}
|
@@ -8652,7 +8679,7 @@ class File {
|
|
8652
8679
|
range,
|
8653
8680
|
copySource,
|
8654
8681
|
contentLength,
|
8655
|
-
options:
|
8682
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8656
8683
|
};
|
8657
8684
|
return this.client.sendOperationRequest(operationArguments, uploadRangeFromURLOperationSpec);
|
8658
8685
|
}
|
@@ -8662,7 +8689,7 @@ class File {
|
|
8662
8689
|
*/
|
8663
8690
|
getRangeList(options) {
|
8664
8691
|
const operationArguments = {
|
8665
|
-
options:
|
8692
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8666
8693
|
};
|
8667
8694
|
return this.client.sendOperationRequest(operationArguments, getRangeListOperationSpec);
|
8668
8695
|
}
|
@@ -8679,7 +8706,7 @@ class File {
|
|
8679
8706
|
startCopy(copySource, options) {
|
8680
8707
|
const operationArguments = {
|
8681
8708
|
copySource,
|
8682
|
-
options:
|
8709
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8683
8710
|
};
|
8684
8711
|
return this.client.sendOperationRequest(operationArguments, startCopyOperationSpec);
|
8685
8712
|
}
|
@@ -8693,7 +8720,7 @@ class File {
|
|
8693
8720
|
abortCopy(copyId, options) {
|
8694
8721
|
const operationArguments = {
|
8695
8722
|
copyId,
|
8696
|
-
options:
|
8723
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8697
8724
|
};
|
8698
8725
|
return this.client.sendOperationRequest(operationArguments, abortCopyOperationSpec);
|
8699
8726
|
}
|
@@ -8703,9 +8730,9 @@ class File {
|
|
8703
8730
|
*/
|
8704
8731
|
listHandles(options) {
|
8705
8732
|
const operationArguments = {
|
8706
|
-
options:
|
8733
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8707
8734
|
};
|
8708
|
-
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec
|
8735
|
+
return this.client.sendOperationRequest(operationArguments, listHandlesOperationSpec);
|
8709
8736
|
}
|
8710
8737
|
/**
|
8711
8738
|
* Closes all handles open for given file
|
@@ -8716,14 +8743,14 @@ class File {
|
|
8716
8743
|
forceCloseHandles(handleId, options) {
|
8717
8744
|
const operationArguments = {
|
8718
8745
|
handleId,
|
8719
|
-
options:
|
8746
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
8720
8747
|
};
|
8721
|
-
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec
|
8748
|
+
return this.client.sendOperationRequest(operationArguments, forceCloseHandlesOperationSpec);
|
8722
8749
|
}
|
8723
8750
|
}
|
8724
8751
|
// Operation Specifications
|
8725
|
-
const xmlSerializer
|
8726
|
-
const createOperationSpec
|
8752
|
+
const xmlSerializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
8753
|
+
const createOperationSpec = {
|
8727
8754
|
path: "/{shareName}/{directory}/{fileName}",
|
8728
8755
|
httpMethod: "PUT",
|
8729
8756
|
responses: {
|
@@ -8757,7 +8784,7 @@ const createOperationSpec$2 = {
|
|
8757
8784
|
fileContentDisposition
|
8758
8785
|
],
|
8759
8786
|
isXML: true,
|
8760
|
-
serializer: xmlSerializer
|
8787
|
+
serializer: xmlSerializer
|
8761
8788
|
};
|
8762
8789
|
const downloadOperationSpec = {
|
8763
8790
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8792,9 +8819,9 @@ const downloadOperationSpec = {
|
|
8792
8819
|
rangeGetContentMD5
|
8793
8820
|
],
|
8794
8821
|
isXML: true,
|
8795
|
-
serializer: xmlSerializer
|
8822
|
+
serializer: xmlSerializer
|
8796
8823
|
};
|
8797
|
-
const getPropertiesOperationSpec
|
8824
|
+
const getPropertiesOperationSpec = {
|
8798
8825
|
path: "/{shareName}/{directory}/{fileName}",
|
8799
8826
|
httpMethod: "HEAD",
|
8800
8827
|
responses: {
|
@@ -8814,9 +8841,9 @@ const getPropertiesOperationSpec$3 = {
|
|
8814
8841
|
leaseId
|
8815
8842
|
],
|
8816
8843
|
isXML: true,
|
8817
|
-
serializer: xmlSerializer
|
8844
|
+
serializer: xmlSerializer
|
8818
8845
|
};
|
8819
|
-
const deleteOperationSpec
|
8846
|
+
const deleteOperationSpec = {
|
8820
8847
|
path: "/{shareName}/{directory}/{fileName}",
|
8821
8848
|
httpMethod: "DELETE",
|
8822
8849
|
responses: {
|
@@ -8836,7 +8863,7 @@ const deleteOperationSpec$2 = {
|
|
8836
8863
|
leaseId
|
8837
8864
|
],
|
8838
8865
|
isXML: true,
|
8839
|
-
serializer: xmlSerializer
|
8866
|
+
serializer: xmlSerializer
|
8840
8867
|
};
|
8841
8868
|
const setHttpHeadersOperationSpec = {
|
8842
8869
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -8870,9 +8897,9 @@ const setHttpHeadersOperationSpec = {
|
|
8870
8897
|
fileContentLength1
|
8871
8898
|
],
|
8872
8899
|
isXML: true,
|
8873
|
-
serializer: xmlSerializer
|
8900
|
+
serializer: xmlSerializer
|
8874
8901
|
};
|
8875
|
-
const setMetadataOperationSpec
|
8902
|
+
const setMetadataOperationSpec = {
|
8876
8903
|
path: "/{shareName}/{directory}/{fileName}",
|
8877
8904
|
httpMethod: "PUT",
|
8878
8905
|
responses: {
|
@@ -8893,9 +8920,9 @@ const setMetadataOperationSpec$2 = {
|
|
8893
8920
|
leaseId
|
8894
8921
|
],
|
8895
8922
|
isXML: true,
|
8896
|
-
serializer: xmlSerializer
|
8923
|
+
serializer: xmlSerializer
|
8897
8924
|
};
|
8898
|
-
const acquireLeaseOperationSpec
|
8925
|
+
const acquireLeaseOperationSpec = {
|
8899
8926
|
path: "/{shareName}/{directory}/{fileName}",
|
8900
8927
|
httpMethod: "PUT",
|
8901
8928
|
responses: {
|
@@ -8918,9 +8945,9 @@ const acquireLeaseOperationSpec$1 = {
|
|
8918
8945
|
requestId
|
8919
8946
|
],
|
8920
8947
|
isXML: true,
|
8921
|
-
serializer: xmlSerializer
|
8948
|
+
serializer: xmlSerializer
|
8922
8949
|
};
|
8923
|
-
const releaseLeaseOperationSpec
|
8950
|
+
const releaseLeaseOperationSpec = {
|
8924
8951
|
path: "/{shareName}/{directory}/{fileName}",
|
8925
8952
|
httpMethod: "PUT",
|
8926
8953
|
responses: {
|
@@ -8942,9 +8969,9 @@ const releaseLeaseOperationSpec$1 = {
|
|
8942
8969
|
leaseId1
|
8943
8970
|
],
|
8944
8971
|
isXML: true,
|
8945
|
-
serializer: xmlSerializer
|
8972
|
+
serializer: xmlSerializer
|
8946
8973
|
};
|
8947
|
-
const changeLeaseOperationSpec
|
8974
|
+
const changeLeaseOperationSpec = {
|
8948
8975
|
path: "/{shareName}/{directory}/{fileName}",
|
8949
8976
|
httpMethod: "PUT",
|
8950
8977
|
responses: {
|
@@ -8967,9 +8994,9 @@ const changeLeaseOperationSpec$1 = {
|
|
8967
8994
|
action2
|
8968
8995
|
],
|
8969
8996
|
isXML: true,
|
8970
|
-
serializer: xmlSerializer
|
8997
|
+
serializer: xmlSerializer
|
8971
8998
|
};
|
8972
|
-
const breakLeaseOperationSpec
|
8999
|
+
const breakLeaseOperationSpec = {
|
8973
9000
|
path: "/{shareName}/{directory}/{fileName}",
|
8974
9001
|
httpMethod: "PUT",
|
8975
9002
|
responses: {
|
@@ -8991,7 +9018,7 @@ const breakLeaseOperationSpec$1 = {
|
|
8991
9018
|
action4
|
8992
9019
|
],
|
8993
9020
|
isXML: true,
|
8994
|
-
serializer: xmlSerializer
|
9021
|
+
serializer: xmlSerializer
|
8995
9022
|
};
|
8996
9023
|
const uploadRangeOperationSpec = {
|
8997
9024
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9020,7 +9047,7 @@ const uploadRangeOperationSpec = {
|
|
9020
9047
|
],
|
9021
9048
|
contentType: "application/octet-stream",
|
9022
9049
|
isXML: true,
|
9023
|
-
serializer: xmlSerializer
|
9050
|
+
serializer: xmlSerializer
|
9024
9051
|
};
|
9025
9052
|
const uploadRangeFromURLOperationSpec = {
|
9026
9053
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9051,7 +9078,7 @@ const uploadRangeFromURLOperationSpec = {
|
|
9051
9078
|
copySourceAuthorization
|
9052
9079
|
],
|
9053
9080
|
isXML: true,
|
9054
|
-
serializer: xmlSerializer
|
9081
|
+
serializer: xmlSerializer
|
9055
9082
|
};
|
9056
9083
|
const getRangeListOperationSpec = {
|
9057
9084
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9080,7 +9107,7 @@ const getRangeListOperationSpec = {
|
|
9080
9107
|
range
|
9081
9108
|
],
|
9082
9109
|
isXML: true,
|
9083
|
-
serializer: xmlSerializer
|
9110
|
+
serializer: xmlSerializer
|
9084
9111
|
};
|
9085
9112
|
const startCopyOperationSpec = {
|
9086
9113
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9112,7 +9139,7 @@ const startCopyOperationSpec = {
|
|
9112
9139
|
setArchiveAttribute
|
9113
9140
|
],
|
9114
9141
|
isXML: true,
|
9115
|
-
serializer: xmlSerializer
|
9142
|
+
serializer: xmlSerializer
|
9116
9143
|
};
|
9117
9144
|
const abortCopyOperationSpec = {
|
9118
9145
|
path: "/{shareName}/{directory}/{fileName}",
|
@@ -9139,9 +9166,9 @@ const abortCopyOperationSpec = {
|
|
9139
9166
|
copyActionAbortConstant
|
9140
9167
|
],
|
9141
9168
|
isXML: true,
|
9142
|
-
serializer: xmlSerializer
|
9169
|
+
serializer: xmlSerializer
|
9143
9170
|
};
|
9144
|
-
const listHandlesOperationSpec
|
9171
|
+
const listHandlesOperationSpec = {
|
9145
9172
|
path: "/{shareName}/{directory}/{fileName}",
|
9146
9173
|
httpMethod: "GET",
|
9147
9174
|
responses: {
|
@@ -9164,9 +9191,9 @@ const listHandlesOperationSpec$1 = {
|
|
9164
9191
|
urlParameters: [url],
|
9165
9192
|
headerParameters: [version, accept1],
|
9166
9193
|
isXML: true,
|
9167
|
-
serializer: xmlSerializer
|
9194
|
+
serializer: xmlSerializer
|
9168
9195
|
};
|
9169
|
-
const forceCloseHandlesOperationSpec
|
9196
|
+
const forceCloseHandlesOperationSpec = {
|
9170
9197
|
path: "/{shareName}/{directory}/{fileName}",
|
9171
9198
|
httpMethod: "PUT",
|
9172
9199
|
responses: {
|
@@ -9191,7 +9218,7 @@ const forceCloseHandlesOperationSpec$1 = {
|
|
9191
9218
|
handleId
|
9192
9219
|
],
|
9193
9220
|
isXML: true,
|
9194
|
-
serializer: xmlSerializer
|
9221
|
+
serializer: xmlSerializer
|
9195
9222
|
};
|
9196
9223
|
|
9197
9224
|
// Copyright (c) Microsoft Corporation.
|
@@ -9259,6 +9286,10 @@ class StorageBrowserPolicyFactory {
|
|
9259
9286
|
}
|
9260
9287
|
|
9261
9288
|
// Copyright (c) Microsoft Corporation.
|
9289
|
+
/**
|
9290
|
+
* RetryPolicy types.
|
9291
|
+
*/
|
9292
|
+
exports.StorageRetryPolicyType = void 0;
|
9262
9293
|
(function (StorageRetryPolicyType) {
|
9263
9294
|
/**
|
9264
9295
|
* Exponential retry. Retry time delay grows exponentially.
|
@@ -9520,7 +9551,7 @@ class TelemetryPolicyFactory {
|
|
9520
9551
|
userAgentInfo.push(libInfo);
|
9521
9552
|
}
|
9522
9553
|
// e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
|
9523
|
-
const runtimeInfo = `(NODE-VERSION ${process.version}; ${
|
9554
|
+
const runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
|
9524
9555
|
if (userAgentInfo.indexOf(runtimeInfo) === -1) {
|
9525
9556
|
userAgentInfo.push(runtimeInfo);
|
9526
9557
|
}
|
@@ -9903,7 +9934,7 @@ function convertTracingToRequestOptionsBase(options) {
|
|
9903
9934
|
*/
|
9904
9935
|
const packageName = "azure-storage-file-share";
|
9905
9936
|
const packageVersion = "12.9.0-beta.3";
|
9906
|
-
class StorageClientContext extends
|
9937
|
+
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
9907
9938
|
/**
|
9908
9939
|
* Initializes a new instance of the StorageClientContext class.
|
9909
9940
|
* @param url The URL of the service account, share, directory or file that is the target of the
|
@@ -9919,7 +9950,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
9919
9950
|
options = {};
|
9920
9951
|
}
|
9921
9952
|
if (!options.userAgent) {
|
9922
|
-
const defaultUserAgent =
|
9953
|
+
const defaultUserAgent = coreHttp__namespace.getDefaultUserAgentValue();
|
9923
9954
|
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
9924
9955
|
}
|
9925
9956
|
super(undefined, options);
|
@@ -11123,7 +11154,7 @@ async function streamToBuffer(stream, buffer, offset, end, encoding) {
|
|
11123
11154
|
*/
|
11124
11155
|
async function readStreamToLocalFile(rs, file) {
|
11125
11156
|
return new Promise((resolve, reject) => {
|
11126
|
-
const ws =
|
11157
|
+
const ws = fs__namespace.createWriteStream(file);
|
11127
11158
|
rs.on("error", (err) => {
|
11128
11159
|
reject(err);
|
11129
11160
|
});
|
@@ -11139,8 +11170,8 @@ async function readStreamToLocalFile(rs, file) {
|
|
11139
11170
|
*
|
11140
11171
|
* Promisified version of fs.stat().
|
11141
11172
|
*/
|
11142
|
-
const fsStat =
|
11143
|
-
const fsCreateReadStream =
|
11173
|
+
const fsStat = util__namespace.promisify(fs__namespace.stat);
|
11174
|
+
const fsCreateReadStream = fs__namespace.createReadStream;
|
11144
11175
|
|
11145
11176
|
// Copyright (c) Microsoft Corporation.
|
11146
11177
|
/**
|
@@ -14736,39 +14767,27 @@ class ShareServiceClient extends StorageClient {
|
|
14736
14767
|
|
14737
14768
|
Object.defineProperty(exports, 'BaseRequestPolicy', {
|
14738
14769
|
enumerable: true,
|
14739
|
-
get: function () {
|
14740
|
-
return coreHttp.BaseRequestPolicy;
|
14741
|
-
}
|
14770
|
+
get: function () { return coreHttp.BaseRequestPolicy; }
|
14742
14771
|
});
|
14743
14772
|
Object.defineProperty(exports, 'HttpHeaders', {
|
14744
14773
|
enumerable: true,
|
14745
|
-
get: function () {
|
14746
|
-
return coreHttp.HttpHeaders;
|
14747
|
-
}
|
14774
|
+
get: function () { return coreHttp.HttpHeaders; }
|
14748
14775
|
});
|
14749
14776
|
Object.defineProperty(exports, 'RequestPolicyOptions', {
|
14750
14777
|
enumerable: true,
|
14751
|
-
get: function () {
|
14752
|
-
return coreHttp.RequestPolicyOptions;
|
14753
|
-
}
|
14778
|
+
get: function () { return coreHttp.RequestPolicyOptions; }
|
14754
14779
|
});
|
14755
14780
|
Object.defineProperty(exports, 'RestError', {
|
14756
14781
|
enumerable: true,
|
14757
|
-
get: function () {
|
14758
|
-
return coreHttp.RestError;
|
14759
|
-
}
|
14782
|
+
get: function () { return coreHttp.RestError; }
|
14760
14783
|
});
|
14761
14784
|
Object.defineProperty(exports, 'WebResource', {
|
14762
14785
|
enumerable: true,
|
14763
|
-
get: function () {
|
14764
|
-
return coreHttp.WebResource;
|
14765
|
-
}
|
14786
|
+
get: function () { return coreHttp.WebResource; }
|
14766
14787
|
});
|
14767
14788
|
Object.defineProperty(exports, 'deserializationPolicy', {
|
14768
14789
|
enumerable: true,
|
14769
|
-
get: function () {
|
14770
|
-
return coreHttp.deserializationPolicy;
|
14771
|
-
}
|
14790
|
+
get: function () { return coreHttp.deserializationPolicy; }
|
14772
14791
|
});
|
14773
14792
|
exports.AccountSASPermissions = AccountSASPermissions;
|
14774
14793
|
exports.AccountSASResourceTypes = AccountSASResourceTypes;
|