@azure/storage-blob 12.9.0-beta.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +16 -5
  2. package/README.md +11 -10
  3. package/dist/index.js +841 -461
  4. package/dist/index.js.map +1 -1
  5. package/dist-esm/storage-blob/src/BatchResponseParser.js +2 -2
  6. package/dist-esm/storage-blob/src/BatchResponseParser.js.map +1 -1
  7. package/dist-esm/storage-blob/src/BlobBatch.js +8 -8
  8. package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
  9. package/dist-esm/storage-blob/src/BlobBatchClient.js +2 -2
  10. package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
  11. package/dist-esm/storage-blob/src/BlobDownloadResponse.js +1 -1
  12. package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +1 -1
  13. package/dist-esm/storage-blob/src/BlobLeaseClient.js +5 -5
  14. package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
  15. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +1 -1
  16. package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
  17. package/dist-esm/storage-blob/src/BlobServiceClient.js +22 -20
  18. package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
  19. package/dist-esm/storage-blob/src/Clients.js +100 -97
  20. package/dist-esm/storage-blob/src/Clients.js.map +1 -1
  21. package/dist-esm/storage-blob/src/ContainerClient.js +241 -38
  22. package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
  23. package/dist-esm/storage-blob/src/PageBlobRangeResponse.js +3 -3
  24. package/dist-esm/storage-blob/src/PageBlobRangeResponse.js.map +1 -1
  25. package/dist-esm/storage-blob/src/Pipeline.js +6 -6
  26. package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
  27. package/dist-esm/storage-blob/src/TelemetryPolicyFactory.js +1 -1
  28. package/dist-esm/storage-blob/src/TelemetryPolicyFactory.js.map +1 -1
  29. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js +1 -3
  30. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +1 -1
  31. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js +1 -3
  32. package/dist-esm/storage-blob/src/credentials/UserDelegationKeyCredential.js.map +1 -1
  33. package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
  34. package/dist-esm/storage-blob/src/generated/src/models/mappers.js +53 -0
  35. package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
  36. package/dist-esm/storage-blob/src/generated/src/models/parameters.js +1 -1
  37. package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
  38. package/dist-esm/storage-blob/src/generated/src/operations/container.js +41 -0
  39. package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +1 -1
  40. package/dist-esm/storage-blob/src/generated/src/storageClientContext.js +2 -2
  41. package/dist-esm/storage-blob/src/generated/src/storageClientContext.js.map +1 -1
  42. package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
  43. package/dist-esm/storage-blob/src/index.browser.js +1 -1
  44. package/dist-esm/storage-blob/src/index.browser.js.map +1 -1
  45. package/dist-esm/storage-blob/src/index.js +1 -1
  46. package/dist-esm/storage-blob/src/index.js.map +1 -1
  47. package/dist-esm/storage-blob/src/models.js.map +1 -1
  48. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js +1 -1
  49. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
  50. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +5 -5
  51. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +1 -1
  52. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +1 -1
  53. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
  54. package/dist-esm/storage-blob/src/policies/TelemetryPolicy.js +1 -1
  55. package/dist-esm/storage-blob/src/policies/TelemetryPolicy.js.map +1 -1
  56. package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js +3 -3
  57. package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  58. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js +2 -2
  59. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
  60. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +11 -6
  61. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
  62. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js +13 -0
  63. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
  64. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js +2 -2
  65. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
  66. package/dist-esm/storage-blob/src/utils/Batch.js.map +1 -1
  67. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js +1 -1
  68. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
  69. package/dist-esm/storage-blob/src/utils/Mutex.js.map +1 -1
  70. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js +1 -2
  71. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
  72. package/dist-esm/storage-blob/src/utils/constants.js +8 -8
  73. package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
  74. package/dist-esm/storage-blob/src/utils/tracing.js +2 -2
  75. package/dist-esm/storage-blob/src/utils/tracing.js.map +1 -1
  76. package/dist-esm/storage-blob/src/utils/utils.common.js +25 -25
  77. package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
  78. package/dist-esm/storage-internal-avro/src/AvroParser.js.map +1 -1
  79. package/dist-esm/storage-internal-avro/src/AvroReader.js +8 -8
  80. package/dist-esm/storage-internal-avro/src/AvroReader.js.map +1 -1
  81. package/package.json +40 -49
  82. package/{typings → types}/3.1/storage-blob.d.ts +205 -5
  83. package/{typings → types}/latest/storage-blob.d.ts +184 -5
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-02-12",
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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 coreHttp.Serializer(Mappers, /* isXml */ true);
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
10464
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
10387
10465
  };
10388
- return this.client.sendOperationRequest(operationArguments, submitBatchOperationSpec$1);
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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$1 = new coreHttp.Serializer(Mappers, /* isXml */ true);
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$1
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$1
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$1
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$1
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$1
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$1
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$1
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$1
10812
+ serializer: xmlSerializer$4
10724
10813
  };
10725
- const submitBatchOperationSpec$1 = {
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$1
10848
+ serializer: xmlSerializer$4
10760
10849
  };
10761
- const acquireLeaseOperationSpec = {
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$1
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$1
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$1
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$1
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$1
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$1
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$1
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$1
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11148
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11030
11149
  };
11031
- return this.client.sendOperationRequest(operationArguments, getPropertiesOperationSpec$2);
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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11169
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11051
11170
  };
11052
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11244
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11126
11245
  };
11127
- return this.client.sendOperationRequest(operationArguments, setMetadataOperationSpec$1);
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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11255
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11137
11256
  };
11138
- return this.client.sendOperationRequest(operationArguments, acquireLeaseOperationSpec$1);
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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11268
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11150
11269
  };
11151
- return this.client.sendOperationRequest(operationArguments, releaseLeaseOperationSpec$1);
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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11281
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11163
11282
  };
11164
- return this.client.sendOperationRequest(operationArguments, renewLeaseOperationSpec$1);
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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11298
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11180
11299
  };
11181
- return this.client.sendOperationRequest(operationArguments, changeLeaseOperationSpec$1);
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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11309
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11191
11310
  };
11192
- return this.client.sendOperationRequest(operationArguments, breakLeaseOperationSpec$1);
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
11390
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
11272
11391
  };
11273
- return this.client.sendOperationRequest(operationArguments, getAccountInfoOperationSpec$2);
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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$2 = new coreHttp.Serializer(Mappers, /* isXml */ true);
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$2
11475
+ serializer: xmlSerializer$3
11357
11476
  };
11358
- const getPropertiesOperationSpec$2 = {
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$2
11510
+ serializer: xmlSerializer$3
11392
11511
  };
11393
- const deleteOperationSpec$1 = {
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$2
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$2
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$2
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$2
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$2
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$2
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$2
11694
+ serializer: xmlSerializer$3
11576
11695
  };
11577
- const setMetadataOperationSpec$1 = {
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$2
11727
+ serializer: xmlSerializer$3
11609
11728
  };
11610
- const acquireLeaseOperationSpec$1 = {
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$2
11757
+ serializer: xmlSerializer$3
11639
11758
  };
11640
- const releaseLeaseOperationSpec$1 = {
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$2
11786
+ serializer: xmlSerializer$3
11668
11787
  };
11669
- const renewLeaseOperationSpec$1 = {
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$2
11815
+ serializer: xmlSerializer$3
11697
11816
  };
11698
- const changeLeaseOperationSpec$1 = {
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$2
11845
+ serializer: xmlSerializer$3
11727
11846
  };
11728
- const breakLeaseOperationSpec$1 = {
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$2
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$2
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$2
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$2
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$2
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$2
12054
+ serializer: xmlSerializer$3
11936
12055
  };
11937
- const getAccountInfoOperationSpec$2 = {
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$2
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$2
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$2
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$2
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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$3 = new coreHttp.Serializer(Mappers, /* isXml */ true);
12219
- const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
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$3
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$3
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$3
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$3
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$3
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$3
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$3
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$3
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: coreHttp.operationOptionsToRequestOptionsBase(options || {})
12700
+ options: coreHttp__namespace.operationOptionsToRequestOptionsBase(options || {})
12582
12701
  };
12583
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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$4 = new coreHttp.Serializer(Mappers, /* isXml */ true);
12632
- const serializer$1 = new coreHttp.Serializer(Mappers, /* isXml */ false);
12633
- const createOperationSpec$2 = {
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$4
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$4
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$4
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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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: coreHttp.operationOptionsToRequestOptionsBase(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$5 = new coreHttp.Serializer(Mappers, /* isXml */ true);
12917
- const serializer$2 = new coreHttp.Serializer(Mappers, /* isXml */ false);
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: serializer$2
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$5
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: serializer$2
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$5
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$5
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$5
13294
+ serializer: xmlSerializer
13176
13295
  };
13177
13296
 
13178
13297
  // Copyright (c) Microsoft Corporation.
@@ -13183,8 +13302,8 @@ const logger = logger$1.createClientLogger("storage-blob");
13183
13302
 
13184
13303
  // Copyright (c) Microsoft Corporation.
13185
13304
  // Licensed under the MIT license.
13186
- const SDK_VERSION = "12.9.0-beta.2";
13187
- const SERVICE_VERSION = "2021-02-12";
13305
+ const SDK_VERSION = "12.9.0-beta.3";
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;
@@ -13201,15 +13320,15 @@ const URLConstants = {
13201
13320
  SIGNATURE: "sig",
13202
13321
  SNAPSHOT: "snapshot",
13203
13322
  VERSIONID: "versionid",
13204
- TIMEOUT: "timeout"
13205
- }
13323
+ TIMEOUT: "timeout",
13324
+ },
13206
13325
  };
13207
13326
  const HTTPURLConnection = {
13208
13327
  HTTP_ACCEPTED: 202,
13209
13328
  HTTP_CONFLICT: 409,
13210
13329
  HTTP_NOT_FOUND: 404,
13211
13330
  HTTP_PRECON_FAILED: 412,
13212
- HTTP_RANGE_NOT_SATISFIABLE: 416
13331
+ HTTP_RANGE_NOT_SATISFIABLE: 416,
13213
13332
  };
13214
13333
  const HeaderConstants = {
13215
13334
  AUTHORIZATION: "Authorization",
@@ -13234,7 +13353,7 @@ const HeaderConstants = {
13234
13353
  X_MS_COPY_SOURCE: "x-ms-copy-source",
13235
13354
  X_MS_DATE: "x-ms-date",
13236
13355
  X_MS_ERROR_CODE: "x-ms-error-code",
13237
- X_MS_VERSION: "x-ms-version"
13356
+ X_MS_VERSION: "x-ms-version",
13238
13357
  };
13239
13358
  const ETagNone = "";
13240
13359
  const ETagAny = "*";
@@ -13339,7 +13458,7 @@ const StorageBlobLoggingAllowedHeaderNames = [
13339
13458
  "x-ms-tag-count",
13340
13459
  "x-ms-encryption-key-sha256",
13341
13460
  "x-ms-if-tags",
13342
- "x-ms-source-if-tags"
13461
+ "x-ms-source-if-tags",
13343
13462
  ];
13344
13463
  const StorageBlobLoggingAllowedQueryParameters = [
13345
13464
  "comp",
@@ -13374,7 +13493,7 @@ const StorageBlobLoggingAllowedQueryParameters = [
13374
13493
  "skt",
13375
13494
  "sktid",
13376
13495
  "skv",
13377
- "snapshot"
13496
+ "snapshot",
13378
13497
  ];
13379
13498
 
13380
13499
  // Copyright (c) Microsoft Corporation.
@@ -13515,7 +13634,7 @@ function extractConnectionStringParts(connectionString) {
13515
13634
  url: blobEndpoint,
13516
13635
  accountName,
13517
13636
  accountKey,
13518
- proxyUri
13637
+ proxyUri,
13519
13638
  };
13520
13639
  }
13521
13640
  else {
@@ -13847,14 +13966,14 @@ function toBlobTags(tags) {
13847
13966
  return undefined;
13848
13967
  }
13849
13968
  const res = {
13850
- blobTagSet: []
13969
+ blobTagSet: [],
13851
13970
  };
13852
13971
  for (const key in tags) {
13853
13972
  if (Object.prototype.hasOwnProperty.call(tags, key)) {
13854
13973
  const value = tags[key];
13855
13974
  res.blobTagSet.push({
13856
13975
  key,
13857
- value
13976
+ value,
13858
13977
  });
13859
13978
  }
13860
13979
  }
@@ -13894,33 +14013,33 @@ function toQuerySerialization(textConfiguration) {
13894
14013
  fieldQuote: textConfiguration.fieldQuote || "",
13895
14014
  recordSeparator: textConfiguration.recordSeparator,
13896
14015
  escapeChar: textConfiguration.escapeCharacter || "",
13897
- headersPresent: textConfiguration.hasHeaders || false
13898
- }
13899
- }
14016
+ headersPresent: textConfiguration.hasHeaders || false,
14017
+ },
14018
+ },
13900
14019
  };
13901
14020
  case "json":
13902
14021
  return {
13903
14022
  format: {
13904
14023
  type: "json",
13905
14024
  jsonTextConfiguration: {
13906
- recordSeparator: textConfiguration.recordSeparator
13907
- }
13908
- }
14025
+ recordSeparator: textConfiguration.recordSeparator,
14026
+ },
14027
+ },
13909
14028
  };
13910
14029
  case "arrow":
13911
14030
  return {
13912
14031
  format: {
13913
14032
  type: "arrow",
13914
14033
  arrowConfiguration: {
13915
- schema: textConfiguration.schema
13916
- }
13917
- }
14034
+ schema: textConfiguration.schema,
14035
+ },
14036
+ },
13918
14037
  };
13919
14038
  case "parquet":
13920
14039
  return {
13921
14040
  format: {
13922
- type: "parquet"
13923
- }
14041
+ type: "parquet",
14042
+ },
13924
14043
  };
13925
14044
  default:
13926
14045
  throw Error("Invalid BlobQueryTextConfiguration.");
@@ -13944,7 +14063,7 @@ function parseObjectReplicationRecord(objectReplicationRecord) {
13944
14063
  }
