@azure/storage-blob 12.9.0-alpha.20220127.2 → 12.9.0-beta.3
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 +3 -4
- package/dist/index.js +562 -217
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
- package/dist-esm/storage-blob/src/ContainerClient.js +201 -0
- package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js +53 -0
- package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/operations/container.js +41 -0
- package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js +1 -1
- package/dist-esm/storage-blob/src/generated/src/storageClientContext.js.map +1 -1
- package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +5 -0
- package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
- package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js +13 -0
- package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js +1 -1
- package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
- package/package.json +10 -20
- package/types/3.1/storage-blob.d.ts +174 -0
- package/types/latest/storage-blob.d.ts +177 -0
package/dist/index.js
CHANGED
@@ -16,6 +16,29 @@ var events = require('events');
|
|
16
16
|
var fs = require('fs');
|
17
17
|
var util = require('util');
|
18
18
|
|
19
|
+
function _interopNamespace(e) {
|
20
|
+
if (e && e.__esModule) return e;
|
21
|
+
var n = Object.create(null);
|
22
|
+
if (e) {
|
23
|
+
Object.keys(e).forEach(function (k) {
|
24
|
+
if (k !== 'default') {
|
25
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
26
|
+
Object.defineProperty(n, k, d.get ? d : {
|
27
|
+
enumerable: true,
|
28
|
+
get: function () { return e[k]; }
|
29
|
+
});
|
30
|
+
}
|
31
|
+
});
|
32
|
+
}
|
33
|
+
n["default"] = e;
|
34
|
+
return Object.freeze(n);
|
35
|
+
}
|
36
|
+
|
37
|
+
var coreHttp__namespace = /*#__PURE__*/_interopNamespace(coreHttp);
|
38
|
+
var os__namespace = /*#__PURE__*/_interopNamespace(os);
|
39
|
+
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
40
|
+
var util__namespace = /*#__PURE__*/_interopNamespace(util);
|
41
|
+
|
19
42
|
/*
|
20
43
|
* Copyright (c) Microsoft Corporation.
|
21
44
|
* Licensed under the MIT License.
|
@@ -3141,6 +3164,59 @@ const ContainerSubmitBatchExceptionHeaders = {
|
|
3141
3164
|
}
|
3142
3165
|
}
|
3143
3166
|
};
|
3167
|
+
const ContainerFilterBlobsHeaders = {
|
3168
|
+
serializedName: "Container_filterBlobsHeaders",
|
3169
|
+
type: {
|
3170
|
+
name: "Composite",
|
3171
|
+
className: "ContainerFilterBlobsHeaders",
|
3172
|
+
modelProperties: {
|
3173
|
+
clientRequestId: {
|
3174
|
+
serializedName: "x-ms-client-request-id",
|
3175
|
+
xmlName: "x-ms-client-request-id",
|
3176
|
+
type: {
|
3177
|
+
name: "String"
|
3178
|
+
}
|
3179
|
+
},
|
3180
|
+
requestId: {
|
3181
|
+
serializedName: "x-ms-request-id",
|
3182
|
+
xmlName: "x-ms-request-id",
|
3183
|
+
type: {
|
3184
|
+
name: "String"
|
3185
|
+
}
|
3186
|
+
},
|
3187
|
+
version: {
|
3188
|
+
serializedName: "x-ms-version",
|
3189
|
+
xmlName: "x-ms-version",
|
3190
|
+
type: {
|
3191
|
+
name: "String"
|
3192
|
+
}
|
3193
|
+
},
|
3194
|
+
date: {
|
3195
|
+
serializedName: "date",
|
3196
|
+
xmlName: "date",
|
3197
|
+
type: {
|
3198
|
+
name: "DateTimeRfc1123"
|
3199
|
+
}
|
3200
|
+
}
|
3201
|
+
}
|
3202
|
+
}
|
3203
|
+
};
|
3204
|
+
const ContainerFilterBlobsExceptionHeaders = {
|
3205
|
+
serializedName: "Container_filterBlobsExceptionHeaders",
|
3206
|
+
type: {
|
3207
|
+
name: "Composite",
|
3208
|
+
className: "ContainerFilterBlobsExceptionHeaders",
|
3209
|
+
modelProperties: {
|
3210
|
+
errorCode: {
|
3211
|
+
serializedName: "x-ms-error-code",
|
3212
|
+
xmlName: "x-ms-error-code",
|
3213
|
+
type: {
|
3214
|
+
name: "String"
|
3215
|
+
}
|
3216
|
+
}
|
3217
|
+
}
|
3218
|
+
}
|
3219
|
+
};
|
3144
3220
|
const ContainerAcquireLeaseHeaders = {
|
3145
3221
|
serializedName: "Container_acquireLeaseHeaders",
|
3146
3222
|
type: {
|
@@ -8225,6 +8301,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
8225
8301
|
ContainerRenameExceptionHeaders: ContainerRenameExceptionHeaders,
|
8226
8302
|
ContainerSubmitBatchHeaders: ContainerSubmitBatchHeaders,
|
8227
8303
|
ContainerSubmitBatchExceptionHeaders: ContainerSubmitBatchExceptionHeaders,
|
8304
|
+
ContainerFilterBlobsHeaders: ContainerFilterBlobsHeaders,
|
8305
|
+
ContainerFilterBlobsExceptionHeaders: ContainerFilterBlobsExceptionHeaders,
|
8228
8306
|
ContainerAcquireLeaseHeaders: ContainerAcquireLeaseHeaders,
|
8229
8307
|
ContainerAcquireLeaseExceptionHeaders: ContainerAcquireLeaseExceptionHeaders,
|
8230
8308
|
ContainerReleaseLeaseHeaders: ContainerReleaseLeaseHeaders,
|
@@ -8412,7 +8490,7 @@ const timeoutInSeconds = {
|
|
8412
8490
|
const version = {
|
8413
8491
|
parameterPath: "version",
|
8414
8492
|
mapper: {
|
8415
|
-
defaultValue: "2021-
|
8493
|
+
defaultValue: "2021-04-10",
|
8416
8494
|
isConstant: true,
|
8417
8495
|
serializedName: "x-ms-version",
|
8418
8496
|
type: {
|
@@ -9950,7 +10028,7 @@ class Service {
|
|
9950
10028
|
setProperties(blobServiceProperties, options) {
|
9951
10029
|
const operationArguments = {
|
9952
10030
|
blobServiceProperties,
|
9953
|
-
options:
|
10031
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
9954
10032
|
};
|
9955
10033
|
return this.client.sendOperationRequest(operationArguments, setPropertiesOperationSpec);
|
9956
10034
|
}
|
@@ -9961,9 +10039,9 @@ class Service {
|
|
9961
10039
|
*/
|
9962
10040
|
getProperties(options) {
|
9963
10041
|
const operationArguments = {
|
9964
|
-
options:
|
10042
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
9965
10043
|
};
|
9966
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
10044
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$2);
|
9967
10045
|
}
|
9968
10046
|
/**
|
9969
10047
|
* Retrieves statistics related to replication for the Blob service. It is only available on the
|
@@ -9973,7 +10051,7 @@ class Service {
|
|
9973
10051
|
*/
|
9974
10052
|
getStatistics(options) {
|
9975
10053
|
const operationArguments = {
|
9976
|
-
options:
|
10054
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
9977
10055
|
};
|
9978
10056
|
return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
|
9979
10057
|
}
|
@@ -9983,7 +10061,7 @@ class Service {
|
|
9983
10061
|
*/
|
9984
10062
|
listContainersSegment(options) {
|
9985
10063
|
const operationArguments = {
|
9986
|
-
options:
|
10064
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
9987
10065
|
};
|
9988
10066
|
return this.client.sendOperationRequest(operationArguments, listContainersSegmentOperationSpec);
|
9989
10067
|
}
|
@@ -9996,7 +10074,7 @@ class Service {
|
|
9996
10074
|
getUserDelegationKey(keyInfo, options) {
|
9997
10075
|
const operationArguments = {
|
9998
10076
|
keyInfo,
|
9999
|
-
options:
|
10077
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10000
10078
|
};
|
10001
10079
|
return this.client.sendOperationRequest(operationArguments, getUserDelegationKeyOperationSpec);
|
10002
10080
|
}
|
@@ -10006,9 +10084,9 @@ class Service {
|
|
10006
10084
|
*/
|
10007
10085
|
getAccountInfo(options) {
|
10008
10086
|
const operationArguments = {
|
10009
|
-
options:
|
10087
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10010
10088
|
};
|
10011
|
-
return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec);
|
10089
|
+
return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec$2);
|
10012
10090
|
}
|
10013
10091
|
/**
|
10014
10092
|
* The Batch operation allows multiple API calls to be embedded into a single HTTP request.
|
@@ -10023,9 +10101,9 @@ class Service {
|
|
10023
10101
|
contentLength,
|
10024
10102
|
multipartContentType,
|
10025
10103
|
body,
|
10026
|
-
options:
|
10104
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10027
10105
|
};
|
10028
|
-
return this.client.sendOperationRequest(operationArguments, submitBatchOperationSpec);
|
10106
|
+
return this.client.sendOperationRequest(operationArguments, submitBatchOperationSpec$1);
|
10029
10107
|
}
|
10030
10108
|
/**
|
10031
10109
|
* The Filter Blobs operation enables callers to list blobs across all containers whose tags match a
|
@@ -10035,13 +10113,13 @@ class Service {
|
|
10035
10113
|
*/
|
10036
10114
|
filterBlobs(options) {
|
10037
10115
|
const operationArguments = {
|
10038
|
-
options:
|
10116
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10039
10117
|
};
|
10040
|
-
return this.client.sendOperationRequest(operationArguments, filterBlobsOperationSpec);
|
10118
|
+
return this.client.sendOperationRequest(operationArguments, filterBlobsOperationSpec$1);
|
10041
10119
|
}
|
10042
10120
|
}
|
10043
10121
|
// Operation Specifications
|
10044
|
-
const xmlSerializer = new
|
10122
|
+
const xmlSerializer$5 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
10045
10123
|
const setPropertiesOperationSpec = {
|
10046
10124
|
path: "/",
|
10047
10125
|
httpMethod: "PUT",
|
@@ -10070,9 +10148,9 @@ const setPropertiesOperationSpec = {
|
|
10070
10148
|
isXML: true,
|
10071
10149
|
contentType: "application/xml; charset=utf-8",
|
10072
10150
|
mediaType: "xml",
|
10073
|
-
serializer: xmlSerializer
|
10151
|
+
serializer: xmlSerializer$5
|
10074
10152
|
};
|
10075
|
-
const getPropertiesOperationSpec = {
|
10153
|
+
const getPropertiesOperationSpec$2 = {
|
10076
10154
|
path: "/",
|
10077
10155
|
httpMethod: "GET",
|
10078
10156
|
responses: {
|
@@ -10097,7 +10175,7 @@ const getPropertiesOperationSpec = {
|
|
10097
10175
|
accept1
|
10098
10176
|
],
|
10099
10177
|
isXML: true,
|
10100
|
-
serializer: xmlSerializer
|
10178
|
+
serializer: xmlSerializer$5
|
10101
10179
|
};
|
10102
10180
|
const getStatisticsOperationSpec = {
|
10103
10181
|
path: "/",
|
@@ -10124,7 +10202,7 @@ const getStatisticsOperationSpec = {
|
|
10124
10202
|
accept1
|
10125
10203
|
],
|
10126
10204
|
isXML: true,
|
10127
|
-
serializer: xmlSerializer
|
10205
|
+
serializer: xmlSerializer$5
|
10128
10206
|
};
|
10129
10207
|
const listContainersSegmentOperationSpec = {
|
10130
10208
|
path: "/",
|
@@ -10154,7 +10232,7 @@ const listContainersSegmentOperationSpec = {
|
|
10154
10232
|
accept1
|
10155
10233
|
],
|
10156
10234
|
isXML: true,
|
10157
|
-
serializer: xmlSerializer
|
10235
|
+
serializer: xmlSerializer$5
|
10158
10236
|
};
|
10159
10237
|
const getUserDelegationKeyOperationSpec = {
|
10160
10238
|
path: "/",
|
@@ -10185,9 +10263,9 @@ const getUserDelegationKeyOperationSpec = {
|
|
10185
10263
|
isXML: true,
|
10186
10264
|
contentType: "application/xml; charset=utf-8",
|
10187
10265
|
mediaType: "xml",
|
10188
|
-
serializer: xmlSerializer
|
10266
|
+
serializer: xmlSerializer$5
|
10189
10267
|
};
|
10190
|
-
const getAccountInfoOperationSpec = {
|
10268
|
+
const getAccountInfoOperationSpec$2 = {
|
10191
10269
|
path: "/",
|
10192
10270
|
httpMethod: "GET",
|
10193
10271
|
responses: {
|
@@ -10203,9 +10281,9 @@ const getAccountInfoOperationSpec = {
|
|
10203
10281
|
urlParameters: [url],
|
10204
10282
|
headerParameters: [version, accept1],
|
10205
10283
|
isXML: true,
|
10206
|
-
serializer: xmlSerializer
|
10284
|
+
serializer: xmlSerializer$5
|
10207
10285
|
};
|
10208
|
-
const submitBatchOperationSpec = {
|
10286
|
+
const submitBatchOperationSpec$1 = {
|
10209
10287
|
path: "/",
|
10210
10288
|
httpMethod: "POST",
|
10211
10289
|
responses: {
|
@@ -10235,9 +10313,9 @@ const submitBatchOperationSpec = {
|
|
10235
10313
|
isXML: true,
|
10236
10314
|
contentType: "application/xml; charset=utf-8",
|
10237
10315
|
mediaType: "xml",
|
10238
|
-
serializer: xmlSerializer
|
10316
|
+
serializer: xmlSerializer$5
|
10239
10317
|
};
|
10240
|
-
const filterBlobsOperationSpec = {
|
10318
|
+
const filterBlobsOperationSpec$1 = {
|
10241
10319
|
path: "/",
|
10242
10320
|
httpMethod: "GET",
|
10243
10321
|
responses: {
|
@@ -10264,7 +10342,7 @@ const filterBlobsOperationSpec = {
|
|
10264
10342
|
accept1
|
10265
10343
|
],
|
10266
10344
|
isXML: true,
|
10267
|
-
serializer: xmlSerializer
|
10345
|
+
serializer: xmlSerializer$5
|
10268
10346
|
};
|
10269
10347
|
|
10270
10348
|
/*
|
@@ -10290,9 +10368,9 @@ class Container {
|
|
10290
10368
|
*/
|
10291
10369
|
create(options) {
|
10292
10370
|
const operationArguments = {
|
10293
|
-
options:
|
10371
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10294
10372
|
};
|
10295
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
10373
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);
|
10296
10374
|
}
|
10297
10375
|
/**
|
10298
10376
|
* returns all user-defined metadata and system properties for the specified container. The data
|
@@ -10301,7 +10379,7 @@ class Container {
|
|
10301
10379
|
*/
|
10302
10380
|
getProperties(options) {
|
10303
10381
|
const operationArguments = {
|
10304
|
-
options:
|
10382
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10305
10383
|
};
|
10306
10384
|
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$1);
|
10307
10385
|
}
|
@@ -10312,9 +10390,9 @@ class Container {
|
|
10312
10390
|
*/
|
10313
10391
|
delete(options) {
|
10314
10392
|
const operationArguments = {
|
10315
|
-
options:
|
10393
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10316
10394
|
};
|
10317
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
10395
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
|
10318
10396
|
}
|
10319
10397
|
/**
|
10320
10398
|
* operation sets one or more user-defined name-value pairs for the specified container.
|
@@ -10322,9 +10400,9 @@ class Container {
|
|
10322
10400
|
*/
|
10323
10401
|
setMetadata(options) {
|
10324
10402
|
const operationArguments = {
|
10325
|
-
options:
|
10403
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10326
10404
|
};
|
10327
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
10405
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$1);
|
10328
10406
|
}
|
10329
10407
|
/**
|
10330
10408
|
* gets the permissions for the specified container. The permissions indicate whether container data
|
@@ -10333,7 +10411,7 @@ class Container {
|
|
10333
10411
|
*/
|
10334
10412
|
getAccessPolicy(options) {
|
10335
10413
|
const operationArguments = {
|
10336
|
-
options:
|
10414
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10337
10415
|
};
|
10338
10416
|
return this.client.sendOperationRequest(operationArguments, getAccessPolicyOperationSpec);
|
10339
10417
|
}
|
@@ -10344,7 +10422,7 @@ class Container {
|
|
10344
10422
|
*/
|
10345
10423
|
setAccessPolicy(options) {
|
10346
10424
|
const operationArguments = {
|
10347
|
-
options:
|
10425
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10348
10426
|
};
|
10349
10427
|
return this.client.sendOperationRequest(operationArguments, setAccessPolicyOperationSpec);
|
10350
10428
|
}
|
@@ -10354,7 +10432,7 @@ class Container {
|
|
10354
10432
|
*/
|
10355
10433
|
restore(options) {
|
10356
10434
|
const operationArguments = {
|
10357
|
-
options:
|
10435
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10358
10436
|
};
|
10359
10437
|
return this.client.sendOperationRequest(operationArguments, restoreOperationSpec);
|
10360
10438
|
}
|
@@ -10366,7 +10444,7 @@ class Container {
|
|
10366
10444
|
rename(sourceContainerName, options) {
|
10367
10445
|
const operationArguments = {
|
10368
10446
|
sourceContainerName,
|
10369
|
-
options:
|
10447
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10370
10448
|
};
|
10371
10449
|
return this.client.sendOperationRequest(operationArguments, renameOperationSpec);
|
10372
10450
|
}
|
@@ -10383,9 +10461,20 @@ class Container {
|
|
10383
10461
|
contentLength,
|
10384
10462
|
multipartContentType,
|
10385
10463
|
body,
|
10386
|
-
options:
|
10464
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10387
10465
|
};
|
10388
|
-
return this.client.sendOperationRequest(operationArguments, submitBatchOperationSpec
|
10466
|
+
return this.client.sendOperationRequest(operationArguments, submitBatchOperationSpec);
|
10467
|
+
}
|
10468
|
+
/**
|
10469
|
+
* The Filter Blobs operation enables callers to list blobs in a container whose tags match a given
|
10470
|
+
* search expression. Filter blobs searches within the given container.
|
10471
|
+
* @param options The options parameters.
|
10472
|
+
*/
|
10473
|
+
filterBlobs(options) {
|
10474
|
+
const operationArguments = {
|
10475
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10476
|
+
};
|
10477
|
+
return this.client.sendOperationRequest(operationArguments, filterBlobsOperationSpec);
|
10389
10478
|
}
|
10390
10479
|
/**
|
10391
10480
|
* [Update] establishes and manages a lock on a container for delete operations. The lock duration can
|
@@ -10394,9 +10483,9 @@ class Container {
|
|
10394
10483
|
*/
|
10395
10484
|
acquireLease(options) {
|
10396
10485
|
const operationArguments = {
|
10397
|
-
options:
|
10486
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10398
10487
|
};
|
10399
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
10488
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec$1);
|
10400
10489
|
}
|
10401
10490
|
/**
|
10402
10491
|
* [Update] establishes and manages a lock on a container for delete operations. The lock duration can
|
@@ -10407,9 +10496,9 @@ class Container {
|
|
10407
10496
|
releaseLease(leaseId, options) {
|
10408
10497
|
const operationArguments = {
|
10409
10498
|
leaseId,
|
10410
|
-
options:
|
10499
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10411
10500
|
};
|
10412
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
10501
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec$1);
|
10413
10502
|
}
|
10414
10503
|
/**
|
10415
10504
|
* [Update] establishes and manages a lock on a container for delete operations. The lock duration can
|
@@ -10420,9 +10509,9 @@ class Container {
|
|
10420
10509
|
renewLease(leaseId, options) {
|
10421
10510
|
const operationArguments = {
|
10422
10511
|
leaseId,
|
10423
|
-
options:
|
10512
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10424
10513
|
};
|
10425
|
-
return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec);
|
10514
|
+
return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec$1);
|
10426
10515
|
}
|
10427
10516
|
/**
|
10428
10517
|
* [Update] establishes and manages a lock on a container for delete operations. The lock duration can
|
@@ -10431,9 +10520,9 @@ class Container {
|
|
10431
10520
|
*/
|
10432
10521
|
breakLease(options) {
|
10433
10522
|
const operationArguments = {
|
10434
|
-
options:
|
10523
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10435
10524
|
};
|
10436
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
10525
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec$1);
|
10437
10526
|
}
|
10438
10527
|
/**
|
10439
10528
|
* [Update] establishes and manages a lock on a container for delete operations. The lock duration can
|
@@ -10448,9 +10537,9 @@ class Container {
|
|
10448
10537
|
const operationArguments = {
|
10449
10538
|
leaseId,
|
10450
10539
|
proposedLeaseId,
|
10451
|
-
options:
|
10540
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10452
10541
|
};
|
10453
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
10542
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec$1);
|
10454
10543
|
}
|
10455
10544
|
/**
|
10456
10545
|
* [Update] The List Blobs operation returns a list of the blobs under the specified container
|
@@ -10458,7 +10547,7 @@ class Container {
|
|
10458
10547
|
*/
|
10459
10548
|
listBlobFlatSegment(options) {
|
10460
10549
|
const operationArguments = {
|
10461
|
-
options:
|
10550
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10462
10551
|
};
|
10463
10552
|
return this.client.sendOperationRequest(operationArguments, listBlobFlatSegmentOperationSpec);
|
10464
10553
|
}
|
@@ -10473,7 +10562,7 @@ class Container {
|
|
10473
10562
|
listBlobHierarchySegment(delimiter, options) {
|
10474
10563
|
const operationArguments = {
|
10475
10564
|
delimiter,
|
10476
|
-
options:
|
10565
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10477
10566
|
};
|
10478
10567
|
return this.client.sendOperationRequest(operationArguments, listBlobHierarchySegmentOperationSpec);
|
10479
10568
|
}
|
@@ -10483,14 +10572,14 @@ class Container {
|
|
10483
10572
|
*/
|
10484
10573
|
getAccountInfo(options) {
|
10485
10574
|
const operationArguments = {
|
10486
|
-
options:
|
10575
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
10487
10576
|
};
|
10488
10577
|
return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec$1);
|
10489
10578
|
}
|
10490
10579
|
}
|
10491
10580
|
// Operation Specifications
|
10492
|
-
const xmlSerializer$
|
10493
|
-
const createOperationSpec = {
|
10581
|
+
const xmlSerializer$4 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
10582
|
+
const createOperationSpec$2 = {
|
10494
10583
|
path: "/{containerName}",
|
10495
10584
|
httpMethod: "PUT",
|
10496
10585
|
responses: {
|
@@ -10514,7 +10603,7 @@ const createOperationSpec = {
|
|
10514
10603
|
preventEncryptionScopeOverride
|
10515
10604
|
],
|
10516
10605
|
isXML: true,
|
10517
|
-
serializer: xmlSerializer$
|
10606
|
+
serializer: xmlSerializer$4
|
10518
10607
|
};
|
10519
10608
|
const getPropertiesOperationSpec$1 = {
|
10520
10609
|
path: "/{containerName}",
|
@@ -10537,9 +10626,9 @@ const getPropertiesOperationSpec$1 = {
|
|
10537
10626
|
leaseId
|
10538
10627
|
],
|
10539
10628
|
isXML: true,
|
10540
|
-
serializer: xmlSerializer$
|
10629
|
+
serializer: xmlSerializer$4
|
10541
10630
|
};
|
10542
|
-
const deleteOperationSpec = {
|
10631
|
+
const deleteOperationSpec$1 = {
|
10543
10632
|
path: "/{containerName}",
|
10544
10633
|
httpMethod: "DELETE",
|
10545
10634
|
responses: {
|
@@ -10562,9 +10651,9 @@ const deleteOperationSpec = {
|
|
10562
10651
|
ifUnmodifiedSince
|
10563
10652
|
],
|
10564
10653
|
isXML: true,
|
10565
|
-
serializer: xmlSerializer$
|
10654
|
+
serializer: xmlSerializer$4
|
10566
10655
|
};
|
10567
|
-
const setMetadataOperationSpec = {
|
10656
|
+
const setMetadataOperationSpec$1 = {
|
10568
10657
|
path: "/{containerName}",
|
10569
10658
|
httpMethod: "PUT",
|
10570
10659
|
responses: {
|
@@ -10591,7 +10680,7 @@ const setMetadataOperationSpec = {
|
|
10591
10680
|
ifModifiedSince
|
10592
10681
|
],
|
10593
10682
|
isXML: true,
|
10594
|
-
serializer: xmlSerializer$
|
10683
|
+
serializer: xmlSerializer$4
|
10595
10684
|
};
|
10596
10685
|
const getAccessPolicyOperationSpec = {
|
10597
10686
|
path: "/{containerName}",
|
@@ -10630,7 +10719,7 @@ const getAccessPolicyOperationSpec = {
|
|
10630
10719
|
leaseId
|
10631
10720
|
],
|
10632
10721
|
isXML: true,
|
10633
|
-
serializer: xmlSerializer$
|
10722
|
+
serializer: xmlSerializer$4
|
10634
10723
|
};
|
10635
10724
|
const setAccessPolicyOperationSpec = {
|
10636
10725
|
path: "/{containerName}",
|
@@ -10664,7 +10753,7 @@ const setAccessPolicyOperationSpec = {
|
|
10664
10753
|
isXML: true,
|
10665
10754
|
contentType: "application/xml; charset=utf-8",
|
10666
10755
|
mediaType: "xml",
|
10667
|
-
serializer: xmlSerializer$
|
10756
|
+
serializer: xmlSerializer$4
|
10668
10757
|
};
|
10669
10758
|
const restoreOperationSpec = {
|
10670
10759
|
path: "/{containerName}",
|
@@ -10692,7 +10781,7 @@ const restoreOperationSpec = {
|
|
10692
10781
|
deletedContainerVersion
|
10693
10782
|
],
|
10694
10783
|
isXML: true,
|
10695
|
-
serializer: xmlSerializer$
|
10784
|
+
serializer: xmlSerializer$4
|
10696
10785
|
};
|
10697
10786
|
const renameOperationSpec = {
|
10698
10787
|
path: "/{containerName}",
|
@@ -10720,9 +10809,9 @@ const renameOperationSpec = {
|
|
10720
10809
|
sourceLeaseId
|
10721
10810
|
],
|
10722
10811
|
isXML: true,
|
10723
|
-
serializer: xmlSerializer$
|
10812
|
+
serializer: xmlSerializer$4
|
10724
10813
|
};
|
10725
|
-
const submitBatchOperationSpec
|
10814
|
+
const submitBatchOperationSpec = {
|
10726
10815
|
path: "/{containerName}",
|
10727
10816
|
httpMethod: "POST",
|
10728
10817
|
responses: {
|
@@ -10756,9 +10845,39 @@ const submitBatchOperationSpec$1 = {
|
|
10756
10845
|
isXML: true,
|
10757
10846
|
contentType: "application/xml; charset=utf-8",
|
10758
10847
|
mediaType: "xml",
|
10759
|
-
serializer: xmlSerializer$
|
10848
|
+
serializer: xmlSerializer$4
|
10760
10849
|
};
|
10761
|
-
const
|
10850
|
+
const filterBlobsOperationSpec = {
|
10851
|
+
path: "/{containerName}",
|
10852
|
+
httpMethod: "GET",
|
10853
|
+
responses: {
|
10854
|
+
200: {
|
10855
|
+
bodyMapper: FilterBlobSegment,
|
10856
|
+
headersMapper: ContainerFilterBlobsHeaders
|
10857
|
+
},
|
10858
|
+
default: {
|
10859
|
+
bodyMapper: StorageError,
|
10860
|
+
headersMapper: ContainerFilterBlobsExceptionHeaders
|
10861
|
+
}
|
10862
|
+
},
|
10863
|
+
queryParameters: [
|
10864
|
+
timeoutInSeconds,
|
10865
|
+
marker,
|
10866
|
+
maxPageSize,
|
10867
|
+
comp5,
|
10868
|
+
where,
|
10869
|
+
restype2
|
10870
|
+
],
|
10871
|
+
urlParameters: [url],
|
10872
|
+
headerParameters: [
|
10873
|
+
version,
|
10874
|
+
requestId,
|
10875
|
+
accept1
|
10876
|
+
],
|
10877
|
+
isXML: true,
|
10878
|
+
serializer: xmlSerializer$4
|
10879
|
+
};
|
10880
|
+
const acquireLeaseOperationSpec$1 = {
|
10762
10881
|
path: "/{containerName}",
|
10763
10882
|
httpMethod: "PUT",
|
10764
10883
|
responses: {
|
@@ -10787,9 +10906,9 @@ const acquireLeaseOperationSpec = {
|
|
10787
10906
|
proposedLeaseId
|
10788
10907
|
],
|
10789
10908
|
isXML: true,
|
10790
|
-
serializer: xmlSerializer$
|
10909
|
+
serializer: xmlSerializer$4
|
10791
10910
|
};
|
10792
|
-
const releaseLeaseOperationSpec = {
|
10911
|
+
const releaseLeaseOperationSpec$1 = {
|
10793
10912
|
path: "/{containerName}",
|
10794
10913
|
httpMethod: "PUT",
|
10795
10914
|
responses: {
|
@@ -10817,9 +10936,9 @@ const releaseLeaseOperationSpec = {
|
|
10817
10936
|
leaseId1
|
10818
10937
|
],
|
10819
10938
|
isXML: true,
|
10820
|
-
serializer: xmlSerializer$
|
10939
|
+
serializer: xmlSerializer$4
|
10821
10940
|
};
|
10822
|
-
const renewLeaseOperationSpec = {
|
10941
|
+
const renewLeaseOperationSpec$1 = {
|
10823
10942
|
path: "/{containerName}",
|
10824
10943
|
httpMethod: "PUT",
|
10825
10944
|
responses: {
|
@@ -10847,9 +10966,9 @@ const renewLeaseOperationSpec = {
|
|
10847
10966
|
action2
|
10848
10967
|
],
|
10849
10968
|
isXML: true,
|
10850
|
-
serializer: xmlSerializer$
|
10969
|
+
serializer: xmlSerializer$4
|
10851
10970
|
};
|
10852
|
-
const breakLeaseOperationSpec = {
|
10971
|
+
const breakLeaseOperationSpec$1 = {
|
10853
10972
|
path: "/{containerName}",
|
10854
10973
|
httpMethod: "PUT",
|
10855
10974
|
responses: {
|
@@ -10877,9 +10996,9 @@ const breakLeaseOperationSpec = {
|
|
10877
10996
|
breakPeriod
|
10878
10997
|
],
|
10879
10998
|
isXML: true,
|
10880
|
-
serializer: xmlSerializer$
|
10999
|
+
serializer: xmlSerializer$4
|
10881
11000
|
};
|
10882
|
-
const changeLeaseOperationSpec = {
|
11001
|
+
const changeLeaseOperationSpec$1 = {
|
10883
11002
|
path: "/{containerName}",
|
10884
11003
|
httpMethod: "PUT",
|
10885
11004
|
responses: {
|
@@ -10908,7 +11027,7 @@ const changeLeaseOperationSpec = {
|
|
10908
11027
|
proposedLeaseId1
|
10909
11028
|
],
|
10910
11029
|
isXML: true,
|
10911
|
-
serializer: xmlSerializer$
|
11030
|
+
serializer: xmlSerializer$4
|
10912
11031
|
};
|
10913
11032
|
const listBlobFlatSegmentOperationSpec = {
|
10914
11033
|
path: "/{containerName}",
|
@@ -10939,7 +11058,7 @@ const listBlobFlatSegmentOperationSpec = {
|
|
10939
11058
|
accept1
|
10940
11059
|
],
|
10941
11060
|
isXML: true,
|
10942
|
-
serializer: xmlSerializer$
|
11061
|
+
serializer: xmlSerializer$4
|
10943
11062
|
};
|
10944
11063
|
const listBlobHierarchySegmentOperationSpec = {
|
10945
11064
|
path: "/{containerName}",
|
@@ -10971,7 +11090,7 @@ const listBlobHierarchySegmentOperationSpec = {
|
|
10971
11090
|
accept1
|
10972
11091
|
],
|
10973
11092
|
isXML: true,
|
10974
|
-
serializer: xmlSerializer$
|
11093
|
+
serializer: xmlSerializer$4
|
10975
11094
|
};
|
10976
11095
|
const getAccountInfoOperationSpec$1 = {
|
10977
11096
|
path: "/{containerName}",
|
@@ -10989,7 +11108,7 @@ const getAccountInfoOperationSpec$1 = {
|
|
10989
11108
|
urlParameters: [url],
|
10990
11109
|
headerParameters: [version, accept1],
|
10991
11110
|
isXML: true,
|
10992
|
-
serializer: xmlSerializer$
|
11111
|
+
serializer: xmlSerializer$4
|
10993
11112
|
};
|
10994
11113
|
|
10995
11114
|
/*
|
@@ -11015,7 +11134,7 @@ class Blob$1 {
|
|
11015
11134
|
*/
|
11016
11135
|
download(options) {
|
11017
11136
|
const operationArguments = {
|
11018
|
-
options:
|
11137
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11019
11138
|
};
|
11020
11139
|
return this.client.sendOperationRequest(operationArguments, downloadOperationSpec);
|
11021
11140
|
}
|
@@ -11026,9 +11145,9 @@ class Blob$1 {
|
|
11026
11145
|
*/
|
11027
11146
|
getProperties(options) {
|
11028
11147
|
const operationArguments = {
|
11029
|
-
options:
|
11148
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11030
11149
|
};
|
11031
|
-
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec
|
11150
|
+
return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec);
|
11032
11151
|
}
|
11033
11152
|
/**
|
11034
11153
|
* If the storage account's soft delete feature is disabled then, when a blob is deleted, it is
|
@@ -11047,9 +11166,9 @@ class Blob$1 {
|
|
11047
11166
|
*/
|
11048
11167
|
delete(options) {
|
11049
11168
|
const operationArguments = {
|
11050
|
-
options:
|
11169
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11051
11170
|
};
|
11052
|
-
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec
|
11171
|
+
return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
|
11053
11172
|
}
|
11054
11173
|
/**
|
11055
11174
|
* Undelete a blob that was previously soft deleted
|
@@ -11057,7 +11176,7 @@ class Blob$1 {
|
|
11057
11176
|
*/
|
11058
11177
|
undelete(options) {
|
11059
11178
|
const operationArguments = {
|
11060
|
-
options:
|
11179
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11061
11180
|
};
|
11062
11181
|
return this.client.sendOperationRequest(operationArguments, undeleteOperationSpec);
|
11063
11182
|
}
|
@@ -11069,7 +11188,7 @@ class Blob$1 {
|
|
11069
11188
|
setExpiry(expiryOptions, options) {
|
11070
11189
|
const operationArguments = {
|
11071
11190
|
expiryOptions,
|
11072
|
-
options:
|
11191
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11073
11192
|
};
|
11074
11193
|
return this.client.sendOperationRequest(operationArguments, setExpiryOperationSpec);
|
11075
11194
|
}
|
@@ -11079,7 +11198,7 @@ class Blob$1 {
|
|
11079
11198
|
*/
|
11080
11199
|
setHttpHeaders(options) {
|
11081
11200
|
const operationArguments = {
|
11082
|
-
options:
|
11201
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11083
11202
|
};
|
11084
11203
|
return this.client.sendOperationRequest(operationArguments, setHttpHeadersOperationSpec);
|
11085
11204
|
}
|
@@ -11089,7 +11208,7 @@ class Blob$1 {
|
|
11089
11208
|
*/
|
11090
11209
|
setImmutabilityPolicy(options) {
|
11091
11210
|
const operationArguments = {
|
11092
|
-
options:
|
11211
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11093
11212
|
};
|
11094
11213
|
return this.client.sendOperationRequest(operationArguments, setImmutabilityPolicyOperationSpec);
|
11095
11214
|
}
|
@@ -11099,7 +11218,7 @@ class Blob$1 {
|
|
11099
11218
|
*/
|
11100
11219
|
deleteImmutabilityPolicy(options) {
|
11101
11220
|
const operationArguments = {
|
11102
|
-
options:
|
11221
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11103
11222
|
};
|
11104
11223
|
return this.client.sendOperationRequest(operationArguments, deleteImmutabilityPolicyOperationSpec);
|
11105
11224
|
}
|
@@ -11111,7 +11230,7 @@ class Blob$1 {
|
|
11111
11230
|
setLegalHold(legalHold, options) {
|
11112
11231
|
const operationArguments = {
|
11113
11232
|
legalHold,
|
11114
|
-
options:
|
11233
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11115
11234
|
};
|
11116
11235
|
return this.client.sendOperationRequest(operationArguments, setLegalHoldOperationSpec);
|
11117
11236
|
}
|
@@ -11122,9 +11241,9 @@ class Blob$1 {
|
|
11122
11241
|
*/
|
11123
11242
|
setMetadata(options) {
|
11124
11243
|
const operationArguments = {
|
11125
|
-
options:
|
11244
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11126
11245
|
};
|
11127
|
-
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec
|
11246
|
+
return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec);
|
11128
11247
|
}
|
11129
11248
|
/**
|
11130
11249
|
* [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
@@ -11133,9 +11252,9 @@ class Blob$1 {
|
|
11133
11252
|
*/
|
11134
11253
|
acquireLease(options) {
|
11135
11254
|
const operationArguments = {
|
11136
|
-
options:
|
11255
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11137
11256
|
};
|
11138
|
-
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec
|
11257
|
+
return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec);
|
11139
11258
|
}
|
11140
11259
|
/**
|
11141
11260
|
* [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
@@ -11146,9 +11265,9 @@ class Blob$1 {
|
|
11146
11265
|
releaseLease(leaseId, options) {
|
11147
11266
|
const operationArguments = {
|
11148
11267
|
leaseId,
|
11149
|
-
options:
|
11268
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11150
11269
|
};
|
11151
|
-
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec
|
11270
|
+
return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec);
|
11152
11271
|
}
|
11153
11272
|
/**
|
11154
11273
|
* [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
@@ -11159,9 +11278,9 @@ class Blob$1 {
|
|
11159
11278
|
renewLease(leaseId, options) {
|
11160
11279
|
const operationArguments = {
|
11161
11280
|
leaseId,
|
11162
|
-
options:
|
11281
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11163
11282
|
};
|
11164
|
-
return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec
|
11283
|
+
return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec);
|
11165
11284
|
}
|
11166
11285
|
/**
|
11167
11286
|
* [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
@@ -11176,9 +11295,9 @@ class Blob$1 {
|
|
11176
11295
|
const operationArguments = {
|
11177
11296
|
leaseId,
|
11178
11297
|
proposedLeaseId,
|
11179
|
-
options:
|
11298
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11180
11299
|
};
|
11181
|
-
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec
|
11300
|
+
return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec);
|
11182
11301
|
}
|
11183
11302
|
/**
|
11184
11303
|
* [Update] The Lease Blob operation establishes and manages a lock on a blob for write and delete
|
@@ -11187,9 +11306,9 @@ class Blob$1 {
|
|
11187
11306
|
*/
|
11188
11307
|
breakLease(options) {
|
11189
11308
|
const operationArguments = {
|
11190
|
-
options:
|
11309
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11191
11310
|
};
|
11192
|
-
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec
|
11311
|
+
return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec);
|
11193
11312
|
}
|
11194
11313
|
/**
|
11195
11314
|
* The Create Snapshot operation creates a read-only snapshot of a blob
|
@@ -11197,7 +11316,7 @@ class Blob$1 {
|
|
11197
11316
|
*/
|
11198
11317
|
createSnapshot(options) {
|
11199
11318
|
const operationArguments = {
|
11200
|
-
options:
|
11319
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11201
11320
|
};
|
11202
11321
|
return this.client.sendOperationRequest(operationArguments, createSnapshotOperationSpec);
|
11203
11322
|
}
|
@@ -11212,7 +11331,7 @@ class Blob$1 {
|
|
11212
11331
|
startCopyFromURL(copySource, options) {
|
11213
11332
|
const operationArguments = {
|
11214
11333
|
copySource,
|
11215
|
-
options:
|
11334
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11216
11335
|
};
|
11217
11336
|
return this.client.sendOperationRequest(operationArguments, startCopyFromURLOperationSpec);
|
11218
11337
|
}
|
@@ -11228,7 +11347,7 @@ class Blob$1 {
|
|
11228
11347
|
copyFromURL(copySource, options) {
|
11229
11348
|
const operationArguments = {
|
11230
11349
|
copySource,
|
11231
|
-
options:
|
11350
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11232
11351
|
};
|
11233
11352
|
return this.client.sendOperationRequest(operationArguments, copyFromURLOperationSpec);
|
11234
11353
|
}
|
@@ -11242,7 +11361,7 @@ class Blob$1 {
|
|
11242
11361
|
abortCopyFromURL(copyId, options) {
|
11243
11362
|
const operationArguments = {
|
11244
11363
|
copyId,
|
11245
|
-
options:
|
11364
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11246
11365
|
};
|
11247
11366
|
return this.client.sendOperationRequest(operationArguments, abortCopyFromURLOperationSpec);
|
11248
11367
|
}
|
@@ -11258,7 +11377,7 @@ class Blob$1 {
|
|
11258
11377
|
setTier(tier, options) {
|
11259
11378
|
const operationArguments = {
|
11260
11379
|
tier,
|
11261
|
-
options:
|
11380
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11262
11381
|
};
|
11263
11382
|
return this.client.sendOperationRequest(operationArguments, setTierOperationSpec);
|
11264
11383
|
}
|
@@ -11268,9 +11387,9 @@ class Blob$1 {
|
|
11268
11387
|
*/
|
11269
11388
|
getAccountInfo(options) {
|
11270
11389
|
const operationArguments = {
|
11271
|
-
options:
|
11390
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11272
11391
|
};
|
11273
|
-
return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec
|
11392
|
+
return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec);
|
11274
11393
|
}
|
11275
11394
|
/**
|
11276
11395
|
* The Query operation enables users to select/project on blob data by providing simple query
|
@@ -11279,7 +11398,7 @@ class Blob$1 {
|
|
11279
11398
|
*/
|
11280
11399
|
query(options) {
|
11281
11400
|
const operationArguments = {
|
11282
|
-
options:
|
11401
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11283
11402
|
};
|
11284
11403
|
return this.client.sendOperationRequest(operationArguments, queryOperationSpec);
|
11285
11404
|
}
|
@@ -11289,7 +11408,7 @@ class Blob$1 {
|
|
11289
11408
|
*/
|
11290
11409
|
getTags(options) {
|
11291
11410
|
const operationArguments = {
|
11292
|
-
options:
|
11411
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11293
11412
|
};
|
11294
11413
|
return this.client.sendOperationRequest(operationArguments, getTagsOperationSpec);
|
11295
11414
|
}
|
@@ -11299,13 +11418,13 @@ class Blob$1 {
|
|
11299
11418
|
*/
|
11300
11419
|
setTags(options) {
|
11301
11420
|
const operationArguments = {
|
11302
|
-
options:
|
11421
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
11303
11422
|
};
|
11304
11423
|
return this.client.sendOperationRequest(operationArguments, setTagsOperationSpec);
|
11305
11424
|
}
|
11306
11425
|
}
|
11307
11426
|
// Operation Specifications
|
11308
|
-
const xmlSerializer$
|
11427
|
+
const xmlSerializer$3 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
11309
11428
|
const downloadOperationSpec = {
|
11310
11429
|
path: "/{containerName}/{blob}",
|
11311
11430
|
httpMethod: "GET",
|
@@ -11353,9 +11472,9 @@ const downloadOperationSpec = {
|
|
11353
11472
|
ifTags
|
11354
11473
|
],
|
11355
11474
|
isXML: true,
|
11356
|
-
serializer: xmlSerializer$
|
11475
|
+
serializer: xmlSerializer$3
|
11357
11476
|
};
|
11358
|
-
const getPropertiesOperationSpec
|
11477
|
+
const getPropertiesOperationSpec = {
|
11359
11478
|
path: "/{containerName}/{blob}",
|
11360
11479
|
httpMethod: "HEAD",
|
11361
11480
|
responses: {
|
@@ -11388,9 +11507,9 @@ const getPropertiesOperationSpec$2 = {
|
|
11388
11507
|
ifTags
|
11389
11508
|
],
|
11390
11509
|
isXML: true,
|
11391
|
-
serializer: xmlSerializer$
|
11510
|
+
serializer: xmlSerializer$3
|
11392
11511
|
};
|
11393
|
-
const deleteOperationSpec
|
11512
|
+
const deleteOperationSpec = {
|
11394
11513
|
path: "/{containerName}/{blob}",
|
11395
11514
|
httpMethod: "DELETE",
|
11396
11515
|
responses: {
|
@@ -11422,7 +11541,7 @@ const deleteOperationSpec$1 = {
|
|
11422
11541
|
deleteSnapshots
|
11423
11542
|
],
|
11424
11543
|
isXML: true,
|
11425
|
-
serializer: xmlSerializer$
|
11544
|
+
serializer: xmlSerializer$3
|
11426
11545
|
};
|
11427
11546
|
const undeleteOperationSpec = {
|
11428
11547
|
path: "/{containerName}/{blob}",
|
@@ -11444,7 +11563,7 @@ const undeleteOperationSpec = {
|
|
11444
11563
|
accept1
|
11445
11564
|
],
|
11446
11565
|
isXML: true,
|
11447
|
-
serializer: xmlSerializer$
|
11566
|
+
serializer: xmlSerializer$3
|
11448
11567
|
};
|
11449
11568
|
const setExpiryOperationSpec = {
|
11450
11569
|
path: "/{containerName}/{blob}",
|
@@ -11468,7 +11587,7 @@ const setExpiryOperationSpec = {
|
|
11468
11587
|
expiresOn
|
11469
11588
|
],
|
11470
11589
|
isXML: true,
|
11471
|
-
serializer: xmlSerializer$
|
11590
|
+
serializer: xmlSerializer$3
|
11472
11591
|
};
|
11473
11592
|
const setHttpHeadersOperationSpec = {
|
11474
11593
|
path: "/{containerName}/{blob}",
|
@@ -11502,7 +11621,7 @@ const setHttpHeadersOperationSpec = {
|
|
11502
11621
|
blobContentDisposition
|
11503
11622
|
],
|
11504
11623
|
isXML: true,
|
11505
|
-
serializer: xmlSerializer$
|
11624
|
+
serializer: xmlSerializer$3
|
11506
11625
|
};
|
11507
11626
|
const setImmutabilityPolicyOperationSpec = {
|
11508
11627
|
path: "/{containerName}/{blob}",
|
@@ -11527,7 +11646,7 @@ const setImmutabilityPolicyOperationSpec = {
|
|
11527
11646
|
immutabilityPolicyMode
|
11528
11647
|
],
|
11529
11648
|
isXML: true,
|
11530
|
-
serializer: xmlSerializer$
|
11649
|
+
serializer: xmlSerializer$3
|
11531
11650
|
};
|
11532
11651
|
const deleteImmutabilityPolicyOperationSpec = {
|
11533
11652
|
path: "/{containerName}/{blob}",
|
@@ -11549,7 +11668,7 @@ const deleteImmutabilityPolicyOperationSpec = {
|
|
11549
11668
|
accept1
|
11550
11669
|
],
|
11551
11670
|
isXML: true,
|
11552
|
-
serializer: xmlSerializer$
|
11671
|
+
serializer: xmlSerializer$3
|
11553
11672
|
};
|
11554
11673
|
const setLegalHoldOperationSpec = {
|
11555
11674
|
path: "/{containerName}/{blob}",
|
@@ -11572,9 +11691,9 @@ const setLegalHoldOperationSpec = {
|
|
11572
11691
|
legalHold
|
11573
11692
|
],
|
11574
11693
|
isXML: true,
|
11575
|
-
serializer: xmlSerializer$
|
11694
|
+
serializer: xmlSerializer$3
|
11576
11695
|
};
|
11577
|
-
const setMetadataOperationSpec
|
11696
|
+
const setMetadataOperationSpec = {
|
11578
11697
|
path: "/{containerName}/{blob}",
|
11579
11698
|
httpMethod: "PUT",
|
11580
11699
|
responses: {
|
@@ -11605,9 +11724,9 @@ const setMetadataOperationSpec$1 = {
|
|
11605
11724
|
encryptionScope
|
11606
11725
|
],
|
11607
11726
|
isXML: true,
|
11608
|
-
serializer: xmlSerializer$
|
11727
|
+
serializer: xmlSerializer$3
|
11609
11728
|
};
|
11610
|
-
const acquireLeaseOperationSpec
|
11729
|
+
const acquireLeaseOperationSpec = {
|
11611
11730
|
path: "/{containerName}/{blob}",
|
11612
11731
|
httpMethod: "PUT",
|
11613
11732
|
responses: {
|
@@ -11635,9 +11754,9 @@ const acquireLeaseOperationSpec$1 = {
|
|
11635
11754
|
ifTags
|
11636
11755
|
],
|
11637
11756
|
isXML: true,
|
11638
|
-
serializer: xmlSerializer$
|
11757
|
+
serializer: xmlSerializer$3
|
11639
11758
|
};
|
11640
|
-
const releaseLeaseOperationSpec
|
11759
|
+
const releaseLeaseOperationSpec = {
|
11641
11760
|
path: "/{containerName}/{blob}",
|
11642
11761
|
httpMethod: "PUT",
|
11643
11762
|
responses: {
|
@@ -11664,9 +11783,9 @@ const releaseLeaseOperationSpec$1 = {
|
|
11664
11783
|
ifTags
|
11665
11784
|
],
|
11666
11785
|
isXML: true,
|
11667
|
-
serializer: xmlSerializer$
|
11786
|
+
serializer: xmlSerializer$3
|
11668
11787
|
};
|
11669
|
-
const renewLeaseOperationSpec
|
11788
|
+
const renewLeaseOperationSpec = {
|
11670
11789
|
path: "/{containerName}/{blob}",
|
11671
11790
|
httpMethod: "PUT",
|
11672
11791
|
responses: {
|
@@ -11693,9 +11812,9 @@ const renewLeaseOperationSpec$1 = {
|
|
11693
11812
|
ifTags
|
11694
11813
|
],
|
11695
11814
|
isXML: true,
|
11696
|
-
serializer: xmlSerializer$
|
11815
|
+
serializer: xmlSerializer$3
|
11697
11816
|
};
|
11698
|
-
const changeLeaseOperationSpec
|
11817
|
+
const changeLeaseOperationSpec = {
|
11699
11818
|
path: "/{containerName}/{blob}",
|
11700
11819
|
httpMethod: "PUT",
|
11701
11820
|
responses: {
|
@@ -11723,9 +11842,9 @@ const changeLeaseOperationSpec$1 = {
|
|
11723
11842
|
ifTags
|
11724
11843
|
],
|
11725
11844
|
isXML: true,
|
11726
|
-
serializer: xmlSerializer$
|
11845
|
+
serializer: xmlSerializer$3
|
11727
11846
|
};
|
11728
|
-
const breakLeaseOperationSpec
|
11847
|
+
const breakLeaseOperationSpec = {
|
11729
11848
|
path: "/{containerName}/{blob}",
|
11730
11849
|
httpMethod: "PUT",
|
11731
11850
|
responses: {
|
@@ -11752,7 +11871,7 @@ const breakLeaseOperationSpec$1 = {
|
|
11752
11871
|
ifTags
|
11753
11872
|
],
|
11754
11873
|
isXML: true,
|
11755
|
-
serializer: xmlSerializer$
|
11874
|
+
serializer: xmlSerializer$3
|
11756
11875
|
};
|
11757
11876
|
const createSnapshotOperationSpec = {
|
11758
11877
|
path: "/{containerName}/{blob}",
|
@@ -11785,7 +11904,7 @@ const createSnapshotOperationSpec = {
|
|
11785
11904
|
encryptionScope
|
11786
11905
|
],
|
11787
11906
|
isXML: true,
|
11788
|
-
serializer: xmlSerializer$
|
11907
|
+
serializer: xmlSerializer$3
|
11789
11908
|
};
|
11790
11909
|
const startCopyFromURLOperationSpec = {
|
11791
11910
|
path: "/{containerName}/{blob}",
|
@@ -11827,7 +11946,7 @@ const startCopyFromURLOperationSpec = {
|
|
11827
11946
|
legalHold1
|
11828
11947
|
],
|
11829
11948
|
isXML: true,
|
11830
|
-
serializer: xmlSerializer$
|
11949
|
+
serializer: xmlSerializer$3
|
11831
11950
|
};
|
11832
11951
|
const copyFromURLOperationSpec = {
|
11833
11952
|
path: "/{containerName}/{blob}",
|
@@ -11870,7 +11989,7 @@ const copyFromURLOperationSpec = {
|
|
11870
11989
|
copySourceAuthorization
|
11871
11990
|
],
|
11872
11991
|
isXML: true,
|
11873
|
-
serializer: xmlSerializer$
|
11992
|
+
serializer: xmlSerializer$3
|
11874
11993
|
};
|
11875
11994
|
const abortCopyFromURLOperationSpec = {
|
11876
11995
|
path: "/{containerName}/{blob}",
|
@@ -11898,7 +12017,7 @@ const abortCopyFromURLOperationSpec = {
|
|
11898
12017
|
copyActionAbortConstant
|
11899
12018
|
],
|
11900
12019
|
isXML: true,
|
11901
|
-
serializer: xmlSerializer$
|
12020
|
+
serializer: xmlSerializer$3
|
11902
12021
|
};
|
11903
12022
|
const setTierOperationSpec = {
|
11904
12023
|
path: "/{containerName}/{blob}",
|
@@ -11932,9 +12051,9 @@ const setTierOperationSpec = {
|
|
11932
12051
|
tier1
|
11933
12052
|
],
|
11934
12053
|
isXML: true,
|
11935
|
-
serializer: xmlSerializer$
|
12054
|
+
serializer: xmlSerializer$3
|
11936
12055
|
};
|
11937
|
-
const getAccountInfoOperationSpec
|
12056
|
+
const getAccountInfoOperationSpec = {
|
11938
12057
|
path: "/{containerName}/{blob}",
|
11939
12058
|
httpMethod: "GET",
|
11940
12059
|
responses: {
|
@@ -11950,7 +12069,7 @@ const getAccountInfoOperationSpec$2 = {
|
|
11950
12069
|
urlParameters: [url],
|
11951
12070
|
headerParameters: [version, accept1],
|
11952
12071
|
isXML: true,
|
11953
|
-
serializer: xmlSerializer$
|
12072
|
+
serializer: xmlSerializer$3
|
11954
12073
|
};
|
11955
12074
|
const queryOperationSpec = {
|
11956
12075
|
path: "/{containerName}/{blob}",
|
@@ -12000,7 +12119,7 @@ const queryOperationSpec = {
|
|
12000
12119
|
isXML: true,
|
12001
12120
|
contentType: "application/xml; charset=utf-8",
|
12002
12121
|
mediaType: "xml",
|
12003
|
-
serializer: xmlSerializer$
|
12122
|
+
serializer: xmlSerializer$3
|
12004
12123
|
};
|
12005
12124
|
const getTagsOperationSpec = {
|
12006
12125
|
path: "/{containerName}/{blob}",
|
@@ -12030,7 +12149,7 @@ const getTagsOperationSpec = {
|
|
12030
12149
|
ifTags
|
12031
12150
|
],
|
12032
12151
|
isXML: true,
|
12033
|
-
serializer: xmlSerializer$
|
12152
|
+
serializer: xmlSerializer$3
|
12034
12153
|
};
|
12035
12154
|
const setTagsOperationSpec = {
|
12036
12155
|
path: "/{containerName}/{blob}",
|
@@ -12064,7 +12183,7 @@ const setTagsOperationSpec = {
|
|
12064
12183
|
isXML: true,
|
12065
12184
|
contentType: "application/xml; charset=utf-8",
|
12066
12185
|
mediaType: "xml",
|
12067
|
-
serializer: xmlSerializer$
|
12186
|
+
serializer: xmlSerializer$3
|
12068
12187
|
};
|
12069
12188
|
|
12070
12189
|
/*
|
@@ -12094,7 +12213,7 @@ class PageBlob {
|
|
12094
12213
|
const operationArguments = {
|
12095
12214
|
contentLength,
|
12096
12215
|
blobContentLength,
|
12097
|
-
options:
|
12216
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12098
12217
|
};
|
12099
12218
|
return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);
|
12100
12219
|
}
|
@@ -12108,7 +12227,7 @@ class PageBlob {
|
|
12108
12227
|
const operationArguments = {
|
12109
12228
|
contentLength,
|
12110
12229
|
body,
|
12111
|
-
options:
|
12230
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12112
12231
|
};
|
12113
12232
|
return this.client.sendOperationRequest(operationArguments, uploadPagesOperationSpec);
|
12114
12233
|
}
|
@@ -12120,7 +12239,7 @@ class PageBlob {
|
|
12120
12239
|
clearPages(contentLength, options) {
|
12121
12240
|
const operationArguments = {
|
12122
12241
|
contentLength,
|
12123
|
-
options:
|
12242
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12124
12243
|
};
|
12125
12244
|
return this.client.sendOperationRequest(operationArguments, clearPagesOperationSpec);
|
12126
12245
|
}
|
@@ -12141,7 +12260,7 @@ class PageBlob {
|
|
12141
12260
|
sourceRange,
|
12142
12261
|
contentLength,
|
12143
12262
|
range,
|
12144
|
-
options:
|
12263
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12145
12264
|
};
|
12146
12265
|
return this.client.sendOperationRequest(operationArguments, uploadPagesFromURLOperationSpec);
|
12147
12266
|
}
|
@@ -12152,7 +12271,7 @@ class PageBlob {
|
|
12152
12271
|
*/
|
12153
12272
|
getPageRanges(options) {
|
12154
12273
|
const operationArguments = {
|
12155
|
-
options:
|
12274
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12156
12275
|
};
|
12157
12276
|
return this.client.sendOperationRequest(operationArguments, getPageRangesOperationSpec);
|
12158
12277
|
}
|
@@ -12163,7 +12282,7 @@ class PageBlob {
|
|
12163
12282
|
*/
|
12164
12283
|
getPageRangesDiff(options) {
|
12165
12284
|
const operationArguments = {
|
12166
|
-
options:
|
12285
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12167
12286
|
};
|
12168
12287
|
return this.client.sendOperationRequest(operationArguments, getPageRangesDiffOperationSpec);
|
12169
12288
|
}
|
@@ -12176,7 +12295,7 @@ class PageBlob {
|
|
12176
12295
|
resize(blobContentLength, options) {
|
12177
12296
|
const operationArguments = {
|
12178
12297
|
blobContentLength,
|
12179
|
-
options:
|
12298
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12180
12299
|
};
|
12181
12300
|
return this.client.sendOperationRequest(operationArguments, resizeOperationSpec);
|
12182
12301
|
}
|
@@ -12190,7 +12309,7 @@ class PageBlob {
|
|
12190
12309
|
updateSequenceNumber(sequenceNumberAction, options) {
|
12191
12310
|
const operationArguments = {
|
12192
12311
|
sequenceNumberAction,
|
12193
|
-
options:
|
12312
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12194
12313
|
};
|
12195
12314
|
return this.client.sendOperationRequest(operationArguments, updateSequenceNumberOperationSpec);
|
12196
12315
|
}
|
@@ -12209,14 +12328,14 @@ class PageBlob {
|
|
12209
12328
|
copyIncremental(copySource, options) {
|
12210
12329
|
const operationArguments = {
|
12211
12330
|
copySource,
|
12212
|
-
options:
|
12331
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12213
12332
|
};
|
12214
12333
|
return this.client.sendOperationRequest(operationArguments, copyIncrementalOperationSpec);
|
12215
12334
|
}
|
12216
12335
|
}
|
12217
12336
|
// Operation Specifications
|
12218
|
-
const xmlSerializer$
|
12219
|
-
const serializer = new
|
12337
|
+
const xmlSerializer$2 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
12338
|
+
const serializer$2 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);
|
12220
12339
|
const createOperationSpec$1 = {
|
12221
12340
|
path: "/{containerName}/{blob}",
|
12222
12341
|
httpMethod: "PUT",
|
@@ -12263,7 +12382,7 @@ const createOperationSpec$1 = {
|
|
12263
12382
|
blobSequenceNumber
|
12264
12383
|
],
|
12265
12384
|
isXML: true,
|
12266
|
-
serializer: xmlSerializer$
|
12385
|
+
serializer: xmlSerializer$2
|
12267
12386
|
};
|
12268
12387
|
const uploadPagesOperationSpec = {
|
12269
12388
|
path: "/{containerName}/{blob}",
|
@@ -12305,7 +12424,7 @@ const uploadPagesOperationSpec = {
|
|
12305
12424
|
ifSequenceNumberEqualTo
|
12306
12425
|
],
|
12307
12426
|
mediaType: "binary",
|
12308
|
-
serializer
|
12427
|
+
serializer: serializer$2
|
12309
12428
|
};
|
12310
12429
|
const clearPagesOperationSpec = {
|
12311
12430
|
path: "/{containerName}/{blob}",
|
@@ -12343,7 +12462,7 @@ const clearPagesOperationSpec = {
|
|
12343
12462
|
pageWrite1
|
12344
12463
|
],
|
12345
12464
|
isXML: true,
|
12346
|
-
serializer: xmlSerializer$
|
12465
|
+
serializer: xmlSerializer$2
|
12347
12466
|
};
|
12348
12467
|
const uploadPagesFromURLOperationSpec = {
|
12349
12468
|
path: "/{containerName}/{blob}",
|
@@ -12390,7 +12509,7 @@ const uploadPagesFromURLOperationSpec = {
|
|
12390
12509
|
range1
|
12391
12510
|
],
|
12392
12511
|
isXML: true,
|
12393
|
-
serializer: xmlSerializer$
|
12512
|
+
serializer: xmlSerializer$2
|
12394
12513
|
};
|
12395
12514
|
const getPageRangesOperationSpec = {
|
12396
12515
|
path: "/{containerName}/{blob}",
|
@@ -12424,7 +12543,7 @@ const getPageRangesOperationSpec = {
|
|
12424
12543
|
ifTags
|
12425
12544
|
],
|
12426
12545
|
isXML: true,
|
12427
|
-
serializer: xmlSerializer$
|
12546
|
+
serializer: xmlSerializer$2
|
12428
12547
|
};
|
12429
12548
|
const getPageRangesDiffOperationSpec = {
|
12430
12549
|
path: "/{containerName}/{blob}",
|
@@ -12460,7 +12579,7 @@ const getPageRangesDiffOperationSpec = {
|
|
12460
12579
|
prevSnapshotUrl
|
12461
12580
|
],
|
12462
12581
|
isXML: true,
|
12463
|
-
serializer: xmlSerializer$
|
12582
|
+
serializer: xmlSerializer$2
|
12464
12583
|
};
|
12465
12584
|
const resizeOperationSpec = {
|
12466
12585
|
path: "/{containerName}/{blob}",
|
@@ -12493,7 +12612,7 @@ const resizeOperationSpec = {
|
|
12493
12612
|
blobContentLength
|
12494
12613
|
],
|
12495
12614
|
isXML: true,
|
12496
|
-
serializer: xmlSerializer$
|
12615
|
+
serializer: xmlSerializer$2
|
12497
12616
|
};
|
12498
12617
|
const updateSequenceNumberOperationSpec = {
|
12499
12618
|
path: "/{containerName}/{blob}",
|
@@ -12523,7 +12642,7 @@ const updateSequenceNumberOperationSpec = {
|
|
12523
12642
|
sequenceNumberAction
|
12524
12643
|
],
|
12525
12644
|
isXML: true,
|
12526
|
-
serializer: xmlSerializer$
|
12645
|
+
serializer: xmlSerializer$2
|
12527
12646
|
};
|
12528
12647
|
const copyIncrementalOperationSpec = {
|
12529
12648
|
path: "/{containerName}/{blob}",
|
@@ -12551,7 +12670,7 @@ const copyIncrementalOperationSpec = {
|
|
12551
12670
|
copySource
|
12552
12671
|
],
|
12553
12672
|
isXML: true,
|
12554
|
-
serializer: xmlSerializer$
|
12673
|
+
serializer: xmlSerializer$2
|
12555
12674
|
};
|
12556
12675
|
|
12557
12676
|
/*
|
@@ -12578,9 +12697,9 @@ class AppendBlob {
|
|
12578
12697
|
create(contentLength, options) {
|
12579
12698
|
const operationArguments = {
|
12580
12699
|
contentLength,
|
12581
|
-
options:
|
12700
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12582
12701
|
};
|
12583
|
-
return this.client.sendOperationRequest(operationArguments, createOperationSpec
|
12702
|
+
return this.client.sendOperationRequest(operationArguments, createOperationSpec);
|
12584
12703
|
}
|
12585
12704
|
/**
|
12586
12705
|
* The Append Block operation commits a new block of data to the end of an existing append blob. The
|
@@ -12594,7 +12713,7 @@ class AppendBlob {
|
|
12594
12713
|
const operationArguments = {
|
12595
12714
|
contentLength,
|
12596
12715
|
body,
|
12597
|
-
options:
|
12716
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12598
12717
|
};
|
12599
12718
|
return this.client.sendOperationRequest(operationArguments, appendBlockOperationSpec);
|
12600
12719
|
}
|
@@ -12611,7 +12730,7 @@ class AppendBlob {
|
|
12611
12730
|
const operationArguments = {
|
12612
12731
|
sourceUrl,
|
12613
12732
|
contentLength,
|
12614
|
-
options:
|
12733
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12615
12734
|
};
|
12616
12735
|
return this.client.sendOperationRequest(operationArguments, appendBlockFromUrlOperationSpec);
|
12617
12736
|
}
|
@@ -12622,15 +12741,15 @@ class AppendBlob {
|
|
12622
12741
|
*/
|
12623
12742
|
seal(options) {
|
12624
12743
|
const operationArguments = {
|
12625
|
-
options:
|
12744
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12626
12745
|
};
|
12627
12746
|
return this.client.sendOperationRequest(operationArguments, sealOperationSpec);
|
12628
12747
|
}
|
12629
12748
|
}
|
12630
12749
|
// Operation Specifications
|
12631
|
-
const xmlSerializer$
|
12632
|
-
const serializer$1 = new
|
12633
|
-
const createOperationSpec
|
12750
|
+
const xmlSerializer$1 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
12751
|
+
const serializer$1 = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);
|
12752
|
+
const createOperationSpec = {
|
12634
12753
|
path: "/{containerName}/{blob}",
|
12635
12754
|
httpMethod: "PUT",
|
12636
12755
|
responses: {
|
@@ -12673,7 +12792,7 @@ const createOperationSpec$2 = {
|
|
12673
12792
|
blobType1
|
12674
12793
|
],
|
12675
12794
|
isXML: true,
|
12676
|
-
serializer: xmlSerializer$
|
12795
|
+
serializer: xmlSerializer$1
|
12677
12796
|
};
|
12678
12797
|
const appendBlockOperationSpec = {
|
12679
12798
|
path: "/{containerName}/{blob}",
|
@@ -12757,7 +12876,7 @@ const appendBlockFromUrlOperationSpec = {
|
|
12757
12876
|
sourceRange1
|
12758
12877
|
],
|
12759
12878
|
isXML: true,
|
12760
|
-
serializer: xmlSerializer$
|
12879
|
+
serializer: xmlSerializer$1
|
12761
12880
|
};
|
12762
12881
|
const sealOperationSpec = {
|
12763
12882
|
path: "/{containerName}/{blob}",
|
@@ -12785,7 +12904,7 @@ const sealOperationSpec = {
|
|
12785
12904
|
appendPosition
|
12786
12905
|
],
|
12787
12906
|
isXML: true,
|
12788
|
-
serializer: xmlSerializer$
|
12907
|
+
serializer: xmlSerializer$1
|
12789
12908
|
};
|
12790
12909
|
|
12791
12910
|
/*
|
@@ -12817,7 +12936,7 @@ class BlockBlob {
|
|
12817
12936
|
const operationArguments = {
|
12818
12937
|
contentLength,
|
12819
12938
|
body,
|
12820
|
-
options:
|
12939
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12821
12940
|
};
|
12822
12941
|
return this.client.sendOperationRequest(operationArguments, uploadOperationSpec);
|
12823
12942
|
}
|
@@ -12838,7 +12957,7 @@ class BlockBlob {
|
|
12838
12957
|
const operationArguments = {
|
12839
12958
|
contentLength,
|
12840
12959
|
copySource,
|
12841
|
-
options:
|
12960
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12842
12961
|
};
|
12843
12962
|
return this.client.sendOperationRequest(operationArguments, putBlobFromUrlOperationSpec);
|
12844
12963
|
}
|
@@ -12856,7 +12975,7 @@ class BlockBlob {
|
|
12856
12975
|
blockId,
|
12857
12976
|
contentLength,
|
12858
12977
|
body,
|
12859
|
-
options:
|
12978
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12860
12979
|
};
|
12861
12980
|
return this.client.sendOperationRequest(operationArguments, stageBlockOperationSpec);
|
12862
12981
|
}
|
@@ -12875,7 +12994,7 @@ class BlockBlob {
|
|
12875
12994
|
blockId,
|
12876
12995
|
contentLength,
|
12877
12996
|
sourceUrl,
|
12878
|
-
options:
|
12997
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12879
12998
|
};
|
12880
12999
|
return this.client.sendOperationRequest(operationArguments, stageBlockFromURLOperationSpec);
|
12881
13000
|
}
|
@@ -12893,7 +13012,7 @@ class BlockBlob {
|
|
12893
13012
|
commitBlockList(blocks, options) {
|
12894
13013
|
const operationArguments = {
|
12895
13014
|
blocks,
|
12896
|
-
options:
|
13015
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12897
13016
|
};
|
12898
13017
|
return this.client.sendOperationRequest(operationArguments, commitBlockListOperationSpec);
|
12899
13018
|
}
|
@@ -12907,14 +13026,14 @@ class BlockBlob {
|
|
12907
13026
|
getBlockList(listType, options) {
|
12908
13027
|
const operationArguments = {
|
12909
13028
|
listType,
|
12910
|
-
options:
|
13029
|
+
options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
|
12911
13030
|
};
|
12912
13031
|
return this.client.sendOperationRequest(operationArguments, getBlockListOperationSpec);
|
12913
13032
|
}
|
12914
13033
|
}
|
12915
13034
|
// Operation Specifications
|
12916
|
-
const xmlSerializer
|
12917
|
-
const serializer
|
13035
|
+
const xmlSerializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ true);
|
13036
|
+
const serializer = new coreHttp__namespace.Serializer(Mappers, /* isXml */ false);
|
12918
13037
|
const uploadOperationSpec = {
|
12919
13038
|
path: "/{containerName}/{blob}",
|
12920
13039
|
httpMethod: "PUT",
|
@@ -12962,7 +13081,7 @@ const uploadOperationSpec = {
|
|
12962
13081
|
blobType2
|
12963
13082
|
],
|
12964
13083
|
mediaType: "binary",
|
12965
|
-
serializer
|
13084
|
+
serializer
|
12966
13085
|
};
|
12967
13086
|
const putBlobFromUrlOperationSpec = {
|
12968
13087
|
path: "/{containerName}/{blob}",
|
@@ -13015,7 +13134,7 @@ const putBlobFromUrlOperationSpec = {
|
|
13015
13134
|
copySourceBlobProperties
|
13016
13135
|
],
|
13017
13136
|
isXML: true,
|
13018
|
-
serializer: xmlSerializer
|
13137
|
+
serializer: xmlSerializer
|
13019
13138
|
};
|
13020
13139
|
const stageBlockOperationSpec = {
|
13021
13140
|
path: "/{containerName}/{blob}",
|
@@ -13051,7 +13170,7 @@ const stageBlockOperationSpec = {
|
|
13051
13170
|
accept2
|
13052
13171
|
],
|
13053
13172
|
mediaType: "binary",
|
13054
|
-
serializer
|
13173
|
+
serializer
|
13055
13174
|
};
|
13056
13175
|
const stageBlockFromURLOperationSpec = {
|
13057
13176
|
path: "/{containerName}/{blob}",
|
@@ -13092,7 +13211,7 @@ const stageBlockFromURLOperationSpec = {
|
|
13092
13211
|
sourceRange1
|
13093
13212
|
],
|
13094
13213
|
isXML: true,
|
13095
|
-
serializer: xmlSerializer
|
13214
|
+
serializer: xmlSerializer
|
13096
13215
|
};
|
13097
13216
|
const commitBlockListOperationSpec = {
|
13098
13217
|
path: "/{containerName}/{blob}",
|
@@ -13142,7 +13261,7 @@ const commitBlockListOperationSpec = {
|
|
13142
13261
|
isXML: true,
|
13143
13262
|
contentType: "application/xml; charset=utf-8",
|
13144
13263
|
mediaType: "xml",
|
13145
|
-
serializer: xmlSerializer
|
13264
|
+
serializer: xmlSerializer
|
13146
13265
|
};
|
13147
13266
|
const getBlockListOperationSpec = {
|
13148
13267
|
path: "/{containerName}/{blob}",
|
@@ -13172,7 +13291,7 @@ const getBlockListOperationSpec = {
|
|
13172
13291
|
ifTags
|
13173
13292
|
],
|
13174
13293
|
isXML: true,
|
13175
|
-
serializer: xmlSerializer
|
13294
|
+
serializer: xmlSerializer
|
13176
13295
|
};
|
13177
13296
|
|
13178
13297
|
// Copyright (c) Microsoft Corporation.
|
@@ -13184,7 +13303,7 @@ const logger = logger$1.createClientLogger("storage-blob");
|
|
13184
13303
|
// Copyright (c) Microsoft Corporation.
|
13185
13304
|
// Licensed under the MIT license.
|
13186
13305
|
const SDK_VERSION = "12.9.0-beta.3";
|
13187
|
-
const SERVICE_VERSION = "2021-
|
13306
|
+
const SERVICE_VERSION = "2021-04-10";
|
13188
13307
|
const BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES = 256 * 1024 * 1024; // 256MB
|
13189
13308
|
const BLOCK_BLOB_MAX_STAGE_BLOCK_BYTES = 4000 * 1024 * 1024; // 4000MB
|
13190
13309
|
const BLOCK_BLOB_MAX_BLOCKS = 50000;
|
@@ -14228,6 +14347,10 @@ class StorageBrowserPolicyFactory {
|
|
14228
14347
|
}
|
14229
14348
|
|
14230
14349
|
// Copyright (c) Microsoft Corporation.
|
14350
|
+
/**
|
14351
|
+
* RetryPolicy types.
|
14352
|
+
*/
|
14353
|
+
exports.StorageRetryPolicyType = void 0;
|
14231
14354
|
(function (StorageRetryPolicyType) {
|
14232
14355
|
/**
|
14233
14356
|
* Exponential retry. Retry time delay grows exponentially.
|
@@ -14581,7 +14704,7 @@ class TelemetryPolicyFactory {
|
|
14581
14704
|
userAgentInfo.push(libInfo);
|
14582
14705
|
}
|
14583
14706
|
// e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
|
14584
|
-
const runtimeInfo = `(NODE-VERSION ${process.version}; ${
|
14707
|
+
const runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
|
14585
14708
|
if (userAgentInfo.indexOf(runtimeInfo) === -1) {
|
14586
14709
|
userAgentInfo.push(runtimeInfo);
|
14587
14710
|
}
|
@@ -14876,7 +14999,7 @@ class StorageSharedKeyCredential extends Credential {
|
|
14876
14999
|
*/
|
14877
15000
|
const packageName = "azure-storage-blob";
|
14878
15001
|
const packageVersion = "12.9.0-beta.3";
|
14879
|
-
class StorageClientContext extends
|
15002
|
+
class StorageClientContext extends coreHttp__namespace.ServiceClient {
|
14880
15003
|
/**
|
14881
15004
|
* Initializes a new instance of the StorageClientContext class.
|
14882
15005
|
* @param url The URL of the service account, container, or blob that is the target of the desired
|
@@ -14892,7 +15015,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
14892
15015
|
options = {};
|
14893
15016
|
}
|
14894
15017
|
if (!options.userAgent) {
|
14895
|
-
const defaultUserAgent =
|
15018
|
+
const defaultUserAgent = coreHttp__namespace.getDefaultUserAgentValue();
|
14896
15019
|
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
|
14897
15020
|
}
|
14898
15021
|
super(undefined, options);
|
@@ -14901,7 +15024,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
|
|
14901
15024
|
// Parameter assignments
|
14902
15025
|
this.url = url;
|
14903
15026
|
// Assigning values to Constant parameters
|
14904
|
-
this.version = options.version || "2021-
|
15027
|
+
this.version = options.version || "2021-04-10";
|
14905
15028
|
}
|
14906
15029
|
}
|
14907
15030
|
|
@@ -15220,6 +15343,10 @@ class ContainerSASPermissions {
|
|
15220
15343
|
* Specifies that Permanent Delete is permitted.
|
15221
15344
|
*/
|
15222
15345
|
this.permanentDelete = false;
|
15346
|
+
/**
|
15347
|
+
* Specifies that Filter Blobs by Tags is permitted.
|
15348
|
+
*/
|
15349
|
+
this.filterByTags = false;
|
15223
15350
|
}
|
15224
15351
|
/**
|
15225
15352
|
* Creates an {@link ContainerSASPermissions} from the specified permissions string. This method will throw an
|
@@ -15267,6 +15394,9 @@ class ContainerSASPermissions {
|
|
15267
15394
|
case "y":
|
15268
15395
|
containerSASPermissions.permanentDelete = true;
|
15269
15396
|
break;
|
15397
|
+
case "f":
|
15398
|
+
containerSASPermissions.filterByTags = true;
|
15399
|
+
break;
|
15270
15400
|
default:
|
15271
15401
|
throw new RangeError(`Invalid permission ${char}`);
|
15272
15402
|
}
|
@@ -15317,6 +15447,9 @@ class ContainerSASPermissions {
|
|
15317
15447
|
if (permissionLike.permanentDelete) {
|
15318
15448
|
containerSASPermissions.permanentDelete = true;
|
15319
15449
|
}
|
15450
|
+
if (permissionLike.filterByTags) {
|
15451
|
+
containerSASPermissions.filterByTags = true;
|
15452
|
+
}
|
15320
15453
|
return containerSASPermissions;
|
15321
15454
|
}
|
15322
15455
|
/**
|
@@ -15365,6 +15498,9 @@ class ContainerSASPermissions {
|
|
15365
15498
|
if (this.permanentDelete) {
|
15366
15499
|
permissions.push("y");
|
15367
15500
|
}
|
15501
|
+
if (this.filterByTags) {
|
15502
|
+
permissions.push("f");
|
15503
|
+
}
|
15368
15504
|
return permissions.join("");
|
15369
15505
|
}
|
15370
15506
|
}
|
@@ -15412,6 +15548,10 @@ function ipRangeToString(ipRange) {
|
|
15412
15548
|
}
|
15413
15549
|
|
15414
15550
|
// Copyright (c) Microsoft Corporation.
|
15551
|
+
/**
|
15552
|
+
* Protocols for generated SAS.
|
15553
|
+
*/
|
15554
|
+
exports.SASProtocol = void 0;
|
15415
15555
|
(function (SASProtocol) {
|
15416
15556
|
/**
|
15417
15557
|
* Protocol that allows HTTPS only
|
@@ -16168,6 +16308,11 @@ function SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues) {
|
|
16168
16308
|
(blobSASSignatureValues.permissions.move || blobSASSignatureValues.permissions.execute)) {
|
16169
16309
|
throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");
|
16170
16310
|
}
|
16311
|
+
if (version < "2021-04-10" &&
|
16312
|
+
blobSASSignatureValues.permissions &&
|
16313
|
+
blobSASSignatureValues.permissions.filterByTags) {
|
16314
|
+
throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");
|
16315
|
+
}
|
16171
16316
|
if (version < "2020-02-10" &&
|
16172
16317
|
(blobSASSignatureValues.preauthorizedAgentObjectId || blobSASSignatureValues.correlationId)) {
|
16173
16318
|
throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");
|
@@ -17946,6 +18091,11 @@ class BlobQueryResponse {
|
|
17946
18091
|
}
|
17947
18092
|
|
17948
18093
|
// Copyright (c) Microsoft Corporation.
|
18094
|
+
/**
|
18095
|
+
* Represents the access tier on a blob.
|
18096
|
+
* For detailed information about block blob level tiering see {@link https://docs.microsoft.com/azure/storage/blobs/storage-blob-storage-tiers|Hot, cool and archive storage tiers.}
|
18097
|
+
*/
|
18098
|
+
exports.BlockBlobTier = void 0;
|
17949
18099
|
(function (BlockBlobTier) {
|
17950
18100
|
/**
|
17951
18101
|
* Optimized for storing data that is accessed frequently.
|
@@ -17961,6 +18111,12 @@ class BlobQueryResponse {
|
|
17961
18111
|
*/
|
17962
18112
|
BlockBlobTier["Archive"] = "Archive";
|
17963
18113
|
})(exports.BlockBlobTier || (exports.BlockBlobTier = {}));
|
18114
|
+
/**
|
18115
|
+
* Specifies the page blob tier to set the blob to. This is only applicable to page blobs on premium storage accounts.
|
18116
|
+
* Please see {@link https://docs.microsoft.com/azure/storage/storage-premium-storage#scalability-and-performance-targets|here}
|
18117
|
+
* for detailed information on the corresponding IOPS and throughput per PageBlobTier.
|
18118
|
+
*/
|
18119
|
+
exports.PremiumPageBlobTier = void 0;
|
17964
18120
|
(function (PremiumPageBlobTier) {
|
17965
18121
|
/**
|
17966
18122
|
* P4 Tier.
|
@@ -18811,7 +18967,7 @@ async function streamToBuffer2(stream, buffer, encoding) {
|
|
18811
18967
|
*/
|
18812
18968
|
async function readStreamToLocalFile(rs, file) {
|
18813
18969
|
return new Promise((resolve, reject) => {
|
18814
|
-
const ws =
|
18970
|
+
const ws = fs__namespace.createWriteStream(file);
|
18815
18971
|
rs.on("error", (err) => {
|
18816
18972
|
reject(err);
|
18817
18973
|
});
|
@@ -18827,8 +18983,8 @@ async function readStreamToLocalFile(rs, file) {
|
|
18827
18983
|
*
|
18828
18984
|
* Promisified version of fs.stat().
|
18829
18985
|
*/
|
18830
|
-
const fsStat =
|
18831
|
-
const fsCreateReadStream =
|
18986
|
+
const fsStat = util__namespace.promisify(fs__namespace.stat);
|
18987
|
+
const fsCreateReadStream = fs__namespace.createReadStream;
|
18832
18988
|
|
18833
18989
|
/**
|
18834
18990
|
* A BlobClient represents a URL to an Azure Storage blob; the blob may be a block blob,
|
@@ -22802,6 +22958,207 @@ class ContainerClient extends StorageClient {
|
|
22802
22958
|
},
|
22803
22959
|
};
|
22804
22960
|
}
|
22961
|
+
/**
|
22962
|
+
* The Filter Blobs operation enables callers to list blobs in the container whose tags
|
22963
|
+
* match a given search expression.
|
22964
|
+
*
|
22965
|
+
* @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.
|
22966
|
+
* The given expression must evaluate to true for a blob to be returned in the results.
|
22967
|
+
* The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
|
22968
|
+
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
22969
|
+
* @param marker - A string value that identifies the portion of
|
22970
|
+
* the list of blobs to be returned with the next listing operation. The
|
22971
|
+
* operation returns the continuationToken value within the response body if the
|
22972
|
+
* listing operation did not return all blobs remaining to be listed
|
22973
|
+
* with the current page. The continuationToken value can be used as the value for
|
22974
|
+
* the marker parameter in a subsequent call to request the next page of list
|
22975
|
+
* items. The marker value is opaque to the client.
|
22976
|
+
* @param options - Options to find blobs by tags.
|
22977
|
+
*/
|
22978
|
+
async findBlobsByTagsSegment(tagFilterSqlExpression, marker, options = {}) {
|
22979
|
+
const { span, updatedOptions } = createSpan("ContainerClient-findBlobsByTagsSegment", options);
|
22980
|
+
try {
|
22981
|
+
const response = await this.containerContext.filterBlobs(Object.assign({ abortSignal: options.abortSignal, where: tagFilterSqlExpression, marker, maxPageSize: options.maxPageSize }, convertTracingToRequestOptionsBase(updatedOptions)));
|
22982
|
+
const wrappedResponse = Object.assign(Object.assign({}, response), { _response: response._response, blobs: response.blobs.map((blob) => {
|
22983
|
+
var _a;
|
22984
|
+
let tagValue = "";
|
22985
|
+
if (((_a = blob.tags) === null || _a === void 0 ? void 0 : _a.blobTagSet.length) === 1) {
|
22986
|
+
tagValue = blob.tags.blobTagSet[0].value;
|
22987
|
+
}
|
22988
|
+
return Object.assign(Object.assign({}, blob), { tags: toTags(blob.tags), tagValue });
|
22989
|
+
}) });
|
22990
|
+
return wrappedResponse;
|
22991
|
+
}
|
22992
|
+
catch (e) {
|
22993
|
+
span.setStatus({
|
22994
|
+
code: coreTracing.SpanStatusCode.ERROR,
|
22995
|
+
message: e.message,
|
22996
|
+
});
|
22997
|
+
throw e;
|
22998
|
+
}
|
22999
|
+
finally {
|
23000
|
+
span.end();
|
23001
|
+
}
|
23002
|
+
}
|
23003
|
+
/**
|
23004
|
+
* Returns an AsyncIterableIterator for ContainerFindBlobsByTagsSegmentResponse.
|
23005
|
+
*
|
23006
|
+
* @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.
|
23007
|
+
* The given expression must evaluate to true for a blob to be returned in the results.
|
23008
|
+
* The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
|
23009
|
+
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
23010
|
+
* @param marker - A string value that identifies the portion of
|
23011
|
+
* the list of blobs to be returned with the next listing operation. The
|
23012
|
+
* operation returns the continuationToken value within the response body if the
|
23013
|
+
* listing operation did not return all blobs remaining to be listed
|
23014
|
+
* with the current page. The continuationToken value can be used as the value for
|
23015
|
+
* the marker parameter in a subsequent call to request the next page of list
|
23016
|
+
* items. The marker value is opaque to the client.
|
23017
|
+
* @param options - Options to find blobs by tags.
|
23018
|
+
*/
|
23019
|
+
findBlobsByTagsSegments(tagFilterSqlExpression, marker, options = {}) {
|
23020
|
+
return tslib.__asyncGenerator(this, arguments, function* findBlobsByTagsSegments_1() {
|
23021
|
+
let response;
|
23022
|
+
if (!!marker || marker === undefined) {
|
23023
|
+
do {
|
23024
|
+
response = yield tslib.__await(this.findBlobsByTagsSegment(tagFilterSqlExpression, marker, options));
|
23025
|
+
response.blobs = response.blobs || [];
|
23026
|
+
marker = response.continuationToken;
|
23027
|
+
yield yield tslib.__await(response);
|
23028
|
+
} while (marker);
|
23029
|
+
}
|
23030
|
+
});
|
23031
|
+
}
|
23032
|
+
/**
|
23033
|
+
* Returns an AsyncIterableIterator for blobs.
|
23034
|
+
*
|
23035
|
+
* @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.
|
23036
|
+
* The given expression must evaluate to true for a blob to be returned in the results.
|
23037
|
+
* The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
|
23038
|
+
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
23039
|
+
* @param options - Options to findBlobsByTagsItems.
|
23040
|
+
*/
|
23041
|
+
findBlobsByTagsItems(tagFilterSqlExpression, options = {}) {
|
23042
|
+
return tslib.__asyncGenerator(this, arguments, function* findBlobsByTagsItems_1() {
|
23043
|
+
var e_3, _a;
|
23044
|
+
let marker;
|
23045
|
+
try {
|
23046
|
+
for (var _b = tslib.__asyncValues(this.findBlobsByTagsSegments(tagFilterSqlExpression, marker, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
23047
|
+
const segment = _c.value;
|
23048
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(segment.blobs)));
|
23049
|
+
}
|
23050
|
+
}
|
23051
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
23052
|
+
finally {
|
23053
|
+
try {
|
23054
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
23055
|
+
}
|
23056
|
+
finally { if (e_3) throw e_3.error; }
|
23057
|
+
}
|
23058
|
+
});
|
23059
|
+
}
|
23060
|
+
/**
|
23061
|
+
* Returns an async iterable iterator to find all blobs with specified tag
|
23062
|
+
* under the specified container.
|
23063
|
+
*
|
23064
|
+
* .byPage() returns an async iterable iterator to list the blobs in pages.
|
23065
|
+
*
|
23066
|
+
* Example using `for await` syntax:
|
23067
|
+
*
|
23068
|
+
* ```js
|
23069
|
+
* let i = 1;
|
23070
|
+
* for await (const blob of containerClient.findBlobsByTags("tagkey='tagvalue'")) {
|
23071
|
+
* console.log(`Blob ${i++}: ${blob.name}`);
|
23072
|
+
* }
|
23073
|
+
* ```
|
23074
|
+
*
|
23075
|
+
* Example using `iter.next()`:
|
23076
|
+
*
|
23077
|
+
* ```js
|
23078
|
+
* let i = 1;
|
23079
|
+
* const iter = containerClient.findBlobsByTags("tagkey='tagvalue'");
|
23080
|
+
* let blobItem = await iter.next();
|
23081
|
+
* while (!blobItem.done) {
|
23082
|
+
* console.log(`Blob ${i++}: ${blobItem.value.name}`);
|
23083
|
+
* blobItem = await iter.next();
|
23084
|
+
* }
|
23085
|
+
* ```
|
23086
|
+
*
|
23087
|
+
* Example using `byPage()`:
|
23088
|
+
*
|
23089
|
+
* ```js
|
23090
|
+
* // passing optional maxPageSize in the page settings
|
23091
|
+
* let i = 1;
|
23092
|
+
* for await (const response of containerClient.findBlobsByTags("tagkey='tagvalue'").byPage({ maxPageSize: 20 })) {
|
23093
|
+
* if (response.blobs) {
|
23094
|
+
* for (const blob of response.blobs) {
|
23095
|
+
* console.log(`Blob ${i++}: ${blob.name}`);
|
23096
|
+
* }
|
23097
|
+
* }
|
23098
|
+
* }
|
23099
|
+
* ```
|
23100
|
+
*
|
23101
|
+
* Example using paging with a marker:
|
23102
|
+
*
|
23103
|
+
* ```js
|
23104
|
+
* let i = 1;
|
23105
|
+
* let iterator = containerClient.findBlobsByTags("tagkey='tagvalue'").byPage({ maxPageSize: 2 });
|
23106
|
+
* let response = (await iterator.next()).value;
|
23107
|
+
*
|
23108
|
+
* // Prints 2 blob names
|
23109
|
+
* if (response.blobs) {
|
23110
|
+
* for (const blob of response.blobs) {
|
23111
|
+
* console.log(`Blob ${i++}: ${blob.name}`);
|
23112
|
+
* }
|
23113
|
+
* }
|
23114
|
+
*
|
23115
|
+
* // Gets next marker
|
23116
|
+
* let marker = response.continuationToken;
|
23117
|
+
* // Passing next marker as continuationToken
|
23118
|
+
* iterator = containerClient
|
23119
|
+
* .findBlobsByTags("tagkey='tagvalue'")
|
23120
|
+
* .byPage({ continuationToken: marker, maxPageSize: 10 });
|
23121
|
+
* response = (await iterator.next()).value;
|
23122
|
+
*
|
23123
|
+
* // Prints blob names
|
23124
|
+
* if (response.blobs) {
|
23125
|
+
* for (const blob of response.blobs) {
|
23126
|
+
* console.log(`Blob ${i++}: ${blob.name}`);
|
23127
|
+
* }
|
23128
|
+
* }
|
23129
|
+
* ```
|
23130
|
+
*
|
23131
|
+
* @param tagFilterSqlExpression - The where parameter enables the caller to query blobs whose tags match a given expression.
|
23132
|
+
* The given expression must evaluate to true for a blob to be returned in the results.
|
23133
|
+
* The[OData - ABNF] filter syntax rule defines the formal grammar for the value of the where query parameter;
|
23134
|
+
* however, only a subset of the OData filter syntax is supported in the Blob service.
|
23135
|
+
* @param options - Options to find blobs by tags.
|
23136
|
+
*/
|
23137
|
+
findBlobsByTags(tagFilterSqlExpression, options = {}) {
|
23138
|
+
// AsyncIterableIterator to iterate over blobs
|
23139
|
+
const listSegmentOptions = Object.assign({}, options);
|
23140
|
+
const iter = this.findBlobsByTagsItems(tagFilterSqlExpression, listSegmentOptions);
|
23141
|
+
return {
|
23142
|
+
/**
|
23143
|
+
* The next method, part of the iteration protocol
|
23144
|
+
*/
|
23145
|
+
next() {
|
23146
|
+
return iter.next();
|
23147
|
+
},
|
23148
|
+
/**
|
23149
|
+
* The connection to the async iterator, part of the iteration protocol
|
23150
|
+
*/
|
23151
|
+
[Symbol.asyncIterator]() {
|
23152
|
+
return this;
|
23153
|
+
},
|
23154
|
+
/**
|
23155
|
+
* Return an AsyncIterableIterator that works a page at a time
|
23156
|
+
*/
|
23157
|
+
byPage: (settings = {}) => {
|
23158
|
+
return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));
|
23159
|
+
},
|
23160
|
+
};
|
23161
|
+
}
|
22805
23162
|
getContainerNameFromUrl() {
|
22806
23163
|
let containerName;
|
22807
23164
|
try {
|
@@ -24104,39 +24461,27 @@ class BlobServiceClient extends StorageClient {
|
|
24104
24461
|
|
24105
24462
|
Object.defineProperty(exports, 'BaseRequestPolicy', {
|
24106
24463
|
enumerable: true,
|
24107
|
-
get: function () {
|
24108
|
-
return coreHttp.BaseRequestPolicy;
|
24109
|
-
}
|
24464
|
+
get: function () { return coreHttp.BaseRequestPolicy; }
|
24110
24465
|
});
|
24111
24466
|
Object.defineProperty(exports, 'HttpHeaders', {
|
24112
24467
|
enumerable: true,
|
24113
|
-
get: function () {
|
24114
|
-
return coreHttp.HttpHeaders;
|
24115
|
-
}
|
24468
|
+
get: function () { return coreHttp.HttpHeaders; }
|
24116
24469
|
});
|
24117
24470
|
Object.defineProperty(exports, 'RequestPolicyOptions', {
|
24118
24471
|
enumerable: true,
|
24119
|
-
get: function () {
|
24120
|
-
return coreHttp.RequestPolicyOptions;
|
24121
|
-
}
|
24472
|
+
get: function () { return coreHttp.RequestPolicyOptions; }
|
24122
24473
|
});
|
24123
24474
|
Object.defineProperty(exports, 'RestError', {
|
24124
24475
|
enumerable: true,
|
24125
|
-
get: function () {
|
24126
|
-
return coreHttp.RestError;
|
24127
|
-
}
|
24476
|
+
get: function () { return coreHttp.RestError; }
|
24128
24477
|
});
|
24129
24478
|
Object.defineProperty(exports, 'WebResource', {
|
24130
24479
|
enumerable: true,
|
24131
|
-
get: function () {
|
24132
|
-
return coreHttp.WebResource;
|
24133
|
-
}
|
24480
|
+
get: function () { return coreHttp.WebResource; }
|
24134
24481
|
});
|
24135
24482
|
Object.defineProperty(exports, 'deserializationPolicy', {
|
24136
24483
|
enumerable: true,
|
24137
|
-
get: function () {
|
24138
|
-
return coreHttp.deserializationPolicy;
|
24139
|
-
}
|
24484
|
+
get: function () { return coreHttp.deserializationPolicy; }
|
24140
24485
|
});
|
24141
24486
|
exports.AccountSASPermissions = AccountSASPermissions;
|
24142
24487
|
exports.AccountSASResourceTypes = AccountSASResourceTypes;
|