13945
14064
  const rule = {
13946
14065
  ruleId: ids[1],
13947
- replicationStatus: objectReplicationRecord[key]
14066
+ replicationStatus: objectReplicationRecord[key],
13948
14067
  };
13949
14068
  const policyIndex = orProperties.findIndex((policy) => policy.policyId === ids[0]);
13950
14069
  if (policyIndex > -1) {
@@ -13953,7 +14072,7 @@ function parseObjectReplicationRecord(objectReplicationRecord) {
13953
14072
  else {
13954
14073
  orProperties.push({
13955
14074
  policyId: ids[0],
13956
- rules: [rule]
14075
+ rules: [rule],
13957
14076
  });
13958
14077
  }
13959
14078
  }
@@ -13985,7 +14104,7 @@ function ConvertInternalResponseOfListBlobFlat(internalResponse) {
13985
14104
  blobItems: internalResponse.segment.blobItems.map((blobItemInteral) => {
13986
14105
  const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name) });
13987
14106
  return blobItem;
13988
- })
14107
+ }),
13989
14108
  } });
13990
14109
  }
13991
14110
  function ConvertInternalResponseOfListBlobHierarchy(internalResponse) {
@@ -13993,20 +14112,28 @@ function ConvertInternalResponseOfListBlobHierarchy(internalResponse) {
13993
14112
  return Object.assign(Object.assign({}, internalResponse), { segment: {
13994
14113
  blobPrefixes: (_a = internalResponse.segment.blobPrefixes) === null || _a === void 0 ? void 0 : _a.map((blobPrefixInternal) => {
13995
14114
  const blobPrefix = {
13996
- name: BlobNameToString(blobPrefixInternal.name)
14115
+ name: BlobNameToString(blobPrefixInternal.name),
13997
14116
  };
13998
14117
  return blobPrefix;
13999
14118
  }),
14000
14119
  blobItems: internalResponse.segment.blobItems.map((blobItemInteral) => {
14001
14120
  const blobItem = Object.assign(Object.assign({}, blobItemInteral), { name: BlobNameToString(blobItemInteral.name) });
14002
14121
  return blobItem;
14003
- })
14122
+ }),
14004
14123
  } });
14005
14124
  }
14006
14125
  function decodeBase64String(value) {
14007
- {
14126
+ if (coreHttp.isNode) {
14008
14127
  return Buffer.from(value, "base64");
14009
14128
  }
14129
+ else {
14130
+ const byteString = atob(value);
14131
+ const arr = new Uint8Array(byteString.length);
14132
+ for (let i = 0; i < byteString.length; i++) {
14133
+ arr[i] = byteString.charCodeAt(i);
14134
+ }
14135
+ return arr;
14136
+ }
14010
14137
  }
14011
14138
  function ParseBoolean(content) {
14012
14139
  if (content === undefined)
@@ -14021,13 +14148,13 @@ function ParseBlobName(blobNameInXML) {
14021
14148
  if (blobNameInXML["$"] !== undefined && blobNameInXML["#"] !== undefined) {
14022
14149
  return {
14023
14150
  encoded: ParseBoolean(blobNameInXML["$"]["Encoded"]),
14024
- content: blobNameInXML["#"]
14151
+ content: blobNameInXML["#"],
14025
14152
  };
14026
14153
  }
14027
14154
  else {
14028
14155
  return {
14029
14156
  encoded: false,
14030
- content: blobNameInXML
14157
+ content: blobNameInXML,
14031
14158
  };
14032
14159
  }
14033
14160
  }
@@ -14093,7 +14220,7 @@ function ParseBlobItem(blobInXML) {
14093
14220
  ? undefined
14094
14221
  : new Date(blobPropertiesInXML["ImmutabilityPolicyUntilDate"]),
14095
14222
  immutabilityPolicyMode: blobPropertiesInXML["ImmutabilityPolicyMode"],
14096
- legalHold: ParseBoolean(blobPropertiesInXML["LegalHold"])
14223
+ legalHold: ParseBoolean(blobPropertiesInXML["LegalHold"]),
14097
14224
  };
14098
14225
  return {
14099
14226
  name: ParseBlobName(blobInXML["Name"]),
@@ -14105,18 +14232,18 @@ function ParseBlobItem(blobInXML) {
14105
14232
  metadata: blobInXML["Metadata"],
14106
14233
  blobTags: ParseBlobTags(blobInXML["Tags"]),
14107
14234
  objectReplicationMetadata: blobInXML["OrMetadata"],
14108
- hasVersionsOnly: ParseBoolean(blobInXML["HasVersionsOnly"])
14235
+ hasVersionsOnly: ParseBoolean(blobInXML["HasVersionsOnly"]),
14109
14236
  };
14110
14237
  }
14111
14238
  function ParseBlobPrefix(blobPrefixInXML) {
14112
14239
  return {
14113
- name: ParseBlobName(blobPrefixInXML["Name"])
14240
+ name: ParseBlobName(blobPrefixInXML["Name"]),
14114
14241
  };
14115
14242
  }
14116
14243
  function ParseBlobTag(blobTagInXML) {
14117
14244
  return {
14118
14245
  key: blobTagInXML["Key"],
14119
- value: blobTagInXML["Value"]
14246
+ value: blobTagInXML["Value"],
14120
14247
  };
14121
14248
  }
14122
14249
  function ParseBlobTags(blobTagsInXML) {
@@ -14190,9 +14317,16 @@ class StorageBrowserPolicy extends coreHttp.BaseRequestPolicy {
14190
14317
  * @param request -
14191
14318
  */
14192
14319
  async sendRequest(request) {
14193
- {
14320
+ if (coreHttp.isNode) {
14194
14321
  return this._nextPolicy.sendRequest(request);
14195
14322
  }
14323
+ if (request.method.toUpperCase() === "GET" || request.method.toUpperCase() === "HEAD") {
14324
+ request.url = setURLParameter(request.url, URLConstants.Parameters.FORCE_BROWSER_NO_CACHE, new Date().getTime().toString());
14325
+ }
14326
+ request.headers.remove(HeaderConstants.COOKIE);
14327
+ // According to XHR standards, content-length should be fully controlled by browsers
14328
+ request.headers.remove(HeaderConstants.CONTENT_LENGTH);
14329
+ return this._nextPolicy.sendRequest(request);
14196
14330
  }
14197
14331
  }
14198
14332
 
@@ -14213,6 +14347,10 @@ class StorageBrowserPolicyFactory {
14213
14347
  }
14214
14348
 
14215
14349
  // Copyright (c) Microsoft Corporation.
14350
+ /**
14351
+ * RetryPolicy types.
14352
+ */
14353
+ exports.StorageRetryPolicyType = void 0;
14216
14354
  (function (StorageRetryPolicyType) {
14217
14355
  /**
14218
14356
  * Exponential retry. Retry time delay grows exponentially.
@@ -14230,7 +14368,7 @@ const DEFAULT_RETRY_OPTIONS = {
14230
14368
  retryDelayInMs: 4 * 1000,
14231
14369
  retryPolicyType: exports.StorageRetryPolicyType.EXPONENTIAL,
14232
14370
  secondaryHost: "",
14233
- tryTimeoutInMs: undefined // Use server side default timeout strategy
14371
+ tryTimeoutInMs: undefined, // Use server side default timeout strategy
14234
14372
  };
14235
14373
  const RETRY_ABORT_ERROR = new abortController.AbortError("The operation was aborted.");
14236
14374
  /**
@@ -14267,7 +14405,7 @@ class StorageRetryPolicy extends coreHttp.BaseRequestPolicy {
14267
14405
  : DEFAULT_RETRY_OPTIONS.maxRetryDelayInMs,
14268
14406
  secondaryHost: retryOptions.secondaryHost
14269
14407
  ? retryOptions.secondaryHost
14270
- : DEFAULT_RETRY_OPTIONS.secondaryHost
14408
+ : DEFAULT_RETRY_OPTIONS.secondaryHost,
14271
14409
  };
14272
14410
  }
14273
14411
  /**
@@ -14344,7 +14482,7 @@ class StorageRetryPolicy extends coreHttp.BaseRequestPolicy {
14344
14482
  "ENOTFOUND",
14345
14483
  "TIMEOUT",
14346
14484
  "EPIPE",
14347
- "REQUEST_SEND_ERROR" // For default xhr based http client provided in ms-rest-js
14485
+ "REQUEST_SEND_ERROR", // For default xhr based http client provided in ms-rest-js
14348
14486
  ];
14349
14487
  if (err) {
14350
14488
  for (const retriableError of retriableErrors) {
@@ -14530,7 +14668,7 @@ class TelemetryPolicy extends coreHttp.BaseRequestPolicy {
14530
14668
  * @param request -
14531
14669
  */
14532
14670
  async sendRequest(request) {
14533
- {
14671
+ if (coreHttp.isNode) {
14534
14672
  if (!request.headers) {
14535
14673
  request.headers = new coreHttp.HttpHeaders();
14536
14674
  }
@@ -14553,7 +14691,7 @@ class TelemetryPolicyFactory {
14553
14691
  */
14554
14692
  constructor(telemetry) {
14555
14693
  const userAgentInfo = [];
14556
- {
14694
+ if (coreHttp.isNode) {
14557
14695
  if (telemetry) {
14558
14696
  const telemetryString = telemetry.userAgentPrefix || "";
14559
14697
  if (telemetryString.length > 0 && userAgentInfo.indexOf(telemetryString) === -1) {
@@ -14566,7 +14704,7 @@ class TelemetryPolicyFactory {
14566
14704
  userAgentInfo.push(libInfo);
14567
14705
  }
14568
14706
  // e.g. (NODE-VERSION 4.9.1; Windows_NT 10.0.16299)
14569
- const runtimeInfo = `(NODE-VERSION ${process.version}; ${os.type()} ${os.release()})`;
14707
+ const runtimeInfo = `(NODE-VERSION ${process.version}; ${os__namespace.type()} ${os__namespace.release()})`;
14570
14708
  if (userAgentInfo.indexOf(runtimeInfo) === -1) {
14571
14709
  userAgentInfo.push(runtimeInfo);
14572
14710
  }
@@ -14635,7 +14773,7 @@ class Pipeline {
14635
14773
  toServiceClientOptions() {
14636
14774
  return {
14637
14775
  httpClient: this.options.httpClient,
14638
- requestPolicyFactories: this.factories
14776
+ requestPolicyFactories: this.factories,
14639
14777
  };
14640
14778
  }
14641
14779
  }
@@ -14668,10 +14806,10 @@ function newPipeline(credential, pipelineOptions = {}) {
14668
14806
  coreHttp.logPolicy({
14669
14807
  logger: logger.info,
14670
14808
  allowedHeaderNames: StorageBlobLoggingAllowedHeaderNames,
14671
- allowedQueryParameters: StorageBlobLoggingAllowedQueryParameters
14672
- })
14809
+ allowedQueryParameters: StorageBlobLoggingAllowedQueryParameters,
14810
+ }),
14673
14811
  ];
14674
- {
14812
+ if (coreHttp.isNode) {
14675
14813
  // policies only available in Node.js runtime, not in browsers
14676
14814
  factories.push(coreHttp.proxyPolicy(pipelineOptions.proxyOptions));
14677
14815
  factories.push(coreHttp.disableResponseDecompressionPolicy());
@@ -14719,7 +14857,7 @@ class StorageSharedKeyCredentialPolicy extends CredentialPolicy {
14719
14857
  this.getHeaderValueToSign(request, HeaderConstants.IF_MATCH),
14720
14858
  this.getHeaderValueToSign(request, HeaderConstants.IF_NONE_MATCH),
14721
14859
  this.getHeaderValueToSign(request, HeaderConstants.IF_UNMODIFIED_SINCE),
14722
- this.getHeaderValueToSign(request, HeaderConstants.RANGE)
14860
+ this.getHeaderValueToSign(request, HeaderConstants.RANGE),
14723
14861
  ].join("\n") +
14724
14862
  "\n" +
14725
14863
  this.getCanonicalizedHeadersString(request) +
@@ -14848,9 +14986,7 @@ class StorageSharedKeyCredential extends Credential {
14848
14986
  * @param stringToSign -
14849
14987
  */
14850
14988
  computeHMACSHA256(stringToSign) {
14851
- return crypto.createHmac("sha256", this.accountKey)
14852
- .update(stringToSign, "utf8")
14853
- .digest("base64");
14989
+ return crypto.createHmac("sha256", this.accountKey).update(stringToSign, "utf8").digest("base64");
14854
14990
  }
14855
14991
  }
14856
14992
 
@@ -14862,8 +14998,8 @@ class StorageSharedKeyCredential extends Credential {
14862
14998
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14863
14999
  */
14864
15000
  const packageName = "azure-storage-blob";
14865
- const packageVersion = "12.9.0-beta.2";
14866
- class StorageClientContext extends coreHttp.ServiceClient {
15001
+ const packageVersion = "12.9.0-beta.3";
15002
+ class StorageClientContext extends coreHttp__namespace.ServiceClient {
14867
15003
  /**
14868
15004
  * Initializes a new instance of the StorageClientContext class.
14869
15005
  * @param url The URL of the service account, container, or blob that is the target of the desired
@@ -14879,7 +15015,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
14879
15015
  options = {};
14880
15016
  }
14881
15017
  if (!options.userAgent) {
14882
- const defaultUserAgent = coreHttp.getDefaultUserAgentValue();
15018
+ const defaultUserAgent = coreHttp__namespace.getDefaultUserAgentValue();
14883
15019
  options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
14884
15020
  }
14885
15021
  super(undefined, options);
@@ -14888,7 +15024,7 @@ class StorageClientContext extends coreHttp.ServiceClient {
14888
15024
  // Parameter assignments
14889
15025
  this.url = url;
14890
15026
  // Assigning values to Constant parameters
14891
- this.version = options.version || "2021-02-12";
15027
+ this.version = options.version || "2021-04-10";
14892
15028
  }
14893
15029
  }
14894
15030
 
@@ -14935,7 +15071,7 @@ class StorageClient {
14935
15071
  */
14936
15072
  const createSpan = coreTracing.createSpanFunction({
14937
15073
  packagePrefix: "Azure.Storage.Blob",
14938
- namespace: "Microsoft.Storage"
15074
+ namespace: "Microsoft.Storage",
14939
15075
  });
14940
15076
  /**
14941
15077
  * @internal
@@ -14949,7 +15085,7 @@ function convertTracingToRequestOptionsBase(options) {
14949
15085
  return {
14950
15086
  // By passing spanOptions if they exist at runtime, we're backwards compatible with @azure/core-tracing@preview.13 and earlier.
14951
15087
  spanOptions: (_a = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _a === void 0 ? void 0 : _a.spanOptions,
14952
- tracingContext: (_b = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _b === void 0 ? void 0 : _b.tracingContext
15088
+ tracingContext: (_b = options === null || options === void 0 ? void 0 : options.tracingOptions) === null || _b === void 0 ? void 0 : _b.tracingContext,
14953
15089
  };
14954
15090
  }
14955
15091
 
@@ -15207,6 +15343,10 @@ class ContainerSASPermissions {
15207
15343
  * Specifies that Permanent Delete is permitted.
15208
15344
  */
15209
15345
  this.permanentDelete = false;
15346
+ /**
15347
+ * Specifies that Filter Blobs by Tags is permitted.
15348
+ */
15349
+ this.filterByTags = false;
15210
15350
  }
15211
15351
  /**
15212
15352
  * Creates an {@link ContainerSASPermissions} from the specified permissions string. This method will throw an
@@ -15254,6 +15394,9 @@ class ContainerSASPermissions {
15254
15394
  case "y":
15255
15395
  containerSASPermissions.permanentDelete = true;
15256
15396
  break;
15397
+ case "f":
15398
+ containerSASPermissions.filterByTags = true;
15399
+ break;
15257
15400
  default:
15258
15401
  throw new RangeError(`Invalid permission ${char}`);
15259
15402
  }
@@ -15304,6 +15447,9 @@ class ContainerSASPermissions {
15304
15447
  if (permissionLike.permanentDelete) {
15305
15448
  containerSASPermissions.permanentDelete = true;
15306
15449
  }
15450
+ if (permissionLike.filterByTags) {
15451
+ containerSASPermissions.filterByTags = true;
15452
+ }
15307
15453
  return containerSASPermissions;
15308
15454
  }
15309
15455
  /**
@@ -15352,6 +15498,9 @@ class ContainerSASPermissions {
15352
15498
  if (this.permanentDelete) {
15353
15499
  permissions.push("y");
15354
15500
  }
15501
+ if (this.filterByTags) {
15502
+ permissions.push("f");
15503
+ }
15355
15504
  return permissions.join("");
15356
15505
  }
15357
15506
  }
@@ -15381,9 +15530,7 @@ class UserDelegationKeyCredential {
15381
15530
  */
15382
15531
  computeHMACSHA256(stringToSign) {
15383
15532
  // console.log(`stringToSign: ${JSON.stringify(stringToSign)}`);
15384
- return crypto.createHmac("sha256", this.key)
15385
- .update(stringToSign, "utf8")
15386
- .digest("base64");
15533
+ return crypto.createHmac("sha256", this.key).update(stringToSign, "utf8").digest("base64");
15387
15534
  }
15388
15535
  }
15389
15536
 
@@ -15401,6 +15548,10 @@ function ipRangeToString(ipRange) {
15401
15548
  }
15402
15549
 
15403
15550
  // Copyright (c) Microsoft Corporation.
15551
+ /**
15552
+ * Protocols for generated SAS.
15553
+ */
15554
+ exports.SASProtocol = void 0;
15404
15555
  (function (SASProtocol) {
15405
15556
  /**
15406
15557
  * Protocol that allows HTTPS only
@@ -15489,7 +15640,7 @@ class SASQueryParameters {
15489
15640
  if (this.ipRangeInner) {
15490
15641
  return {
15491
15642
  end: this.ipRangeInner.end,
15492
- start: this.ipRangeInner.start
15643
+ start: this.ipRangeInner.start,
15493
15644
  };
15494
15645
  }
15495
15646
  return undefined;
@@ -15524,7 +15675,7 @@ class SASQueryParameters {
15524
15675
  "rscl",
15525
15676
  "rsct",
15526
15677
  "saoid",
15527
- "scid"
15678
+ "scid",
15528
15679
  ];
15529
15680
  const queries = [];
15530
15681
  for (const param of params) {
@@ -15730,7 +15881,7 @@ function generateBlobSASQueryParameters20150405(blobSASSignatureValues, sharedKe
15730
15881
  blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : "",
15731
15882
  blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : "",
15732
15883
  blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : "",
15733
- blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : ""
15884
+ blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : "",
15734
15885
  ].join("\n");
15735
15886
  const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
15736
15887
  return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType);
@@ -15799,7 +15950,7 @@ function generateBlobSASQueryParameters20181109(blobSASSignatureValues, sharedKe
15799
15950
  blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : "",
15800
15951
  blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : "",
15801
15952
  blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : "",
15802
- blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : ""
15953
+ blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : "",
15803
15954
  ].join("\n");
15804
15955
  const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
15805
15956
  return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType);
@@ -15869,7 +16020,7 @@ function generateBlobSASQueryParameters20201206(blobSASSignatureValues, sharedKe
15869
16020
  blobSASSignatureValues.contentDisposition ? blobSASSignatureValues.contentDisposition : "",
15870
16021
  blobSASSignatureValues.contentEncoding ? blobSASSignatureValues.contentEncoding : "",
15871
16022
  blobSASSignatureValues.contentLanguage ? blobSASSignatureValues.contentLanguage : "",
15872
- blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : ""
16023
+ blobSASSignatureValues.contentType ? blobSASSignatureValues.contentType : "",
15873
16024
  ].join("\n");
15874
16025
  const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
15875
16026
  return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, undefined, undefined, undefined, blobSASSignatureValues.encryptionScope);
@@ -15945,7 +16096,7 @@ function generateBlobSASQueryParametersUDK20181109(blobSASSignatureValues, userD
15945
16096
  blobSASSignatureValues.contentDisposition,
15946
16097
  blobSASSignatureValues.contentEncoding,
15947
16098
  blobSASSignatureValues.contentLanguage,
15948
- blobSASSignatureValues.contentType
16099
+ blobSASSignatureValues.contentType,
15949
16100
  ].join("\n");
15950
16101
  const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);
15951
16102
  return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey);
@@ -16024,7 +16175,7 @@ function generateBlobSASQueryParametersUDK20200210(blobSASSignatureValues, userD
16024
16175
  blobSASSignatureValues.contentDisposition,
16025
16176
  blobSASSignatureValues.contentEncoding,
16026
16177
  blobSASSignatureValues.contentLanguage,
16027
- blobSASSignatureValues.contentType
16178
+ blobSASSignatureValues.contentType,
16028
16179
  ].join("\n");
16029
16180
  const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);
16030
16181
  return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey, blobSASSignatureValues.preauthorizedAgentObjectId, blobSASSignatureValues.correlationId);
@@ -16104,7 +16255,7 @@ function generateBlobSASQueryParametersUDK20201206(blobSASSignatureValues, userD
16104
16255
  blobSASSignatureValues.contentDisposition,
16105
16256
  blobSASSignatureValues.contentEncoding,
16106
16257
  blobSASSignatureValues.contentLanguage,
16107
- blobSASSignatureValues.contentType
16258
+ blobSASSignatureValues.contentType,
16108
16259
  ].join("\n");
16109
16260
  const signature = userDelegationKeyCredential.computeHMACSHA256(stringToSign);
16110
16261
  return new SASQueryParameters(blobSASSignatureValues.version, signature, verifiedPermissions, undefined, undefined, blobSASSignatureValues.protocol, blobSASSignatureValues.startsOn, blobSASSignatureValues.expiresOn, blobSASSignatureValues.ipRange, blobSASSignatureValues.identifier, resource, blobSASSignatureValues.cacheControl, blobSASSignatureValues.contentDisposition, blobSASSignatureValues.contentEncoding, blobSASSignatureValues.contentLanguage, blobSASSignatureValues.contentType, userDelegationKeyCredential.userDelegationKey, blobSASSignatureValues.preauthorizedAgentObjectId, blobSASSignatureValues.correlationId, blobSASSignatureValues.encryptionScope);
@@ -16157,6 +16308,11 @@ function SASSignatureValuesSanityCheckAndAutofill(blobSASSignatureValues) {
16157
16308
  (blobSASSignatureValues.permissions.move || blobSASSignatureValues.permissions.execute)) {
16158
16309
  throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");
16159
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
+ }
16160
16316
  if (version < "2020-02-10" &&
16161
16317
  (blobSASSignatureValues.preauthorizedAgentObjectId || blobSASSignatureValues.correlationId)) {
16162
16318
  throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");
@@ -16237,7 +16393,7 @@ class BlobLeaseClient {
16237
16393
  catch (e) {
16238
16394
  span.setStatus({
16239
16395
  code: coreTracing.SpanStatusCode.ERROR,
16240
- message: e.message
16396
+ message: e.message,
16241
16397
  });
16242
16398
  throw e;
16243
16399
  }
@@ -16272,7 +16428,7 @@ class BlobLeaseClient {
16272
16428
  catch (e) {
16273
16429
  span.setStatus({
16274
16430
  code: coreTracing.SpanStatusCode.ERROR,
16275
- message: e.message
16431
+ message: e.message,
16276
16432
  });
16277
16433
  throw e;
16278
16434
  }
@@ -16305,7 +16461,7 @@ class BlobLeaseClient {
16305
16461
  catch (e) {
16306
16462
  span.setStatus({
16307
16463
  code: coreTracing.SpanStatusCode.ERROR,
16308
- message: e.message
16464
+ message: e.message,
16309
16465
  });
16310
16466
  throw e;
16311
16467
  }
@@ -16337,7 +16493,7 @@ class BlobLeaseClient {
16337
16493
  catch (e) {
16338
16494
  span.setStatus({
16339
16495
  code: coreTracing.SpanStatusCode.ERROR,
16340
- message: e.message
16496
+ message: e.message,
16341
16497
  });
16342
16498
  throw e;
16343
16499
  }
@@ -16372,7 +16528,7 @@ class BlobLeaseClient {
16372
16528
  catch (e) {
16373
16529
  span.setStatus({
16374
16530
  code: coreTracing.SpanStatusCode.ERROR,
16375
- message: e.message
16531
+ message: e.message,
16376
16532
  });
16377
16533
  throw e;
16378
16534
  }
@@ -16452,8 +16608,7 @@ class RetriableReadableStream extends stream.Readable {
16452
16608
  });
16453
16609
  }
16454
16610
  else {
16455
- this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this
16456
- .offset - 1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`));
16611
+ this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset - 1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`));
16457
16612
  }
16458
16613
  }
16459
16614
  else {
@@ -17298,7 +17453,7 @@ class AvroReader {
17298
17453
  }
17299
17454
  async initialize(options = {}) {
17300
17455
  const header = await AvroParser.readFixedBytes(this._headerStream, AVRO_INIT_BYTES.length, {
17301
- abortSignal: options.abortSignal
17456
+ abortSignal: options.abortSignal,
17302
17457
  });
17303
17458
  if (!arraysEqual(header, AVRO_INIT_BYTES)) {
17304
17459
  throw new Error("Stream is not an Avro file.");
@@ -17306,7 +17461,7 @@ class AvroReader {
17306
17461
  // File metadata is written as if defined by the following map schema:
17307
17462
  // { "type": "map", "values": "bytes"}
17308
17463
  this._metadata = await AvroParser.readMap(this._headerStream, AvroParser.readString, {
17309
- abortSignal: options.abortSignal
17464
+ abortSignal: options.abortSignal,
17310
17465
  });
17311
17466
  // Validate codec
17312
17467
  const codec = this._metadata[AVRO_CODEC_KEY];
@@ -17315,7 +17470,7 @@ class AvroReader {
17315
17470
  }
17316
17471
  // The 16-byte, randomly-generated sync marker for this file.
17317
17472
  this._syncMarker = await AvroParser.readFixedBytes(this._headerStream, AVRO_SYNC_MARKER_SIZE, {
17318
- abortSignal: options.abortSignal
17473
+ abortSignal: options.abortSignal,
17319
17474
  });
17320
17475
  // Parse the schema
17321
17476
  const schema = JSON.parse(this._metadata[AVRO_SCHEMA_KEY]);
@@ -17324,7 +17479,7 @@ class AvroReader {
17324
17479
  this._blockOffset = this._initialBlockOffset + this._dataStream.position;
17325
17480
  }
17326
17481
  this._itemsRemainingInBlock = await AvroParser.readLong(this._dataStream, {
17327
- abortSignal: options.abortSignal
17482
+ abortSignal: options.abortSignal,
17328
17483
  });
17329
17484
  // skip block length
17330
17485
  await AvroParser.readLong(this._dataStream, { abortSignal: options.abortSignal });
@@ -17346,13 +17501,13 @@ class AvroReader {
17346
17501
  }
17347
17502
  while (this.hasNext()) {
17348
17503
  const result = yield tslib.__await(this._itemType.read(this._dataStream, {
17349
- abortSignal: options.abortSignal
17504
+ abortSignal: options.abortSignal,
17350
17505
  }));
17351
17506
  this._itemsRemainingInBlock--;
17352
17507
  this._objectIndex++;
17353
17508
  if (this._itemsRemainingInBlock == 0) {
17354
17509
  const marker = yield tslib.__await(AvroParser.readFixedBytes(this._dataStream, AVRO_SYNC_MARKER_SIZE, {
17355
- abortSignal: options.abortSignal
17510
+ abortSignal: options.abortSignal,
17356
17511
  }));
17357
17512
  this._blockOffset = this._initialBlockOffset + this._dataStream.position;
17358
17513
  this._objectIndex = 0;
@@ -17361,7 +17516,7 @@ class AvroReader {
17361
17516
  }
17362
17517
  try {
17363
17518
  this._itemsRemainingInBlock = yield tslib.__await(AvroParser.readLong(this._dataStream, {
17364
- abortSignal: options.abortSignal
17519
+ abortSignal: options.abortSignal,
17365
17520
  }));
17366
17521
  }
17367
17522
  catch (err) {
@@ -17560,7 +17715,7 @@ class BlobQuickQueryStream extends stream.Readable {
17560
17715
  position,
17561
17716
  name,
17562
17717
  isFatal: fatal,
17563
- description
17718
+ description,
17564
17719
  });
17565
17720
  }
17566
17721
  break;
@@ -17936,6 +18091,11 @@ class BlobQueryResponse {
17936
18091
  }
17937
18092
 
17938
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;
17939
18099
  (function (BlockBlobTier) {
17940
18100
  /**
17941
18101
  * Optimized for storing data that is accessed frequently.
@@ -17951,6 +18111,12 @@ class BlobQueryResponse {
17951
18111
  */
17952
18112
  BlockBlobTier["Archive"] = "Archive";
17953
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;
17954
18120
  (function (PremiumPageBlobTier) {
17955
18121
  /**
17956
18122
  * P4 Tier.
@@ -18023,16 +18189,16 @@ function ensureCpkIfSpecified(cpk, isHttps) {
18023
18189
  function rangeResponseFromModel(response) {
18024
18190
  const pageRange = (response._response.parsedBody.pageRange || []).map((x) => ({
18025
18191
  offset: x.start,
18026
- count: x.end - x.start
18192
+ count: x.end - x.start,
18027
18193
  }));
18028
18194
  const clearRange = (response._response.parsedBody.clearRange || []).map((x) => ({
18029
18195
  offset: x.start,
18030
- count: x.end - x.start
18196
+ count: x.end - x.start,
18031
18197
  }));
18032
18198
  return Object.assign(Object.assign({}, response), { pageRange,
18033
18199
  clearRange, _response: Object.assign(Object.assign({}, response._response), { parsedBody: {
18034
18200
  pageRange,
18035
- clearRange
18201
+ clearRange,
18036
18202
  } }) });
18037
18203
  }
18038
18204
 
@@ -18045,7 +18211,7 @@ function rangeResponseFromModel(response) {
18045
18211
  */
18046
18212
  class BlobBeginCopyFromUrlPoller extends coreLro.Poller {
18047
18213
  constructor(options) {
18048
- const { blobClient, copySource, intervalInMs = 15000, onProgress, resumeFrom, startCopyFromURLOptions } = options;
18214
+ const { blobClient, copySource, intervalInMs = 15000, onProgress, resumeFrom, startCopyFromURLOptions, } = options;
18049
18215
  let state;
18050
18216
  if (resumeFrom) {
18051
18217
  state = JSON.parse(resumeFrom).state;
@@ -18081,7 +18247,7 @@ const cancel = async function cancel(options = {}) {
18081
18247
  }
18082
18248
  // if abortCopyFromURL throws, it will bubble up to user's poller.cancelOperation call
18083
18249
  await state.blobClient.abortCopyFromURL(copyId, {
18084
- abortSignal: options.abortSignal
18250
+ abortSignal: options.abortSignal,
18085
18251
  });
18086
18252
  state.isCancelled = true;
18087
18253
  return makeBlobBeginCopyFromURLPollOperation(state);
@@ -18159,7 +18325,7 @@ function makeBlobBeginCopyFromURLPollOperation(state) {
18159
18325
  state: Object.assign({}, state),
18160
18326
  cancel,
18161
18327
  toString,
18162
- update
18328
+ update,
18163
18329
  };
18164
18330
  }
18165
18331
 
@@ -18801,7 +18967,7 @@ async function streamToBuffer2(stream, buffer, encoding) {
18801
18967
  */
18802
18968
  async function readStreamToLocalFile(rs, file) {
18803
18969
  return new Promise((resolve, reject) => {
18804
- const ws = fs.createWriteStream(file);
18970
+ const ws = fs__namespace.createWriteStream(file);
18805
18971
  rs.on("error", (err) => {
18806
18972
  reject(err);
18807
18973
  });
@@ -18817,8 +18983,8 @@ async function readStreamToLocalFile(rs, file) {
18817
18983
  *
18818
18984
  * Promisified version of fs.stat().
18819
18985
  */
18820
- const fsStat = util.promisify(fs.stat);
18821
- const fsCreateReadStream = fs.createReadStream;
18986
+ const fsStat = util__namespace.promisify(fs__namespace.stat);
18987
+ const fsCreateReadStream = fs__namespace.createReadStream;
18822
18988
 
18823
18989
  /**
18824
18990
  * A BlobClient represents a URL to an Azure Storage blob; the blob may be a block blob,
@@ -18861,12 +19027,17 @@ class BlobClient extends StorageClient {
18861
19027
  const blobName = blobNameOrOptions;
18862
19028
  const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
18863
19029
  if (extractedCreds.kind === "AccountConnString") {
18864
- {
19030
+ if (coreHttp.isNode) {
18865
19031
  const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
18866
19032
  url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));
18867
- options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
19033
+ if (!options.proxyOptions) {
19034
+ options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
19035
+ }
18868
19036
  pipeline = newPipeline(sharedKeyCredential, options);
18869
19037
  }
19038
+ else {
19039
+ throw new Error("Account connection string is only supported in Node.js environment");
19040
+ }
18870
19041
  }
18871
19042
  else if (extractedCreds.kind === "SASConnString") {
18872
19043
  url =
@@ -18883,10 +19054,8 @@ class BlobClient extends StorageClient {
18883
19054
  throw new Error("Expecting non-empty strings for containerName and blobName parameters");
18884
19055
  }
18885
19056
  super(url, pipeline);
18886
- ({
18887
- blobName: this._name,
18888
- containerName: this._containerName
18889
- } = this.getBlobAndContainerNamesFromUrl());
19057
+ ({ blobName: this._name, containerName: this._containerName } =
19058
+ this.getBlobAndContainerNamesFromUrl());
18890
19059
  this.blobContext = new Blob$1(this.storageClientContext);
18891
19060
  this._snapshot = getURLParameter(this.url, URLConstants.Parameters.SNAPSHOT);
18892
19061
  this._versionId = getURLParameter(this.url, URLConstants.Parameters.VERSIONID);
@@ -19011,11 +19180,11 @@ class BlobClient extends StorageClient {
19011
19180
  const { span, updatedOptions } = createSpan("BlobClient-download", options);
19012
19181
  try {
19013
19182
  const res = await this.blobContext.download(Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), requestOptions: {
19014
- onDownloadProgress: coreHttp.isNode ? undefined : options.onProgress // for Node.js, progress is reported by RetriableReadableStream
19183
+ onDownloadProgress: coreHttp.isNode ? undefined : options.onProgress, // for Node.js, progress is reported by RetriableReadableStream
19015
19184
  }, range: offset === 0 && !count ? undefined : rangeToString({ offset, count }), rangeGetContentMD5: options.rangeGetContentMD5, rangeGetContentCRC64: options.rangeGetContentCrc64, snapshot: options.snapshot, cpkInfo: options.customerProvidedKey }, convertTracingToRequestOptionsBase(updatedOptions)));
19016
19185
  const wrappedRes = Object.assign(Object.assign({}, res), { _response: res._response, objectReplicationDestinationPolicyId: res.objectReplicationPolicyId, objectReplicationSourceProperties: parseObjectReplicationRecord(res.objectReplicationRules) });
19017
19186
  // Return browser response immediately
19018
- if (false) {
19187
+ if (!coreHttp.isNode) {
19019
19188
  return wrappedRes;
19020
19189
  }
19021
19190
  // We support retrying when download stream unexpected ends in Node.js runtime
@@ -19042,16 +19211,16 @@ class BlobClient extends StorageClient {
19042
19211
  ifModifiedSince: options.conditions.ifModifiedSince,
19043
19212
  ifNoneMatch: options.conditions.ifNoneMatch,
19044
19213
  ifUnmodifiedSince: options.conditions.ifUnmodifiedSince,
19045
- ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions
19214
+ ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions,
19046
19215
  },
19047
19216
  range: rangeToString({
19048
19217
  count: offset + res.contentLength - start,
19049
- offset: start
19218
+ offset: start,
19050
19219
  }),
19051
19220
  rangeGetContentMD5: options.rangeGetContentMD5,
19052
19221
  rangeGetContentCRC64: options.rangeGetContentCrc64,
19053
19222
  snapshot: options.snapshot,
19054
- cpkInfo: options.customerProvidedKey
19223
+ cpkInfo: options.customerProvidedKey,
19055
19224
  };
19056
19225
  // Debug purpose only
19057
19226
  // console.log(
@@ -19062,13 +19231,13 @@ class BlobClient extends StorageClient {
19062
19231
  return (await this.blobContext.download(Object.assign({ abortSignal: options.abortSignal }, updatedDownloadOptions))).readableStreamBody;
19063
19232
  }, offset, res.contentLength, {
19064
19233
  maxRetryRequests: options.maxRetryRequests,
19065
- onProgress: options.onProgress
19234
+ onProgress: options.onProgress,
19066
19235
  });
19067
19236
  }
19068
19237
  catch (e) {
19069
19238
  span.setStatus({
19070
19239
  code: coreTracing.SpanStatusCode.ERROR,
19071
- message: e.message
19240
+ message: e.message,
19072
19241
  });
19073
19242
  throw e;
19074
19243
  }
@@ -19093,7 +19262,7 @@ class BlobClient extends StorageClient {
19093
19262
  abortSignal: options.abortSignal,
19094
19263
  customerProvidedKey: options.customerProvidedKey,
19095
19264
  conditions: options.conditions,
19096
- tracingOptions: updatedOptions.tracingOptions
19265
+ tracingOptions: updatedOptions.tracingOptions,
19097
19266
  });
19098
19267
  return true;
19099
19268
  }
@@ -19101,13 +19270,13 @@ class BlobClient extends StorageClient {
19101
19270
  if (e.statusCode === 404) {
19102
19271
  span.setStatus({
19103
19272
  code: coreTracing.SpanStatusCode.ERROR,
19104
- message: "Expected exception when checking blob existence"
19273
+ message: "Expected exception when checking blob existence",
19105
19274
  });
19106
19275
  return false;
19107
19276
  }
19108
19277
  span.setStatus({
19109
19278
  code: coreTracing.SpanStatusCode.ERROR,
19110
- message: e.message
19279
+ message: e.message,
19111
19280
  });
19112
19281
  throw e;
19113
19282
  }
@@ -19139,7 +19308,7 @@ class BlobClient extends StorageClient {
19139
19308
  catch (e) {
19140
19309
  span.setStatus({
19141
19310
  code: coreTracing.SpanStatusCode.ERROR,
19142
- message: e.message
19311
+ message: e.message,
19143
19312
  });
19144
19313
  throw e;
19145
19314
  }
@@ -19166,7 +19335,7 @@ class BlobClient extends StorageClient {
19166
19335
  catch (e) {
19167
19336
  span.setStatus({
19168
19337
  code: coreTracing.SpanStatusCode.ERROR,
19169
- message: e.message
19338
+ message: e.message,
19170
19339
  });
19171
19340
  throw e;
19172
19341
  }
@@ -19188,20 +19357,19 @@ class BlobClient extends StorageClient {
19188
19357
  const { span, updatedOptions } = createSpan("BlobClient-deleteIfExists", options);
19189
19358
  try {
19190
19359
  const res = await this.delete(updatedOptions);
19191
- return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response // _response is made non-enumerable
19192
- });
19360
+ return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });
19193
19361
  }
19194
19362
  catch (e) {
19195
19363
  if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "BlobNotFound") {
19196
19364
  span.setStatus({
19197
19365
  code: coreTracing.SpanStatusCode.ERROR,
19198
- message: "Expected exception when deleting a blob or snapshot only if it exists."
19366
+ message: "Expected exception when deleting a blob or snapshot only if it exists.",
19199
19367
  });
19200
19368
  return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
19201
19369
  }
19202
19370
  span.setStatus({
19203
19371
  code: coreTracing.SpanStatusCode.ERROR,
19204
- message: e.message
19372
+ message: e.message,
19205
19373
  });
19206
19374
  throw e;
19207
19375
  }
@@ -19225,7 +19393,7 @@ class BlobClient extends StorageClient {
19225
19393
  catch (e) {
19226
19394
  span.setStatus({
19227
19395
  code: coreTracing.SpanStatusCode.ERROR,
19228
- message: e.message
19396
+ message: e.message,
19229
19397
  });
19230
19398
  throw e;
19231
19399
  }
@@ -19259,7 +19427,7 @@ class BlobClient extends StorageClient {
19259
19427
  catch (e) {
19260
19428
  span.setStatus({
19261
19429
  code: coreTracing.SpanStatusCode.ERROR,
19262
- message: e.message
19430
+ message: e.message,
19263
19431
  });
19264
19432
  throw e;
19265
19433
  }
@@ -19289,7 +19457,7 @@ class BlobClient extends StorageClient {
19289
19457
  catch (e) {
19290
19458
  span.setStatus({
19291
19459
  code: coreTracing.SpanStatusCode.ERROR,
19292
- message: e.message
19460
+ message: e.message,
19293
19461
  });
19294
19462
  throw e;
19295
19463
  }
@@ -19315,7 +19483,7 @@ class BlobClient extends StorageClient {
19315
19483
  catch (e) {
19316
19484
  span.setStatus({
19317
19485
  code: coreTracing.SpanStatusCode.ERROR,
19318
- message: e.message
19486
+ message: e.message,
19319
19487
  });
19320
19488
  throw e;
19321
19489
  }
@@ -19339,7 +19507,7 @@ class BlobClient extends StorageClient {
19339
19507
  catch (e) {
19340
19508
  span.setStatus({
19341
19509
  code: coreTracing.SpanStatusCode.ERROR,
19342
- message: e.message
19510
+ message: e.message,
19343
19511
  });
19344
19512
  throw e;
19345
19513
  }
@@ -19373,7 +19541,7 @@ class BlobClient extends StorageClient {
19373
19541
  catch (e) {
19374
19542
  span.setStatus({
19375
19543
  code: coreTracing.SpanStatusCode.ERROR,
19376
- message: e.message
19544
+ message: e.message,
19377
19545
  });
19378
19546
  throw e;
19379
19547
  }
@@ -19457,7 +19625,7 @@ class BlobClient extends StorageClient {
19457
19625
  const client = {
19458
19626
  abortCopyFromURL: (...args) => this.abortCopyFromURL(...args),
19459
19627
  getProperties: (...args) => this.getProperties(...args),
19460
- startCopyFromURL: (...args) => this.startCopyFromURL(...args)
19628
+ startCopyFromURL: (...args) => this.startCopyFromURL(...args),
19461
19629
  };
19462
19630
  const poller = new BlobBeginCopyFromUrlPoller({
19463
19631
  blobClient: client,
@@ -19465,7 +19633,7 @@ class BlobClient extends StorageClient {
19465
19633
  intervalInMs: options.intervalInMs,
19466
19634
  onProgress: options.onProgress,
19467
19635
  resumeFrom: options.resumeFrom,
19468
- startCopyFromURLOptions: options
19636
+ startCopyFromURLOptions: options,
19469
19637
  });
19470
19638
  // Trigger the startCopyFromURL call by calling poll.
19471
19639
  // Any errors from this method should be surfaced to the user.
@@ -19488,7 +19656,7 @@ class BlobClient extends StorageClient {
19488
19656
  catch (e) {
19489
19657
  span.setStatus({
19490
19658
  code: coreTracing.SpanStatusCode.ERROR,
19491
- message: e.message
19659
+ message: e.message,
19492
19660
  });
19493
19661
  throw e;
19494
19662
  }
@@ -19514,13 +19682,13 @@ class BlobClient extends StorageClient {
19514
19682
  sourceIfMatch: options.sourceConditions.ifMatch,
19515
19683
  sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,
19516
19684
  sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,
19517
- sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince
19685
+ sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,
19518
19686
  }, sourceContentMD5: options.sourceContentMD5, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), blobTagsString: toBlobTagsString(options.tags), immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));
19519
19687
  }
19520
19688
  catch (e) {
19521
19689
  span.setStatus({
19522
19690
  code: coreTracing.SpanStatusCode.ERROR,
19523
- message: e.message
19691
+ message: e.message,
19524
19692
  });
19525
19693
  throw e;
19526
19694
  }
@@ -19548,7 +19716,7 @@ class BlobClient extends StorageClient {
19548
19716
  catch (e) {
19549
19717
  span.setStatus({
19550
19718
  code: coreTracing.SpanStatusCode.ERROR,
19551
- message: e.message
19719
+ message: e.message,
19552
19720
  });
19553
19721
  throw e;
19554
19722
  }
@@ -19625,7 +19793,7 @@ class BlobClient extends StorageClient {
19625
19793
  conditions: options.conditions,
19626
19794
  maxRetryRequests: options.maxRetryRequestsPerBlock,
19627
19795
  customerProvidedKey: options.customerProvidedKey,
19628
- tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions))
19796
+ tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)),
19629
19797
  });
19630
19798
  const stream = response.readableStreamBody;
19631
19799
  await streamToBuffer(stream, buffer, off - offset, chunkEnd - offset);
@@ -19644,7 +19812,7 @@ class BlobClient extends StorageClient {
19644
19812
  catch (e) {
19645
19813
  span.setStatus({
19646
19814
  code: coreTracing.SpanStatusCode.ERROR,
19647
- message: e.message
19815
+ message: e.message,
19648
19816
  });
19649
19817
  throw e;
19650
19818
  }
@@ -19682,7 +19850,7 @@ class BlobClient extends StorageClient {
19682
19850
  catch (e) {
19683
19851
  span.setStatus({
19684
19852
  code: coreTracing.SpanStatusCode.ERROR,
19685
- message: e.message
19853
+ message: e.message,
19686
19854
  });
19687
19855
  throw e;
19688
19856
  }
@@ -19763,13 +19931,13 @@ class BlobClient extends StorageClient {
19763
19931
  sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,
19764
19932
  sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,
19765
19933
  sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,
19766
- sourceIfTags: options.sourceConditions.tagConditions
19934
+ sourceIfTags: options.sourceConditions.tagConditions,
19767
19935
  }, immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, rehydratePriority: options.rehydratePriority, tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags), sealBlob: options.sealBlob }, convertTracingToRequestOptionsBase(updatedOptions)));
19768
19936
  }
19769
19937
  catch (e) {
19770
19938
  span.setStatus({
19771
19939
  code: coreTracing.SpanStatusCode.ERROR,
19772
- message: e.message
19940
+ message: e.message,
19773
19941
  });
19774
19942
  throw e;
19775
19943
  }
@@ -19810,7 +19978,7 @@ class BlobClient extends StorageClient {
19810
19978
  catch (e) {
19811
19979
  span.setStatus({
19812
19980
  code: coreTracing.SpanStatusCode.ERROR,
19813
- message: e.message
19981
+ message: e.message,
19814
19982
  });
19815
19983
  throw e;
19816
19984
  }
@@ -19831,7 +19999,7 @@ class BlobClient extends StorageClient {
19831
19999
  catch (e) {
19832
20000
  span.setStatus({
19833
20001
  code: coreTracing.SpanStatusCode.ERROR,
19834
- message: e.message
20002
+ message: e.message,
19835
20003
  });
19836
20004
  throw e;
19837
20005
  }
@@ -19852,7 +20020,7 @@ class BlobClient extends StorageClient {
19852
20020
  catch (e) {
19853
20021
  span.setStatus({
19854
20022
  code: coreTracing.SpanStatusCode.ERROR,
19855
- message: e.message
20023
+ message: e.message,
19856
20024
  });
19857
20025
  throw e;
19858
20026
  }
@@ -19903,12 +20071,17 @@ class AppendBlobClient extends BlobClient {
19903
20071
  const blobName = blobNameOrOptions;
19904
20072
  const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
19905
20073
  if (extractedCreds.kind === "AccountConnString") {
19906
- {
20074
+ if (coreHttp.isNode) {
19907
20075
  const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
19908
20076
  url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));
19909
- options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
20077
+ if (!options.proxyOptions) {
20078
+ options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
20079
+ }
19910
20080
  pipeline = newPipeline(sharedKeyCredential, options);
19911
20081
  }
20082
+ else {
20083
+ throw new Error("Account connection string is only supported in Node.js environment");
20084
+ }
19912
20085
  }
19913
20086
  else if (extractedCreds.kind === "SASConnString") {
19914
20087
  url =
@@ -19963,7 +20136,7 @@ class AppendBlobClient extends BlobClient {
19963
20136
  catch (e) {
19964
20137
  span.setStatus({
19965
20138
  code: coreTracing.SpanStatusCode.ERROR,
19966
- message: e.message
20139
+ message: e.message,
19967
20140
  });
19968
20141
  throw e;
19969
20142
  }
@@ -19984,20 +20157,19 @@ class AppendBlobClient extends BlobClient {
19984
20157
  const conditions = { ifNoneMatch: ETagAny };
19985
20158
  try {
19986
20159
  const res = await this.create(Object.assign(Object.assign({}, updatedOptions), { conditions }));
19987
- return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response // _response is made non-enumerable
19988
- });
20160
+ return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });
19989
20161
  }
19990
20162
  catch (e) {
19991
20163
  if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "BlobAlreadyExists") {
19992
20164
  span.setStatus({
19993
20165
  code: coreTracing.SpanStatusCode.ERROR,
19994
- message: "Expected exception when creating a blob only if it does not already exist."
20166
+ message: "Expected exception when creating a blob only if it does not already exist.",
19995
20167
  });
19996
20168
  return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
19997
20169
  }
19998
20170
  span.setStatus({
19999
20171
  code: coreTracing.SpanStatusCode.ERROR,
20000
- message: e.message
20172
+ message: e.message,
20001
20173
  });
20002
20174
  throw e;
20003
20175
  }
@@ -20020,7 +20192,7 @@ class AppendBlobClient extends BlobClient {
20020
20192
  catch (e) {
20021
20193
  span.setStatus({
20022
20194
  code: coreTracing.SpanStatusCode.ERROR,
20023
- message: e.message
20195
+ message: e.message,
20024
20196
  });
20025
20197
  throw e;
20026
20198
  }
@@ -20059,13 +20231,13 @@ class AppendBlobClient extends BlobClient {
20059
20231
  try {
20060
20232
  ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
20061
20233
  return await this.appendBlobContext.appendBlock(contentLength, body, Object.assign({ abortSignal: options.abortSignal, appendPositionAccessConditions: options.conditions, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), requestOptions: {
20062
- onUploadProgress: options.onProgress
20234
+ onUploadProgress: options.onProgress,
20063
20235
  }, transactionalContentMD5: options.transactionalContentMD5, transactionalContentCrc64: options.transactionalContentCrc64, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));
20064
20236
  }
20065
20237
  catch (e) {
20066
20238
  span.setStatus({
20067
20239
  code: coreTracing.SpanStatusCode.ERROR,
20068
- message: e.message
20240
+ message: e.message,
20069
20241
  });
20070
20242
  throw e;
20071
20243
  }
@@ -20098,13 +20270,13 @@ class AppendBlobClient extends BlobClient {
20098
20270
  sourceIfMatch: options.sourceConditions.ifMatch,
20099
20271
  sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,
20100
20272
  sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,
20101
- sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince
20273
+ sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,
20102
20274
  }, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));
20103
20275
  }
20104
20276
  catch (e) {
20105
20277
  span.setStatus({
20106
20278
  code: coreTracing.SpanStatusCode.ERROR,
20107
- message: e.message
20279
+ message: e.message,
20108
20280
  });
20109
20281
  throw e;
20110
20282
  }
@@ -20155,12 +20327,17 @@ class BlockBlobClient extends BlobClient {
20155
20327
  const blobName = blobNameOrOptions;
20156
20328
  const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
20157
20329
  if (extractedCreds.kind === "AccountConnString") {
20158
- {
20330
+ if (coreHttp.isNode) {
20159
20331
  const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
20160
20332
  url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));
20161
- options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
20333
+ if (!options.proxyOptions) {
20334
+ options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
20335
+ }
20162
20336
  pipeline = newPipeline(sharedKeyCredential, options);
20163
20337
  }
20338
+ else {
20339
+ throw new Error("Account connection string is only supported in Node.js environment");
20340
+ }
20164
20341
  }
20165
20342
  else if (extractedCreds.kind === "SASConnString") {
20166
20343
  url =
@@ -20226,25 +20403,25 @@ class BlockBlobClient extends BlobClient {
20226
20403
  ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
20227
20404
  const { span, updatedOptions } = createSpan("BlockBlobClient-query", options);
20228
20405
  try {
20229
- if (false) {
20406
+ if (!coreHttp.isNode) {
20230
20407
  throw new Error("This operation currently is only supported in Node.js.");
20231
20408
  }
20232
20409
  const response = await this._blobContext.query(Object.assign({ abortSignal: options.abortSignal, queryRequest: {
20233
20410
  queryType: "SQL",
20234
20411
  expression: query,
20235
20412
  inputSerialization: toQuerySerialization(options.inputTextConfiguration),
20236
- outputSerialization: toQuerySerialization(options.outputTextConfiguration)
20413
+ outputSerialization: toQuerySerialization(options.outputTextConfiguration),
20237
20414
  }, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }) }, convertTracingToRequestOptionsBase(updatedOptions)));
20238
20415
  return new BlobQueryResponse(response, {
20239
20416
  abortSignal: options.abortSignal,
20240
20417
  onProgress: options.onProgress,
20241
- onError: options.onError
20418
+ onError: options.onError,
20242
20419
  });
20243
20420
  }
20244
20421
  catch (e) {
20245
20422
  span.setStatus({
20246
20423
  code: coreTracing.SpanStatusCode.ERROR,
20247
- message: e.message
20424
+ message: e.message,
20248
20425
  });
20249
20426
  throw e;
20250
20427
  }
@@ -20286,13 +20463,13 @@ class BlockBlobClient extends BlobClient {
20286
20463
  try {
20287
20464
  ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
20288
20465
  return await this.blockBlobContext.upload(contentLength, body, Object.assign({ abortSignal: options.abortSignal, blobHttpHeaders: options.blobHTTPHeaders, leaseAccessConditions: options.conditions, metadata: options.metadata, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), requestOptions: {
20289
- onUploadProgress: options.onProgress
20466
+ onUploadProgress: options.onProgress,
20290
20467
  }, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, immutabilityPolicyExpiry: (_b = options.immutabilityPolicy) === null || _b === void 0 ? void 0 : _b.expiriesOn, immutabilityPolicyMode: (_c = options.immutabilityPolicy) === null || _c === void 0 ? void 0 : _c.policyMode, legalHold: options.legalHold, tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags) }, convertTracingToRequestOptionsBase(updatedOptions)));
20291
20468
  }
20292
20469
  catch (e) {
20293
20470
  span.setStatus({
20294
20471
  code: coreTracing.SpanStatusCode.ERROR,
20295
- message: e.message
20472
+ message: e.message,
20296
20473
  });
20297
20474
  throw e;
20298
20475
  }
@@ -20329,13 +20506,13 @@ class BlockBlobClient extends BlobClient {
20329
20506
  sourceIfModifiedSince: (_b = options.sourceConditions) === null || _b === void 0 ? void 0 : _b.ifModifiedSince,
20330
20507
  sourceIfNoneMatch: (_c = options.sourceConditions) === null || _c === void 0 ? void 0 : _c.ifNoneMatch,
20331
20508
  sourceIfUnmodifiedSince: (_d = options.sourceConditions) === null || _d === void 0 ? void 0 : _d.ifUnmodifiedSince,
20332
- sourceIfTags: (_e = options.sourceConditions) === null || _e === void 0 ? void 0 : _e.tagConditions
20509
+ sourceIfTags: (_e = options.sourceConditions) === null || _e === void 0 ? void 0 : _e.tagConditions,
20333
20510
  }, cpkInfo: options.customerProvidedKey, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization), tier: toAccessTier(options.tier), blobTagsString: toBlobTagsString(options.tags) }), convertTracingToRequestOptionsBase(updatedOptions)));
20334
20511
  }
20335
20512
  catch (e) {
20336
20513
  span.setStatus({
20337
20514
  code: coreTracing.SpanStatusCode.ERROR,
20338
- message: e.message
20515
+ message: e.message,
20339
20516
  });
20340
20517
  throw e;
20341
20518
  }
@@ -20359,13 +20536,13 @@ class BlockBlobClient extends BlobClient {
20359
20536
  try {
20360
20537
  ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
20361
20538
  return await this.blockBlobContext.stageBlock(blockId, contentLength, body, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, requestOptions: {
20362
- onUploadProgress: options.onProgress
20539
+ onUploadProgress: options.onProgress,
20363
20540
  }, transactionalContentMD5: options.transactionalContentMD5, transactionalContentCrc64: options.transactionalContentCrc64, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));
20364
20541
  }
20365
20542
  catch (e) {
20366
20543
  span.setStatus({
20367
20544
  code: coreTracing.SpanStatusCode.ERROR,
20368
- message: e.message
20545
+ message: e.message,
20369
20546
  });
20370
20547
  throw e;
20371
20548
  }
@@ -20403,7 +20580,7 @@ class BlockBlobClient extends BlobClient {
20403
20580
  catch (e) {
20404
20581
  span.setStatus({
20405
20582
  code: coreTracing.SpanStatusCode.ERROR,
20406
- message: e.message
20583
+ message: e.message,
20407
20584
  });
20408
20585
  throw e;
20409
20586
  }
@@ -20434,7 +20611,7 @@ class BlockBlobClient extends BlobClient {
20434
20611
  catch (e) {
20435
20612
  span.setStatus({
20436
20613
  code: coreTracing.SpanStatusCode.ERROR,
20437
- message: e.message
20614
+ message: e.message,
20438
20615
  });
20439
20616
  throw e;
20440
20617
  }
@@ -20468,7 +20645,7 @@ class BlockBlobClient extends BlobClient {
20468
20645
  catch (e) {
20469
20646
  span.setStatus({
20470
20647
  code: coreTracing.SpanStatusCode.ERROR,
20471
- message: e.message
20648
+ message: e.message,
20472
20649
  });
20473
20650
  throw e;
20474
20651
  }
@@ -20495,7 +20672,7 @@ class BlockBlobClient extends BlobClient {
20495
20672
  async uploadData(data, options = {}) {
20496
20673
  const { span, updatedOptions } = createSpan("BlockBlobClient-uploadData", options);
20497
20674
  try {
20498
- if (true) {
20675
+ if (coreHttp.isNode) {
20499
20676
  let buffer;
20500
20677
  if (data instanceof Buffer) {
20501
20678
  buffer = data;
@@ -20517,7 +20694,7 @@ class BlockBlobClient extends BlobClient {
20517
20694
  catch (e) {
20518
20695
  span.setStatus({
20519
20696
  code: coreTracing.SpanStatusCode.ERROR,
20520
- message: e.message
20697
+ message: e.message,
20521
20698
  });
20522
20699
  throw e;
20523
20700
  }
@@ -20553,7 +20730,7 @@ class BlockBlobClient extends BlobClient {
20553
20730
  catch (e) {
20554
20731
  span.setStatus({
20555
20732
  code: coreTracing.SpanStatusCode.ERROR,
20556
- message: e.message
20733
+ message: e.message,
20557
20734
  });
20558
20735
  throw e;
20559
20736
  }
@@ -20632,14 +20809,14 @@ class BlockBlobClient extends BlobClient {
20632
20809
  abortSignal: options.abortSignal,
20633
20810
  conditions: options.conditions,
20634
20811
  encryptionScope: options.encryptionScope,
20635
- tracingOptions: updatedOptions.tracingOptions
20812
+ tracingOptions: updatedOptions.tracingOptions,
20636
20813
  });
20637
20814
  // Update progress after block is successfully uploaded to server, in case of block trying
20638
20815
  // TODO: Hook with convenience layer progress event in finer level
20639
20816
  transferProgress += contentLength;
20640
20817
  if (options.onProgress) {
20641
20818
  options.onProgress({
20642
- loadedBytes: transferProgress
20819
+ loadedBytes: transferProgress,
20643
20820
  });
20644
20821
  }
20645
20822
  });
@@ -20650,7 +20827,7 @@ class BlockBlobClient extends BlobClient {
20650
20827
  catch (e) {
20651
20828
  span.setStatus({
20652
20829
  code: coreTracing.SpanStatusCode.ERROR,
20653
- message: e.message
20830
+ message: e.message,
20654
20831
  });
20655
20832
  throw e;
20656
20833
  }
@@ -20679,14 +20856,14 @@ class BlockBlobClient extends BlobClient {
20679
20856
  return () => fsCreateReadStream(filePath, {
20680
20857
  autoClose: true,
20681
20858
  end: count ? offset + count - 1 : Infinity,
20682
- start: offset
20859
+ start: offset,
20683
20860
  });
20684
20861
  }, size, Object.assign(Object.assign({}, options), { tracingOptions: Object.assign(Object.assign({}, options.tracingOptions), convertTracingToRequestOptionsBase(updatedOptions)) }));
20685
20862
  }
20686
20863
  catch (e) {
20687
20864
  span.setStatus({
20688
20865
  code: coreTracing.SpanStatusCode.ERROR,
20689
- message: e.message
20866
+ message: e.message,
20690
20867
  });
20691
20868
  throw e;
20692
20869
  }
@@ -20730,7 +20907,7 @@ class BlockBlobClient extends BlobClient {
20730
20907
  await this.stageBlock(blockID, body, length, {
20731
20908
  conditions: options.conditions,
20732
20909
  encryptionScope: options.encryptionScope,
20733
- tracingOptions: updatedOptions.tracingOptions
20910
+ tracingOptions: updatedOptions.tracingOptions,
20734
20911
  });
20735
20912
  // Update progress after block is successfully uploaded to server, in case of block trying
20736
20913
  transferProgress += length;
@@ -20749,7 +20926,7 @@ class BlockBlobClient extends BlobClient {
20749
20926
  catch (e) {
20750
20927
  span.setStatus({
20751
20928
  code: coreTracing.SpanStatusCode.ERROR,
20752
- message: e.message
20929
+ message: e.message,
20753
20930
  });
20754
20931
  throw e;
20755
20932
  }
@@ -20800,12 +20977,17 @@ class PageBlobClient extends BlobClient {
20800
20977
  const blobName = blobNameOrOptions;
20801
20978
  const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
20802
20979
  if (extractedCreds.kind === "AccountConnString") {
20803
- {
20980
+ if (coreHttp.isNode) {
20804
20981
  const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
20805
20982
  url = appendToURLPath(appendToURLPath(extractedCreds.url, encodeURIComponent(containerName)), encodeURIComponent(blobName));
20806
- options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
20983
+ if (!options.proxyOptions) {
20984
+ options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
20985
+ }
20807
20986
  pipeline = newPipeline(sharedKeyCredential, options);
20808
20987
  }
20988
+ else {
20989
+ throw new Error("Account connection string is only supported in Node.js environment");
20990
+ }
20809
20991
  }
20810
20992
  else if (extractedCreds.kind === "SASConnString") {
20811
20993
  url =
@@ -20855,7 +21037,7 @@ class PageBlobClient extends BlobClient {
20855
21037
  catch (e) {
20856
21038
  span.setStatus({
20857
21039
  code: coreTracing.SpanStatusCode.ERROR,
20858
- message: e.message
21040
+ message: e.message,
20859
21041
  });
20860
21042
  throw e;
20861
21043
  }
@@ -20878,20 +21060,19 @@ class PageBlobClient extends BlobClient {
20878
21060
  try {
20879
21061
  const conditions = { ifNoneMatch: ETagAny };
20880
21062
  const res = await this.create(size, Object.assign(Object.assign({}, options), { conditions, tracingOptions: updatedOptions.tracingOptions }));
20881
- return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response // _response is made non-enumerable
20882
- });
21063
+ return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });
20883
21064
  }
20884
21065
  catch (e) {
20885
21066
  if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "BlobAlreadyExists") {
20886
21067
  span.setStatus({
20887
21068
  code: coreTracing.SpanStatusCode.ERROR,
20888
- message: "Expected exception when creating a blob only if it does not already exist."
21069
+ message: "Expected exception when creating a blob only if it does not already exist.",
20889
21070
  });
20890
21071
  return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
20891
21072
  }
20892
21073
  span.setStatus({
20893
21074
  code: coreTracing.SpanStatusCode.ERROR,
20894
- message: e.message
21075
+ message: e.message,
20895
21076
  });
20896
21077
  throw e;
20897
21078
  }
@@ -20916,13 +21097,13 @@ class PageBlobClient extends BlobClient {
20916
21097
  try {
20917
21098
  ensureCpkIfSpecified(options.customerProvidedKey, this.isHttps);
20918
21099
  return await this.pageBlobContext.uploadPages(count, body, Object.assign({ abortSignal: options.abortSignal, leaseAccessConditions: options.conditions, modifiedAccessConditions: Object.assign(Object.assign({}, options.conditions), { ifTags: (_a = options.conditions) === null || _a === void 0 ? void 0 : _a.tagConditions }), requestOptions: {
20919
- onUploadProgress: options.onProgress
21100
+ onUploadProgress: options.onProgress,
20920
21101
  }, range: rangeToString({ offset, count }), sequenceNumberAccessConditions: options.conditions, transactionalContentMD5: options.transactionalContentMD5, transactionalContentCrc64: options.transactionalContentCrc64, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope }, convertTracingToRequestOptionsBase(updatedOptions)));
20921
21102
  }
20922
21103
  catch (e) {
20923
21104
  span.setStatus({
20924
21105
  code: coreTracing.SpanStatusCode.ERROR,
20925
- message: e.message
21106
+ message: e.message,
20926
21107
  });
20927
21108
  throw e;
20928
21109
  }
@@ -20952,13 +21133,13 @@ class PageBlobClient extends BlobClient {
20952
21133
  sourceIfMatch: options.sourceConditions.ifMatch,
20953
21134
  sourceIfModifiedSince: options.sourceConditions.ifModifiedSince,
20954
21135
  sourceIfNoneMatch: options.sourceConditions.ifNoneMatch,
20955
- sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince
21136
+ sourceIfUnmodifiedSince: options.sourceConditions.ifUnmodifiedSince,
20956
21137
  }, cpkInfo: options.customerProvidedKey, encryptionScope: options.encryptionScope, copySourceAuthorization: httpAuthorizationToString(options.sourceAuthorization) }, convertTracingToRequestOptionsBase(updatedOptions)));
20957
21138
  }
20958
21139
  catch (e) {
20959
21140
  span.setStatus({
20960
21141
  code: coreTracing.SpanStatusCode.ERROR,
20961
- message: e.message
21142
+ message: e.message,
20962
21143
  });
20963
21144
  throw e;
20964
21145
  }
@@ -20985,7 +21166,7 @@ class PageBlobClient extends BlobClient {
20985
21166
  catch (e) {
20986
21167
  span.setStatus({
20987
21168
  code: coreTracing.SpanStatusCode.ERROR,
20988
- message: e.message
21169
+ message: e.message,
20989
21170
  });
20990
21171
  throw e;
20991
21172
  }
@@ -21014,7 +21195,7 @@ class PageBlobClient extends BlobClient {
21014
21195
  catch (e) {
21015
21196
  span.setStatus({
21016
21197
  code: coreTracing.SpanStatusCode.ERROR,
21017
- message: e.message
21198
+ message: e.message,
21018
21199
  });
21019
21200
  throw e;
21020
21201
  }
@@ -21044,7 +21225,7 @@ class PageBlobClient extends BlobClient {
21044
21225
  catch (e) {
21045
21226
  span.setStatus({
21046
21227
  code: coreTracing.SpanStatusCode.ERROR,
21047
- message: e.message
21228
+ message: e.message,
21048
21229
  });
21049
21230
  throw e;
21050
21231
  }
@@ -21074,7 +21255,7 @@ class PageBlobClient extends BlobClient {
21074
21255
  catch (e) {
21075
21256
  span.setStatus({
21076
21257
  code: coreTracing.SpanStatusCode.ERROR,
21077
- message: e.message
21258
+ message: e.message,
21078
21259
  });
21079
21260
  throw e;
21080
21261
  }
@@ -21100,7 +21281,7 @@ class PageBlobClient extends BlobClient {
21100
21281
  catch (e) {
21101
21282
  span.setStatus({
21102
21283
  code: coreTracing.SpanStatusCode.ERROR,
21103
- message: e.message
21284
+ message: e.message,
21104
21285
  });
21105
21286
  throw e;
21106
21287
  }
@@ -21127,7 +21308,7 @@ class PageBlobClient extends BlobClient {
21127
21308
  catch (e) {
21128
21309
  span.setStatus({
21129
21310
  code: coreTracing.SpanStatusCode.ERROR,
21130
- message: e.message
21311
+ message: e.message,
21131
21312
  });
21132
21313
  throw e;
21133
21314
  }
@@ -21157,7 +21338,7 @@ class PageBlobClient extends BlobClient {
21157
21338
  catch (e) {
21158
21339
  span.setStatus({
21159
21340
  code: coreTracing.SpanStatusCode.ERROR,
21160
- message: e.message
21341
+ message: e.message,
21161
21342
  });
21162
21343
  throw e;
21163
21344
  }
@@ -21305,7 +21486,7 @@ class BatchResponseParser {
21305
21486
  return {
21306
21487
  subResponses: deserializedSubResponses,
21307
21488
  subResponsesSucceededCount: subResponsesSucceededCount,
21308
- subResponsesFailedCount: subResponsesFailedCount
21489
+ subResponsesFailedCount: subResponsesFailedCount,
21309
21490
  };
21310
21491
  }
21311
21492
  }
@@ -21452,7 +21633,7 @@ class BlobBatch {
21452
21633
  this.setBatchType("delete");
21453
21634
  await this.addSubRequestInternal({
21454
21635
  url: url,
21455
- credential: credential
21636
+ credential: credential,
21456
21637
  }, async () => {
21457
21638
  await new BlobClient(url, this.batchRequest.createPipeline(credential)).delete(updatedOptions);
21458
21639
  });
@@ -21460,7 +21641,7 @@ class BlobBatch {
21460
21641
  catch (e) {
21461
21642
  span.setStatus({
21462
21643
  code: coreTracing.SpanStatusCode.ERROR,
21463
- message: e.message
21644
+ message: e.message,
21464
21645
  });
21465
21646
  throw e;
21466
21647
  }
@@ -21499,7 +21680,7 @@ class BlobBatch {
21499
21680
  this.setBatchType("setAccessTier");
21500
21681
  await this.addSubRequestInternal({
21501
21682
  url: url,
21502
- credential: credential
21683
+ credential: credential,
21503
21684
  }, async () => {
21504
21685
  await new BlobClient(url, this.batchRequest.createPipeline(credential)).setAccessTier(tier, updatedOptions);
21505
21686
  });
@@ -21507,7 +21688,7 @@ class BlobBatch {
21507
21688
  catch (e) {
21508
21689
  span.setStatus({
21509
21690
  code: coreTracing.SpanStatusCode.ERROR,
21510
- message: e.message
21691
+ message: e.message,
21511
21692
  });
21512
21693
  throw e;
21513
21694
  }
@@ -21564,7 +21745,7 @@ class InnerBatchRequest {
21564
21745
  this.subRequestPrefix,
21565
21746
  `${HeaderConstants.CONTENT_ID}: ${this.operationCount}`,
21566
21747
  "",
21567
- `${request.method.toString()} ${getURLPathAndQuery(request.url)} ${HTTP_VERSION_1_1}${HTTP_LINE_ENDING}` // sub request start line with method
21748
+ `${request.method.toString()} ${getURLPathAndQuery(request.url)} ${HTTP_VERSION_1_1}${HTTP_LINE_ENDING}`, // sub request start line with method
21568
21749
  ].join(HTTP_LINE_ENDING);
21569
21750
  for (const header of request.headers.headersArray()) {
21570
21751
  this.body += `${header.name}: ${header.value}${HTTP_LINE_ENDING}`;
@@ -21604,7 +21785,7 @@ class BatchRequestAssemblePolicy extends coreHttp.BaseRequestPolicy {
21604
21785
  this.dummyResponse = {
21605
21786
  request: new coreHttp.WebResource(),
21606
21787
  status: 200,
21607
- headers: new coreHttp.HttpHeaders()
21788
+ headers: new coreHttp.HttpHeaders(),
21608
21789
  };
21609
21790
  this.batchRequest = batchRequest;
21610
21791
  }
@@ -21771,14 +21952,14 @@ class BlobBatchClient {
21771
21952
  version: rawBatchResponse.version,
21772
21953
  subResponses: responseSummary.subResponses,
21773
21954
  subResponsesSucceededCount: responseSummary.subResponsesSucceededCount,
21774
- subResponsesFailedCount: responseSummary.subResponsesFailedCount
21955
+ subResponsesFailedCount: responseSummary.subResponsesFailedCount,
21775
21956
  };
21776
21957
  return res;
21777
21958
  }
21778
21959
  catch (e) {
21779
21960
  span.setStatus({
21780
21961
  code: coreTracing.SpanStatusCode.ERROR,
21781
- message: e.message
21962
+ message: e.message,
21782
21963
  });
21783
21964
  throw e;
21784
21965
  }
@@ -21824,12 +22005,17 @@ class ContainerClient extends StorageClient {
21824
22005
  const containerName = credentialOrPipelineOrContainerName;
21825
22006
  const extractedCreds = extractConnectionStringParts(urlOrConnectionString);
21826
22007
  if (extractedCreds.kind === "AccountConnString") {
21827
- {
22008
+ if (coreHttp.isNode) {
21828
22009
  const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
21829
22010
  url = appendToURLPath(extractedCreds.url, encodeURIComponent(containerName));
21830
- options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
22011
+ if (!options.proxyOptions) {
22012
+ options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
22013
+ }
21831
22014
  pipeline = newPipeline(sharedKeyCredential, options);
21832
22015
  }
22016
+ else {
22017
+ throw new Error("Account connection string is only supported in Node.js environment");
22018
+ }
21833
22019
  }
21834
22020
  else if (extractedCreds.kind === "SASConnString") {
21835
22021
  url =
@@ -21881,7 +22067,7 @@ class ContainerClient extends StorageClient {
21881
22067
  catch (e) {
21882
22068
  span.setStatus({
21883
22069
  code: coreTracing.SpanStatusCode.ERROR,
21884
- message: e.message
22070
+ message: e.message,
21885
22071
  });
21886
22072
  throw e;
21887
22073
  }
@@ -21901,20 +22087,19 @@ class ContainerClient extends StorageClient {
21901
22087
  const { span, updatedOptions } = createSpan("ContainerClient-createIfNotExists", options);
21902
22088
  try {
21903
22089
  const res = await this.create(updatedOptions);
21904
- return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response // _response is made non-enumerable
21905
- });
22090
+ return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });
21906
22091
  }
21907
22092
  catch (e) {
21908
22093
  if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ContainerAlreadyExists") {
21909
22094
  span.setStatus({
21910
22095
  code: coreTracing.SpanStatusCode.ERROR,
21911
- message: "Expected exception when creating a container only if it does not already exist."
22096
+ message: "Expected exception when creating a container only if it does not already exist.",
21912
22097
  });
21913
22098
  return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
21914
22099
  }
21915
22100
  span.setStatus({
21916
22101
  code: coreTracing.SpanStatusCode.ERROR,
21917
- message: e.message
22102
+ message: e.message,
21918
22103
  });
21919
22104
  throw e;
21920
22105
  }
@@ -21936,7 +22121,7 @@ class ContainerClient extends StorageClient {
21936
22121
  try {
21937
22122
  await this.getProperties({
21938
22123
  abortSignal: options.abortSignal,
21939
- tracingOptions: updatedOptions.tracingOptions
22124
+ tracingOptions: updatedOptions.tracingOptions,
21940
22125
  });
21941
22126
  return true;
21942
22127
  }
@@ -21944,13 +22129,13 @@ class ContainerClient extends StorageClient {
21944
22129
  if (e.statusCode === 404) {
21945
22130
  span.setStatus({
21946
22131
  code: coreTracing.SpanStatusCode.ERROR,
21947
- message: "Expected exception when checking container existence"
22132
+ message: "Expected exception when checking container existence",
21948
22133
  });
21949
22134
  return false;
21950
22135
  }
21951
22136
  span.setStatus({
21952
22137
  code: coreTracing.SpanStatusCode.ERROR,
21953
- message: e.message
22138
+ message: e.message,
21954
22139
  });
21955
22140
  throw e;
21956
22141
  }
@@ -22024,7 +22209,7 @@ class ContainerClient extends StorageClient {
22024
22209
  catch (e) {
22025
22210
  span.setStatus({
22026
22211
  code: coreTracing.SpanStatusCode.ERROR,
22027
- message: e.message
22212
+ message: e.message,
22028
22213
  });
22029
22214
  throw e;
22030
22215
  }
@@ -22050,7 +22235,7 @@ class ContainerClient extends StorageClient {
22050
22235
  catch (e) {
22051
22236
  span.setStatus({
22052
22237
  code: coreTracing.SpanStatusCode.ERROR,
22053
- message: e.message
22238
+ message: e.message,
22054
22239
  });
22055
22240
  throw e;
22056
22241
  }
@@ -22070,20 +22255,19 @@ class ContainerClient extends StorageClient {
22070
22255
  const { span, updatedOptions } = createSpan("ContainerClient-deleteIfExists", options);
22071
22256
  try {
22072
22257
  const res = await this.delete(updatedOptions);
22073
- return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response // _response is made non-enumerable
22074
- });
22258
+ return Object.assign(Object.assign({ succeeded: true }, res), { _response: res._response });
22075
22259
  }
22076
22260
  catch (e) {
22077
22261
  if (((_a = e.details) === null || _a === void 0 ? void 0 : _a.errorCode) === "ContainerNotFound") {
22078
22262
  span.setStatus({
22079
22263
  code: coreTracing.SpanStatusCode.ERROR,
22080
- message: "Expected exception when deleting a container only if it exists."
22264
+ message: "Expected exception when deleting a container only if it exists.",
22081
22265
  });
22082
22266
  return Object.assign(Object.assign({ succeeded: false }, (_b = e.response) === null || _b === void 0 ? void 0 : _b.parsedHeaders), { _response: e.response });
22083
22267
  }
22084
22268
  span.setStatus({
22085
22269
  code: coreTracing.SpanStatusCode.ERROR,
22086
- message: e.message
22270
+ message: e.message,
22087
22271
  });
22088
22272
  throw e;
22089
22273
  }
@@ -22117,7 +22301,7 @@ class ContainerClient extends StorageClient {
22117
22301
  catch (e) {
22118
22302
  span.setStatus({
22119
22303
  code: coreTracing.SpanStatusCode.ERROR,
22120
- message: e.message
22304
+ message: e.message,
22121
22305
  });
22122
22306
  throw e;
22123
22307
  }
@@ -22153,13 +22337,13 @@ class ContainerClient extends StorageClient {
22153
22337
  requestId: response.requestId,
22154
22338
  clientRequestId: response.clientRequestId,
22155
22339
  signedIdentifiers: [],
22156
- version: response.version
22340
+ version: response.version,
22157
22341
  };
22158
22342
  for (const identifier of response) {
22159
22343
  let accessPolicy = undefined;
22160
22344
  if (identifier.accessPolicy) {
22161
22345
  accessPolicy = {
22162
- permissions: identifier.accessPolicy.permissions
22346
+ permissions: identifier.accessPolicy.permissions,
22163
22347
  };
22164
22348
  if (identifier.accessPolicy.expiresOn) {
22165
22349
  accessPolicy.expiresOn = new Date(identifier.accessPolicy.expiresOn);
@@ -22170,7 +22354,7 @@ class ContainerClient extends StorageClient {
22170
22354
  }
22171
22355
  res.signedIdentifiers.push({
22172
22356
  accessPolicy,
22173
- id: identifier.id
22357
+ id: identifier.id,
22174
22358
  });
22175
22359
  }
22176
22360
  return res;
@@ -22178,7 +22362,7 @@ class ContainerClient extends StorageClient {
22178
22362
  catch (e) {
22179
22363
  span.setStatus({
22180
22364
  code: coreTracing.SpanStatusCode.ERROR,
22181
- message: e.message
22365
+ message: e.message,
22182
22366
  });
22183
22367
  throw e;
22184
22368
  }
@@ -22217,9 +22401,9 @@ class ContainerClient extends StorageClient {
22217
22401
  permissions: identifier.accessPolicy.permissions,
22218
22402
  startsOn: identifier.accessPolicy.startsOn
22219
22403
  ? truncatedISO8061Date(identifier.accessPolicy.startsOn)
22220
- : ""
22404
+ : "",
22221
22405
  },
22222
- id: identifier.id
22406
+ id: identifier.id,
22223
22407
  });
22224
22408
  }
22225
22409
  return await this.containerContext.setAccessPolicy(Object.assign({ abortSignal: options.abortSignal, access, containerAcl: acl, leaseAccessConditions: options.conditions, modifiedAccessConditions: options.conditions }, convertTracingToRequestOptionsBase(updatedOptions)));
@@ -22227,7 +22411,7 @@ class ContainerClient extends StorageClient {
22227
22411
  catch (e) {
22228
22412
  span.setStatus({
22229
22413
  code: coreTracing.SpanStatusCode.ERROR,
22230
- message: e.message
22414
+ message: e.message,
22231
22415
  });
22232
22416
  throw e;
22233
22417
  }
@@ -22273,13 +22457,13 @@ class ContainerClient extends StorageClient {
22273
22457
  const response = await blockBlobClient.upload(body, contentLength, updatedOptions);
22274
22458
  return {
22275
22459
  blockBlobClient,
22276
- response
22460
+ response,
22277
22461
  };
22278
22462
  }
22279
22463
  catch (e) {
22280
22464
  span.setStatus({
22281
22465
  code: coreTracing.SpanStatusCode.ERROR,
22282
- message: e.message
22466
+ message: e.message,
22283
22467
  });
22284
22468
  throw e;
22285
22469
  }
@@ -22310,7 +22494,7 @@ class ContainerClient extends StorageClient {
22310
22494
  catch (e) {
22311
22495
  span.setStatus({
22312
22496
  code: coreTracing.SpanStatusCode.ERROR,
22313
- message: e.message
22497
+ message: e.message,
22314
22498
  });
22315
22499
  throw e;
22316
22500
  }
@@ -22345,7 +22529,7 @@ class ContainerClient extends StorageClient {
22345
22529
  catch (e) {
22346
22530
  span.setStatus({
22347
22531
  code: coreTracing.SpanStatusCode.ERROR,
22348
- message: e.message
22532
+ message: e.message,
22349
22533
  });
22350
22534
  throw e;
22351
22535
  }
@@ -22382,7 +22566,7 @@ class ContainerClient extends StorageClient {
22382
22566
  return blobItem;
22383
22567
  }), blobPrefixes: (_a = response.segment.blobPrefixes) === null || _a === void 0 ? void 0 : _a.map((blobPrefixInternal) => {
22384
22568
  const blobPrefix = {
22385
- name: BlobNameToString(blobPrefixInternal.name)
22569
+ name: BlobNameToString(blobPrefixInternal.name),
22386
22570
  };
22387
22571
  return blobPrefix;
22388
22572
  }) }) });
@@ -22391,7 +22575,7 @@ class ContainerClient extends StorageClient {
22391
22575
  catch (e) {
22392
22576
  span.setStatus({
22393
22577
  code: coreTracing.SpanStatusCode.ERROR,
22394
- message: e.message
22578
+ message: e.message,
22395
22579
  });
22396
22580
  throw e;
22397
22581
  }
@@ -22573,7 +22757,7 @@ class ContainerClient extends StorageClient {
22573
22757
  */
22574
22758
  byPage: (settings = {}) => {
22575
22759
  return this.listSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, updatedOptions));
22576
- }
22760
+ },
22577
22761
  };
22578
22762
  }
22579
22763
  /**
@@ -22647,7 +22831,7 @@ class ContainerClient extends StorageClient {
22647
22831
  * if (item.kind === "prefix") {
22648
22832
  * console.log(`\tBlobPrefix: ${item.name}`);
22649
22833
  * } else {
22650
- * console.log(`\tBlobItem: name - ${item.name}, last modified - ${item.properties.lastModified}`);
22834
+ * console.log(`\tBlobItem: name - ${item.name}`);
22651
22835
  * }
22652
22836
  * }
22653
22837
  * ```
@@ -22662,7 +22846,7 @@ class ContainerClient extends StorageClient {
22662
22846
  * if (item.kind === "prefix") {
22663
22847
  * console.log(`\tBlobPrefix: ${item.name}`);
22664
22848
  * } else {
22665
- * console.log(`\tBlobItem: name - ${item.name}, last modified - ${item.properties.lastModified}`);
22849
+ * console.log(`\tBlobItem: name - ${item.name}`);
22666
22850
  * }
22667
22851
  * entity = await iter.next();
22668
22852
  * }
@@ -22680,7 +22864,7 @@ class ContainerClient extends StorageClient {
22680
22864
  * }
22681
22865
  * }
22682
22866
  * for (const blob of response.segment.blobItems) {
22683
- * console.log(`\tBlobItem: name - ${blob.name}, last modified - ${blob.properties.lastModified}`);
22867
+ * console.log(`\tBlobItem: name - ${blob.name}`);
22684
22868
  * }
22685
22869
  * }
22686
22870
  * ```
@@ -22691,7 +22875,9 @@ class ContainerClient extends StorageClient {
22691
22875
  * console.log("Listing blobs by hierarchy by page, specifying a prefix and a max page size");
22692
22876
  *
22693
22877
  * let i = 1;
22694
- * for await (const response of containerClient.listBlobsByHierarchy("/", { prefix: "prefix2/sub1/"}).byPage({ maxPageSize: 2 })) {
22878
+ * for await (const response of containerClient
22879
+ * .listBlobsByHierarchy("/", { prefix: "prefix2/sub1/" })
22880
+ * .byPage({ maxPageSize: 2 })) {
22695
22881
  * console.log(`Page ${i++}`);
22696
22882
  * const segment = response.segment;
22697
22883
  *
@@ -22702,7 +22888,7 @@ class ContainerClient extends StorageClient {
22702
22888
  * }
22703
22889
  *
22704
22890
  * for (const blob of response.segment.blobItems) {
22705
- * console.log(`\tBlobItem: name - ${blob.name}, last modified - ${blob.properties.lastModified}`);
22891
+ * console.log(`\tBlobItem: name - ${blob.name}`);
22706
22892
  * }
22707
22893
  * }
22708
22894
  * ```
@@ -22769,7 +22955,208 @@ class ContainerClient extends StorageClient {
22769
22955
  */
22770
22956
  byPage: (settings = {}) => {
22771
22957
  return this.listHierarchySegments(delimiter, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, updatedOptions));
22958
+ },
22959
+ };
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
+ }
22772
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
+ },
22773
23160
  };
22774
23161
  }
22775
23162
  getContainerNameFromUrl() {
@@ -23282,7 +23669,7 @@ function generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyC
23282
23669
  accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
23283
23670
  version,
23284
23671
  accountSASSignatureValues.encryptionScope ? accountSASSignatureValues.encryptionScope : "",
23285
- "" // Account SAS requires an additional newline character
23672
+ "", // Account SAS requires an additional newline character
23286
23673
  ].join("\n");
23287
23674
  }
23288
23675
  else {
@@ -23298,7 +23685,7 @@ function generateAccountSASQueryParameters(accountSASSignatureValues, sharedKeyC
23298
23685
  accountSASSignatureValues.ipRange ? ipRangeToString(accountSASSignatureValues.ipRange) : "",
23299
23686
  accountSASSignatureValues.protocol ? accountSASSignatureValues.protocol : "",
23300
23687
  version,
23301
- "" // Account SAS requires an additional newline character
23688
+ "", // Account SAS requires an additional newline character
23302
23689
  ].join("\n");
23303
23690
  }
23304
23691
  const signature = sharedKeyCredential.computeHMACSHA256(stringToSign);
@@ -23349,12 +23736,17 @@ class BlobServiceClient extends StorageClient {
23349
23736
  options = options || {};
23350
23737
  const extractedCreds = extractConnectionStringParts(connectionString);
23351
23738
  if (extractedCreds.kind === "AccountConnString") {
23352
- {
23739
+ if (coreHttp.isNode) {
23353
23740
  const sharedKeyCredential = new StorageSharedKeyCredential(extractedCreds.accountName, extractedCreds.accountKey);
23354
- options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
23741
+ if (!options.proxyOptions) {
23742
+ options.proxyOptions = coreHttp.getDefaultProxySettings(extractedCreds.proxyUri);
23743
+ }
23355
23744
  const pipeline = newPipeline(sharedKeyCredential, options);
23356
23745
  return new BlobServiceClient(extractedCreds.url, pipeline);
23357
23746
  }
23747
+ else {
23748
+ throw new Error("Account connection string is only supported in Node.js environment");
23749
+ }
23358
23750
  }
23359
23751
  else if (extractedCreds.kind === "SASConnString") {
23360
23752
  const pipeline = newPipeline(new AnonymousCredential(), options);
@@ -23393,13 +23785,13 @@ class BlobServiceClient extends StorageClient {
23393
23785
  const containerCreateResponse = await containerClient.create(updatedOptions);
23394
23786
  return {
23395
23787
  containerClient,
23396
- containerCreateResponse
23788
+ containerCreateResponse,
23397
23789
  };
23398
23790
  }
23399
23791
  catch (e) {
23400
23792
  span.setStatus({
23401
23793
  code: coreTracing.SpanStatusCode.ERROR,
23402
- message: e.message
23794
+ message: e.message,
23403
23795
  });
23404
23796
  throw e;
23405
23797
  }
@@ -23423,7 +23815,7 @@ class BlobServiceClient extends StorageClient {
23423
23815
  catch (e) {
23424
23816
  span.setStatus({
23425
23817
  code: coreTracing.SpanStatusCode.ERROR,
23426
- message: e.message
23818
+ message: e.message,
23427
23819
  });
23428
23820
  throw e;
23429
23821
  }
@@ -23453,7 +23845,7 @@ class BlobServiceClient extends StorageClient {
23453
23845
  catch (e) {
23454
23846
  span.setStatus({
23455
23847
  code: coreTracing.SpanStatusCode.ERROR,
23456
- message: e.message
23848
+ message: e.message,
23457
23849
  });
23458
23850
  throw e;
23459
23851
  }
@@ -23483,7 +23875,7 @@ class BlobServiceClient extends StorageClient {
23483
23875
  catch (e) {
23484
23876
  span.setStatus({
23485
23877
  code: coreTracing.SpanStatusCode.ERROR,
23486
- message: e.message
23878
+ message: e.message,
23487
23879
  });
23488
23880
  throw e;
23489
23881
  }
@@ -23507,7 +23899,7 @@ class BlobServiceClient extends StorageClient {
23507
23899
  catch (e) {
23508
23900
  span.setStatus({
23509
23901
  code: coreTracing.SpanStatusCode.ERROR,
23510
- message: e.message
23902
+ message: e.message,
23511
23903
  });
23512
23904
  throw e;
23513
23905
  }
@@ -23532,7 +23924,7 @@ class BlobServiceClient extends StorageClient {
23532
23924
  catch (e) {
23533
23925
  span.setStatus({
23534
23926
  code: coreTracing.SpanStatusCode.ERROR,
23535
- message: e.message
23927
+ message: e.message,
23536
23928
  });
23537
23929
  throw e;
23538
23930
  }
@@ -23557,7 +23949,7 @@ class BlobServiceClient extends StorageClient {
23557
23949
  catch (e) {
23558
23950
  span.setStatus({
23559
23951
  code: coreTracing.SpanStatusCode.ERROR,
23560
- message: e.message
23952
+ message: e.message,
23561
23953
  });
23562
23954
  throw e;
23563
23955
  }
@@ -23583,7 +23975,7 @@ class BlobServiceClient extends StorageClient {
23583
23975
  catch (e) {
23584
23976
  span.setStatus({
23585
23977
  code: coreTracing.SpanStatusCode.ERROR,
23586
- message: e.message
23978
+ message: e.message,
23587
23979
  });
23588
23980
  throw e;
23589
23981
  }
@@ -23613,7 +24005,7 @@ class BlobServiceClient extends StorageClient {
23613
24005
  catch (e) {
23614
24006
  span.setStatus({
23615
24007
  code: coreTracing.SpanStatusCode.ERROR,
23616
- message: e.message
24008
+ message: e.message,
23617
24009
  });
23618
24010
  throw e;
23619
24011
  }
@@ -23656,7 +24048,7 @@ class BlobServiceClient extends StorageClient {
23656
24048
  catch (e) {
23657
24049
  span.setStatus({
23658
24050
  code: coreTracing.SpanStatusCode.ERROR,
23659
- message: e.message
24051
+ message: e.message,
23660
24052
  });
23661
24053
  throw e;
23662
24054
  }
@@ -23822,7 +24214,7 @@ class BlobServiceClient extends StorageClient {
23822
24214
  */
23823
24215
  byPage: (settings = {}) => {
23824
24216
  return this.findBlobsByTagsSegments(tagFilterSqlExpression, settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));
23825
- }
24217
+ },
23826
24218
  };
23827
24219
  }
23828
24220
  /**
@@ -23984,7 +24376,7 @@ class BlobServiceClient extends StorageClient {
23984
24376
  */
23985
24377
  byPage: (settings = {}) => {
23986
24378
  return this.listSegments(settings.continuationToken, Object.assign({ maxPageSize: settings.maxPageSize }, listSegmentOptions));
23987
- }
24379
+ },
23988
24380
  };
23989
24381
  }
23990
24382
  /**
@@ -24003,7 +24395,7 @@ class BlobServiceClient extends StorageClient {
24003
24395
  try {
24004
24396
  const response = await this.serviceContext.getUserDelegationKey({
24005
24397
  startsOn: truncatedISO8061Date(startsOn, false),
24006
- expiresOn: truncatedISO8061Date(expiresOn, false)
24398
+ expiresOn: truncatedISO8061Date(expiresOn, false),
24007
24399
  }, Object.assign({ abortSignal: options.abortSignal }, convertTracingToRequestOptionsBase(updatedOptions)));
24008
24400
  const userDelegationKey = {
24009
24401
  signedObjectId: response.signedObjectId,
@@ -24012,7 +24404,7 @@ class BlobServiceClient extends StorageClient {
24012
24404
  signedExpiresOn: new Date(response.signedExpiresOn),
24013
24405
  signedService: response.signedService,
24014
24406
  signedVersion: response.signedVersion,
24015
- value: response.value
24407
+ value: response.value,
24016
24408
  };
24017
24409
  const res = Object.assign({ _response: response._response, requestId: response.requestId, clientRequestId: response.clientRequestId, version: response.version, date: response.date, errorCode: response.errorCode }, userDelegationKey);
24018
24410
  return res;
@@ -24020,7 +24412,7 @@ class BlobServiceClient extends StorageClient {
24020
24412
  catch (e) {
24021
24413
  span.setStatus({
24022
24414
  code: coreTracing.SpanStatusCode.ERROR,
24023
- message: e.message
24415
+ message: e.message,
24024
24416
  });
24025
24417
  throw e;
24026
24418
  }
@@ -24069,39 +24461,27 @@ class BlobServiceClient extends StorageClient {
24069
24461
 
24070
24462
  Object.defineProperty(exports, 'BaseRequestPolicy', {
24071
24463
  enumerable: true,
24072
- get: function () {
24073
- return coreHttp.BaseRequestPolicy;
24074
- }
24464
+ get: function () { return coreHttp.BaseRequestPolicy; }
24075
24465
  });
24076
24466
  Object.defineProperty(exports, 'HttpHeaders', {
24077
24467
  enumerable: true,
24078
- get: function () {
24079
- return coreHttp.HttpHeaders;
24080
- }
24468
+ get: function () { return coreHttp.HttpHeaders; }
24081
24469
  });
24082
24470
  Object.defineProperty(exports, 'RequestPolicyOptions', {
24083
24471
  enumerable: true,
24084
- get: function () {
24085
- return coreHttp.RequestPolicyOptions;
24086
- }
24472
+ get: function () { return coreHttp.RequestPolicyOptions; }
24087
24473
  });
24088
24474
  Object.defineProperty(exports, 'RestError', {
24089
24475
  enumerable: true,
24090
- get: function () {
24091
- return coreHttp.RestError;
24092
- }
24476
+ get: function () { return coreHttp.RestError; }
24093
24477
  });
24094
24478
  Object.defineProperty(exports, 'WebResource', {
24095
24479
  enumerable: true,
24096
- get: function () {
24097
- return coreHttp.WebResource;
24098
- }
24480
+ get: function () { return coreHttp.WebResource; }
24099
24481
  });
24100
24482
  Object.defineProperty(exports, 'deserializationPolicy', {
24101
24483
  enumerable: true,
24102
- get: function () {
24103
- return coreHttp.deserializationPolicy;
24104
- }
24484
+ get: function () { return coreHttp.deserializationPolicy; }
24105
24485
  });
24106
24486
  exports.AccountSASPermissions = AccountSASPermissions;
24107
24487
  exports.AccountSASResourceTypes = AccountSASResourceTypes;