@azure/storage-file-share 12.23.0-beta.1 → 12.24.0-alpha.20240612.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. package/dist/index.js +472 -380
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/storage-blob/src/BatchResponseParser.js.map +1 -1
  4. package/dist-esm/storage-blob/src/BatchUtils.js.map +1 -1
  5. package/dist-esm/storage-blob/src/BlobBatch.js +5 -5
  6. package/dist-esm/storage-blob/src/BlobBatch.js.map +1 -1
  7. package/dist-esm/storage-blob/src/BlobBatchClient.js.map +1 -1
  8. package/dist-esm/storage-blob/src/BlobDownloadResponse.js.map +1 -1
  9. package/dist-esm/storage-blob/src/BlobLeaseClient.js +2 -2
  10. package/dist-esm/storage-blob/src/BlobLeaseClient.js.map +1 -1
  11. package/dist-esm/storage-blob/src/BlobQueryResponse.js.map +1 -1
  12. package/dist-esm/storage-blob/src/BlobServiceClient.js +8 -8
  13. package/dist-esm/storage-blob/src/BlobServiceClient.js.map +1 -1
  14. package/dist-esm/storage-blob/src/Clients.js +27 -7
  15. package/dist-esm/storage-blob/src/Clients.js.map +1 -1
  16. package/dist-esm/storage-blob/src/ContainerClient.js +30 -12
  17. package/dist-esm/storage-blob/src/ContainerClient.js.map +1 -1
  18. package/dist-esm/storage-blob/src/PageBlobRangeResponse.js.map +1 -1
  19. package/dist-esm/storage-blob/src/Pipeline.js +1 -1
  20. package/dist-esm/storage-blob/src/Pipeline.js.map +1 -1
  21. package/dist-esm/storage-blob/src/Range.js.map +1 -1
  22. package/dist-esm/storage-blob/src/StorageContextClient.js.map +1 -1
  23. package/dist-esm/storage-blob/src/credentials/AnonymousCredential.js.map +1 -1
  24. package/dist-esm/storage-blob/src/credentials/Credential.js.map +1 -1
  25. package/dist-esm/storage-blob/src/credentials/StorageSharedKeyCredential.js.map +1 -1
  26. package/dist-esm/storage-blob/src/generated/src/models/index.js.map +1 -1
  27. package/dist-esm/storage-blob/src/generated/src/models/mappers.js +2383 -2362
  28. package/dist-esm/storage-blob/src/generated/src/models/mappers.js.map +1 -1
  29. package/dist-esm/storage-blob/src/generated/src/models/parameters.js +444 -444
  30. package/dist-esm/storage-blob/src/generated/src/models/parameters.js.map +1 -1
  31. package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js +20 -20
  32. package/dist-esm/storage-blob/src/generated/src/operations/appendBlob.js.map +1 -1
  33. package/dist-esm/storage-blob/src/generated/src/operations/blob.js +144 -136
  34. package/dist-esm/storage-blob/src/generated/src/operations/blob.js.map +1 -1
  35. package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js +33 -33
  36. package/dist-esm/storage-blob/src/generated/src/operations/blockBlob.js.map +1 -1
  37. package/dist-esm/storage-blob/src/generated/src/operations/container.js +117 -109
  38. package/dist-esm/storage-blob/src/generated/src/operations/container.js.map +1 -1
  39. package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js +47 -47
  40. package/dist-esm/storage-blob/src/generated/src/operations/pageBlob.js.map +1 -1
  41. package/dist-esm/storage-blob/src/generated/src/operations/service.js +56 -48
  42. package/dist-esm/storage-blob/src/generated/src/operations/service.js.map +1 -1
  43. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/appendBlob.js.map +1 -1
  44. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blob.js.map +1 -1
  45. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/blockBlob.js.map +1 -1
  46. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/container.js.map +1 -1
  47. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/pageBlob.js.map +1 -1
  48. package/dist-esm/storage-blob/src/generated/src/operationsInterfaces/service.js.map +1 -1
  49. package/dist-esm/storage-blob/src/generated/src/storageClient.js +5 -5
  50. package/dist-esm/storage-blob/src/generated/src/storageClient.js.map +1 -1
  51. package/dist-esm/storage-blob/src/generatedModels.js.map +1 -1
  52. package/dist-esm/storage-blob/src/index.js +1 -1
  53. package/dist-esm/storage-blob/src/index.js.map +1 -1
  54. package/dist-esm/storage-blob/src/models.js +7 -0
  55. package/dist-esm/storage-blob/src/models.js.map +1 -1
  56. package/dist-esm/storage-blob/src/policies/RequestPolicy.js.map +1 -1
  57. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicy.js.map +1 -1
  58. package/dist-esm/storage-blob/src/policies/StorageBrowserPolicyV2.js.map +1 -1
  59. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js +15 -0
  60. package/dist-esm/storage-blob/src/policies/StorageRetryPolicy.js.map +1 -1
  61. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js +15 -0
  62. package/dist-esm/storage-blob/src/policies/StorageRetryPolicyV2.js.map +1 -1
  63. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js +2 -1
  64. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicy.js.map +1 -1
  65. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.browser.js.map +1 -1
  66. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js +2 -1
  67. package/dist-esm/storage-blob/src/policies/StorageSharedKeyCredentialPolicyV2.js.map +1 -1
  68. package/dist-esm/storage-blob/src/pollers/BlobStartCopyFromUrlPoller.js.map +1 -1
  69. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js +1 -1
  70. package/dist-esm/storage-blob/src/sas/AccountSASPermissions.js.map +1 -1
  71. package/dist-esm/storage-blob/src/sas/AccountSASResourceTypes.js.map +1 -1
  72. package/dist-esm/storage-blob/src/sas/AccountSASServices.js.map +1 -1
  73. package/dist-esm/storage-blob/src/sas/AccountSASSignatureValues.js.map +1 -1
  74. package/dist-esm/storage-blob/src/sas/BlobSASPermissions.js.map +1 -1
  75. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js +2 -2
  76. package/dist-esm/storage-blob/src/sas/BlobSASSignatureValues.js.map +1 -1
  77. package/dist-esm/storage-blob/src/sas/ContainerSASPermissions.js.map +1 -1
  78. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js +6 -6
  79. package/dist-esm/storage-blob/src/sas/SASQueryParameters.js.map +1 -1
  80. package/dist-esm/storage-blob/src/utils/Batch.js.map +1 -1
  81. package/dist-esm/storage-blob/src/utils/BlobQuickQueryStream.js.map +1 -1
  82. package/dist-esm/storage-blob/src/utils/Mutex.js.map +1 -1
  83. package/dist-esm/storage-blob/src/utils/RetriableReadableStream.js.map +1 -1
  84. package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js +73 -0
  85. package/dist-esm/storage-blob/src/utils/SharedKeyComparator.js.map +1 -0
  86. package/dist-esm/storage-blob/src/utils/cache.js.map +1 -1
  87. package/dist-esm/storage-blob/src/utils/constants.js +5 -2
  88. package/dist-esm/storage-blob/src/utils/constants.js.map +1 -1
  89. package/dist-esm/storage-blob/src/utils/utils.common.js.map +1 -1
  90. package/dist-esm/storage-blob/src/utils/utils.node.js.map +1 -1
  91. package/dist-esm/storage-file-share/src/AccountSASPermissions.js.map +1 -1
  92. package/dist-esm/storage-file-share/src/AccountSASResourceTypes.js.map +1 -1
  93. package/dist-esm/storage-file-share/src/AccountSASServices.js.map +1 -1
  94. package/dist-esm/storage-file-share/src/AccountSASSignatureValues.js +1 -1
  95. package/dist-esm/storage-file-share/src/AccountSASSignatureValues.js.map +1 -1
  96. package/dist-esm/storage-file-share/src/Clients.js +19 -20
  97. package/dist-esm/storage-file-share/src/Clients.js.map +1 -1
  98. package/dist-esm/storage-file-share/src/FileDownloadResponse.js.map +1 -1
  99. package/dist-esm/storage-file-share/src/FileSASPermissions.js.map +1 -1
  100. package/dist-esm/storage-file-share/src/FileSASSignatureValues.js.map +1 -1
  101. package/dist-esm/storage-file-share/src/FileSystemAttributes.js.map +1 -1
  102. package/dist-esm/storage-file-share/src/Pipeline.js +259 -0
  103. package/dist-esm/storage-file-share/src/Pipeline.js.map +1 -0
  104. package/dist-esm/storage-file-share/src/Range.js.map +1 -1
  105. package/dist-esm/storage-file-share/src/SASQueryParameters.js.map +1 -1
  106. package/dist-esm/storage-file-share/src/ShareClientInternal.js.map +1 -1
  107. package/dist-esm/storage-file-share/src/ShareSASPermissions.js.map +1 -1
  108. package/dist-esm/storage-file-share/src/ShareServiceClient.js +6 -7
  109. package/dist-esm/storage-file-share/src/ShareServiceClient.js.map +1 -1
  110. package/dist-esm/storage-file-share/src/StorageClient.js +1 -1
  111. package/dist-esm/storage-file-share/src/StorageClient.js.map +1 -1
  112. package/dist-esm/storage-file-share/src/StorageContextClient.js.map +1 -1
  113. package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js +26 -0
  114. package/dist-esm/storage-file-share/src/StorageRetryPolicyFactory.js.map +1 -0
  115. package/dist-esm/storage-file-share/src/generated/src/models/index.js +2 -0
  116. package/dist-esm/storage-file-share/src/generated/src/models/index.js.map +1 -1
  117. package/dist-esm/storage-file-share/src/generated/src/models/mappers.js +29 -0
  118. package/dist-esm/storage-file-share/src/generated/src/models/mappers.js.map +1 -1
  119. package/dist-esm/storage-file-share/src/generated/src/models/parameters.js +21 -1
  120. package/dist-esm/storage-file-share/src/generated/src/models/parameters.js.map +1 -1
  121. package/dist-esm/storage-file-share/src/generated/src/operations/file.js +3 -1
  122. package/dist-esm/storage-file-share/src/generated/src/operations/file.js.map +1 -1
  123. package/dist-esm/storage-file-share/src/generated/src/operations/share.js +3 -1
  124. package/dist-esm/storage-file-share/src/generated/src/operations/share.js.map +1 -1
  125. package/dist-esm/storage-file-share/src/generated/src/storageClient.js +2 -2
  126. package/dist-esm/storage-file-share/src/generated/src/storageClient.js.map +1 -1
  127. package/dist-esm/storage-file-share/src/generatedModels.js.map +1 -1
  128. package/dist-esm/storage-file-share/src/index.browser.js +2 -2
  129. package/dist-esm/storage-file-share/src/index.browser.js.map +1 -1
  130. package/dist-esm/storage-file-share/src/index.js +3 -2
  131. package/dist-esm/storage-file-share/src/index.js.map +1 -1
  132. package/dist-esm/storage-file-share/src/models.js +16 -0
  133. package/dist-esm/storage-file-share/src/models.js.map +1 -1
  134. package/dist-esm/storage-file-share/src/policies/StorageRetryPolicy.js +220 -0
  135. package/dist-esm/storage-file-share/src/policies/StorageRetryPolicy.js.map +1 -0
  136. package/dist-esm/storage-file-share/src/policies/StorageRetryPolicyV2.js +176 -0
  137. package/dist-esm/storage-file-share/src/policies/StorageRetryPolicyV2.js.map +1 -0
  138. package/dist-esm/storage-file-share/src/utils/Batch.js.map +1 -1
  139. package/dist-esm/storage-file-share/src/utils/BufferScheduler.js.map +1 -1
  140. package/dist-esm/storage-file-share/src/utils/RetriableReadableStream.js.map +1 -1
  141. package/dist-esm/storage-file-share/src/utils/constants.js +9 -2
  142. package/dist-esm/storage-file-share/src/utils/constants.js.map +1 -1
  143. package/dist-esm/storage-file-share/src/utils/utils.common.js.map +1 -1
  144. package/dist-esm/storage-file-share/src/utils/utils.node.js.map +1 -1
  145. package/package.json +19 -34
  146. package/types/latest/storage-file-share.d.ts +52 -17
  147. package/dist-esm/storage-blob/src/BatchUtils.browser.js +0 -11
  148. package/dist-esm/storage-blob/src/BatchUtils.browser.js.map +0 -1
  149. package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js +0 -7
  150. package/dist-esm/storage-blob/src/BlobDownloadResponse.browser.js.map +0 -1
  151. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js +0 -362
  152. package/dist-esm/storage-blob/src/BlobQueryResponse.browser.js.map +0 -1
  153. package/dist-esm/storage-blob/src/index.browser.js +0 -23
  154. package/dist-esm/storage-blob/src/index.browser.js.map +0 -1
  155. package/dist-esm/storage-blob/src/utils/utils.browser.js +0 -48
  156. package/dist-esm/storage-blob/src/utils/utils.browser.js.map +0 -1
  157. package/types/3.1/storage-file-share.d.ts +0 -6941
@@ -2201,6 +2201,8 @@ declare interface FileGetRangeListOptionalParams extends coreClient.OperationOpt
2201
2201
  range?: string;
2202
2202
  /** The previous snapshot parameter is an opaque DateTime value that, when present, specifies the previous snapshot. */
2203
2203
  prevsharesnapshot?: string;
2204
+ /** This header is allowed only when PrevShareSnapshot query parameter is set. Determines whether the changed ranges for a file that has been renamed or moved between the target snapshot (or the live file) and the previous snapshot should be listed. If the value is true, the valid changed ranges for the file will be returned. If the value is false, the operation will result in a failure with 409 (Conflict) response. The default value is false. */
2205
+ supportRename?: boolean;
2204
2206
  }
2205
2207
 
2206
2208
  /**
@@ -2225,6 +2227,13 @@ export declare interface FileGetRangeListOptions extends CommonOptions {
2225
2227
  * Lease access conditions.
2226
2228
  */
2227
2229
  leaseAccessConditions?: LeaseAccessConditions;
2230
+ /**
2231
+ * This header is allowed only when prevShareSnapshot parameter is set.
2232
+ * Determines whether the changed ranges for a file that has been renamed or moved between the target snapshot (or the live file) and the previous snapshot should be listed.
2233
+ * If the value is true, the valid changed ranges for the file will be returned. If the value is false, the operation will result in a failure with 409 (Conflict) response.
2234
+ * The default value is false.
2235
+ */
2236
+ includeRenames?: boolean;
2228
2237
  }
2229
2238
 
2230
2239
  /**
@@ -3082,6 +3091,8 @@ export declare interface FileUploadRangeFromURLOptionalParams extends coreClient
3082
3091
  sourceModifiedAccessConditions?: SourceModifiedAccessConditions;
3083
3092
  /** The timeout parameter is expressed in seconds. For more information, see <a href="https://docs.microsoft.com/en-us/rest/api/storageservices/Setting-Timeouts-for-File-Service-Operations?redirectedfrom=MSDN">Setting Timeouts for File Service Operations.</a> */
3084
3093
  timeoutInSeconds?: number;
3094
+ /** Valid value is backup */
3095
+ fileRequestIntent?: ShareTokenIntent;
3085
3096
  /** If true, the trailing dot will not be trimmed from the target URI. */
3086
3097
  allowTrailingDot?: boolean;
3087
3098
  /** If true, the trailing dot will not be trimmed from the source URI. */
@@ -3279,6 +3290,11 @@ export declare function generateAccountSASQueryParameters(accountSASSignatureVal
3279
3290
  */
3280
3291
  export declare function generateFileSASQueryParameters(fileSASSignatureValues: FileSASSignatureValues, sharedKeyCredential: StorageSharedKeyCredential): SASQueryParameters;
3281
3292
 
3293
+ /**
3294
+ * To get the OAuth audience for a storage account for file service.
3295
+ */
3296
+ export declare function getFileServiceAccountAudience(storageAccountName: string): string;
3297
+
3282
3298
  /** A listed Azure Storage handle item. */
3283
3299
  export declare interface HandleItem {
3284
3300
  /** XSMB service handle ID */
@@ -3293,6 +3309,8 @@ export declare interface HandleItem {
3293
3309
  sessionId: string;
3294
3310
  /** Client IP that opened the handle */
3295
3311
  clientIp: string;
3312
+ /** Name of the client machine where the share is being mounted */
3313
+ clientName: string;
3296
3314
  /** Time when the session that previously opened the handle has last been reconnected. (UTC) */
3297
3315
  openTime: Date;
3298
3316
  /** Time handle was last connected to (UTC) */
@@ -3313,6 +3331,8 @@ declare interface HandleItem_2 {
3313
3331
  sessionId: string;
3314
3332
  /** Client IP that opened the handle */
3315
3333
  clientIp: string;
3334
+ /** Name of the client machine where the share is being mounted */
3335
+ clientName: string;
3316
3336
  /** Time when the session that previously opened the handle has last been reconnected. (UTC) */
3317
3337
  openTime: Date;
3318
3338
  /** Time handle was last connected to (UTC) */
@@ -3546,7 +3566,7 @@ export declare interface Metrics {
3546
3566
  * @param pipelineOptions - Optional. Options.
3547
3567
  * @returns A new Pipeline object.
3548
3568
  */
3549
- export declare function newPipeline(credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
3569
+ export declare function newPipeline(credential?: Credential_2 | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
3550
3570
 
3551
3571
  /** Defines values for PermissionCopyModeType. */
3552
3572
  export declare type PermissionCopyModeType = "source" | "override";
@@ -3618,6 +3638,10 @@ export declare interface PipelineOptions {
3618
3638
  * Optional. Configures the HTTP client to send requests and receive responses.
3619
3639
  */
3620
3640
  httpClient?: RequestPolicy;
3641
+ /**
3642
+ * Intent of using TokenCredential in file requests.
3643
+ */
3644
+ shareTokenIntent?: ShareTokenIntent;
3621
3645
  }
3622
3646
 
3623
3647
  /**
@@ -4328,8 +4352,7 @@ export declare class ShareClient extends StorageClient {
4328
4352
  * If not specified, AnonymousCredential is used.
4329
4353
  * @param options - Optional. Options to configure the HTTP pipeline.
4330
4354
  */
4331
- constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, options?: ShareClientOptions);
4332
- constructor(url: string, credential?: StorageSharedKeyCredential | AnonymousCredential, options?: ShareClientOptions);
4355
+ constructor(url: string, credential?: Credential_2 | TokenCredential, options?: ShareClientOptions);
4333
4356
  /**
4334
4357
  * Creates an instance of ShareClient.
4335
4358
  *
@@ -4645,6 +4668,7 @@ declare interface ShareCreateOptionalParams extends coreClient.OperationOptions
4645
4668
  enabledProtocols?: string;
4646
4669
  /** Root squash to set on the share. Only valid for NFS shares. */
4647
4670
  rootSquash?: ShareRootSquash;
4671
+ enableSnapshotVirtualDirectoryAccess?: boolean;
4648
4672
  }
4649
4673
 
4650
4674
  /**
@@ -4681,6 +4705,11 @@ export declare interface ShareCreateOptions extends CommonOptions {
4681
4705
  * 'NoRootSquash', 'RootSquash', 'AllSquash'.
4682
4706
  */
4683
4707
  rootSquash?: ShareRootSquash;
4708
+ /**
4709
+ * Specifies whether the snapshot virtual directory should be accessible at the root of share mount point when NFS is enabled.
4710
+ * If not specified, the default is true.
4711
+ */
4712
+ enableSnapshotVirtualDirectoryAccess?: boolean;
4684
4713
  }
4685
4714
 
4686
4715
  /** Defines headers for Share_createPermission operation. */
@@ -4879,7 +4908,7 @@ export declare class ShareDirectoryClient extends StorageClient {
4879
4908
  * If not specified, AnonymousCredential is used.
4880
4909
  * @param options - Optional. Options to configure the HTTP pipeline.
4881
4910
  */
4882
- constructor(url: string, credential?: AnonymousCredential | StorageSharedKeyCredential | TokenCredential, options?: ShareClientOptions);
4911
+ constructor(url: string, credential?: Credential_2 | TokenCredential, options?: ShareClientOptions);
4883
4912
  /**
4884
4913
  * Creates an instance of DirectoryClient.
4885
4914
  *
@@ -5392,7 +5421,7 @@ export declare class ShareFileClient extends StorageClient {
5392
5421
  * If not specified, AnonymousCredential is used.
5393
5422
  * @param options - Optional. Options to configure the HTTP pipeline.
5394
5423
  */
5395
- constructor(url: string, credential?: AnonymousCredential | StorageSharedKeyCredential | TokenCredential, options?: ShareClientOptions);
5424
+ constructor(url: string, credential?: Credential_2 | TokenCredential, options?: ShareClientOptions);
5396
5425
  /**
5397
5426
  * Creates an instance of ShareFileClient.
5398
5427
  *
@@ -6061,6 +6090,8 @@ export declare interface ShareGetPropertiesHeaders {
6061
6090
  enabledProtocols?: string;
6062
6091
  /** Valid for NFS shares only. */
6063
6092
  rootSquash?: ShareRootSquash;
6093
+ /** Version 2023-08-03 and newer. Specifies whether the snapshot virtual directory should be accessible at the root of share mount point when NFS is enabled. This header is only returned for shares, not for snapshots. */
6094
+ enableSnapshotVirtualDirectoryAccess?: boolean;
6064
6095
  /** Error Code */
6065
6096
  errorCode?: string;
6066
6097
  }
@@ -6301,6 +6332,7 @@ export declare interface SharePropertiesInternal {
6301
6332
  leaseDuration?: LeaseDurationType;
6302
6333
  enabledProtocols?: string;
6303
6334
  rootSquash?: ShareRootSquash;
6335
+ enableSnapshotVirtualDirectoryAccess?: boolean;
6304
6336
  }
6305
6337
 
6306
6338
  /**
@@ -6497,7 +6529,7 @@ export declare class ShareServiceClient extends StorageClient {
6497
6529
  * If not specified, AnonymousCredential is used.
6498
6530
  * @param options - Optional. Options to configure the HTTP pipeline.
6499
6531
  */
6500
- constructor(url: string, credential?: AnonymousCredential | StorageSharedKeyCredential | TokenCredential, options?: ShareClientOptions);
6532
+ constructor(url: string, credential?: Credential_2 | TokenCredential, options?: ShareClientOptions);
6501
6533
  /**
6502
6534
  * Creates an instance of ShareServiceClient.
6503
6535
  *
@@ -6508,7 +6540,7 @@ export declare class ShareServiceClient extends StorageClient {
6508
6540
  * pipeline, or provide a customized pipeline.
6509
6541
  * @param options - Optional. Options to configure the HTTP pipeline.
6510
6542
  */
6511
- constructor(url: string, pipeline: Pipeline, options?: ShareClientOptions);
6543
+ constructor(url: string, pipeline: Pipeline, options?: ShareClientConfig);
6512
6544
  /**
6513
6545
  * Creates a ShareClient object.
6514
6546
  *
@@ -6822,6 +6854,7 @@ declare interface ShareSetPropertiesOptionalParams extends coreClient.OperationO
6822
6854
  accessTier?: ShareAccessTier;
6823
6855
  /** Root squash to set on the share. Only valid for NFS shares. */
6824
6856
  rootSquash?: ShareRootSquash;
6857
+ enableSnapshotVirtualDirectoryAccess?: boolean;
6825
6858
  }
6826
6859
 
6827
6860
  /**
@@ -7051,6 +7084,16 @@ declare interface StorageClientOptionalParams extends coreHttpCompat.ExtendedSer
7051
7084
  endpoint?: string;
7052
7085
  }
7053
7086
 
7087
+ /**
7088
+ * Defines the known cloud audiences for Storage.
7089
+ */
7090
+ export declare enum StorageFileAudience {
7091
+ /**
7092
+ * The OAuth scope to use to retrieve an AAD token for Azure Storage.
7093
+ */
7094
+ StorageOAuthScopes = "https://storage.azure.com/.default"
7095
+ }
7096
+
7054
7097
  /**
7055
7098
  * The OAuth scope to use with Azure Storage.
7056
7099
  */
@@ -7082,8 +7125,9 @@ export declare interface StoragePipelineOptions {
7082
7125
  httpClient?: RequestPolicy;
7083
7126
  /**
7084
7127
  * The audience used to retrieve an AAD token.
7128
+ * By default, audience 'https://storage.azure.com/.default' will be used.
7085
7129
  */
7086
- audience?: string | string[];
7130
+ audience?: string;
7087
7131
  }
7088
7132
 
7089
7133
  /**
@@ -7119,15 +7163,6 @@ export declare interface StorageRetryOptions {
7119
7163
  * If you specify 0, then you must also specify 0 for retryDelayInMs.
7120
7164
  */
7121
7165
  readonly maxRetryDelayInMs?: number;
7122
- /**
7123
- * If a secondaryHost is specified, retries will be tried against this host. If secondaryHost is undefined
7124
- * (the default) then operations are not retried against another host.
7125
- *
7126
- * NOTE: Before setting this field, make sure you understand the issues around
7127
- * reading stale and potentially-inconsistent data at
7128
- * {@link https://docs.microsoft.com/en-us/azure/storage/common/storage-designing-ha-apps-with-ragrs}
7129
- */
7130
- readonly secondaryHost?: string;
7131
7166
  }
7132
7167
 
7133
7168
  /**
@@ -1,11 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { blobToString } from "./utils/utils.browser";
4
- export async function getBodyAsText(batchResponse) {
5
- const blob = (await batchResponse.blobBody);
6
- return blobToString(blob);
7
- }
8
- export function utf8ByteLength(str) {
9
- return new Blob([str]).size;
10
- }
11
- //# sourceMappingURL=BatchUtils.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BatchUtils.browser.js","sourceRoot":"","sources":["../../../../storage-blob/src/BatchUtils.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,aAA8C;IAE9C,MAAM,IAAI,GAAG,CAAC,MAAM,aAAa,CAAC,QAAQ,CAAS,CAAC;IACpD,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,OAAO,IAAI,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9B,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { ServiceSubmitBatchResponseModel } from \"./generatedModels\";\nimport { blobToString } from \"./utils/utils.browser\";\n\nexport async function getBodyAsText(\n batchResponse: ServiceSubmitBatchResponseModel\n): Promise<string> {\n const blob = (await batchResponse.blobBody) as Blob;\n return blobToString(blob);\n}\n\nexport function utf8ByteLength(str: string): number {\n return new Blob([str]).size;\n}\n"]}
@@ -1,7 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- // This file is used as a shim of "BlobDownloadResponse" for some browser bundlers
4
- // when trying to bundle "BlobDownloadResponse"
5
- // "BlobDownloadResponse" class is only available in Node.js runtime
6
- export const BlobDownloadResponse = 1;
7
- //# sourceMappingURL=BlobDownloadResponse.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlobDownloadResponse.browser.js","sourceRoot":"","sources":["../../../../storage-blob/src/BlobDownloadResponse.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,kFAAkF;AAClF,+CAA+C;AAC/C,oEAAoE;AACpE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// This file is used as a shim of \"BlobDownloadResponse\" for some browser bundlers\n// when trying to bundle \"BlobDownloadResponse\"\n// \"BlobDownloadResponse\" class is only available in Node.js runtime\nexport const BlobDownloadResponse = 1;\n"]}
@@ -1,362 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- /**
4
- * ONLY AVAILABLE IN BROWSER RUNTIME.
5
- *
6
- * BlobQueryResponse implements BlobDownloadResponseModel interface, and in browser runtime it will
7
- * parse avor data returned by blob query.
8
- */
9
- export class BlobQueryResponse {
10
- /**
11
- * Indicates that the service supports
12
- * requests for partial file content.
13
- *
14
- * @readonly
15
- */
16
- get acceptRanges() {
17
- return this.originalResponse.acceptRanges;
18
- }
19
- /**
20
- * Returns if it was previously specified
21
- * for the file.
22
- *
23
- * @readonly
24
- */
25
- get cacheControl() {
26
- return this.originalResponse.cacheControl;
27
- }
28
- /**
29
- * Returns the value that was specified
30
- * for the 'x-ms-content-disposition' header and specifies how to process the
31
- * response.
32
- *
33
- * @readonly
34
- */
35
- get contentDisposition() {
36
- return this.originalResponse.contentDisposition;
37
- }
38
- /**
39
- * Returns the value that was specified
40
- * for the Content-Encoding request header.
41
- *
42
- * @readonly
43
- */
44
- get contentEncoding() {
45
- return this.originalResponse.contentEncoding;
46
- }
47
- /**
48
- * Returns the value that was specified
49
- * for the Content-Language request header.
50
- *
51
- * @readonly
52
- */
53
- get contentLanguage() {
54
- return this.originalResponse.contentLanguage;
55
- }
56
- /**
57
- * The current sequence number for a
58
- * page blob. This header is not returned for block blobs or append blobs.
59
- *
60
- * @readonly
61
- */
62
- get blobSequenceNumber() {
63
- return this.originalResponse.blobSequenceNumber;
64
- }
65
- /**
66
- * The blob's type. Possible values include:
67
- * 'BlockBlob', 'PageBlob', 'AppendBlob'.
68
- *
69
- * @readonly
70
- */
71
- get blobType() {
72
- return this.originalResponse.blobType;
73
- }
74
- /**
75
- * The number of bytes present in the
76
- * response body.
77
- *
78
- * @readonly
79
- */
80
- get contentLength() {
81
- return this.originalResponse.contentLength;
82
- }
83
- /**
84
- * If the file has an MD5 hash and the
85
- * request is to read the full file, this response header is returned so that
86
- * the client can check for message content integrity. If the request is to
87
- * read a specified range and the 'x-ms-range-get-content-md5' is set to
88
- * true, then the request returns an MD5 hash for the range, as long as the
89
- * range size is less than or equal to 4 MB. If neither of these sets of
90
- * conditions is true, then no value is returned for the 'Content-MD5'
91
- * header.
92
- *
93
- * @readonly
94
- */
95
- get contentMD5() {
96
- return this.originalResponse.contentMD5;
97
- }
98
- /**
99
- * Indicates the range of bytes returned if
100
- * the client requested a subset of the file by setting the Range request
101
- * header.
102
- *
103
- * @readonly
104
- */
105
- get contentRange() {
106
- return this.originalResponse.contentRange;
107
- }
108
- /**
109
- * The content type specified for the file.
110
- * The default content type is 'application/octet-stream'
111
- *
112
- * @readonly
113
- */
114
- get contentType() {
115
- return this.originalResponse.contentType;
116
- }
117
- /**
118
- * Conclusion time of the last attempted
119
- * Copy File operation where this file was the destination file. This value
120
- * can specify the time of a completed, aborted, or failed copy attempt.
121
- *
122
- * @readonly
123
- */
124
- get copyCompletedOn() {
125
- return undefined;
126
- }
127
- /**
128
- * String identifier for the last attempted Copy
129
- * File operation where this file was the destination file.
130
- *
131
- * @readonly
132
- */
133
- get copyId() {
134
- return this.originalResponse.copyId;
135
- }
136
- /**
137
- * Contains the number of bytes copied and
138
- * the total bytes in the source in the last attempted Copy File operation
139
- * where this file was the destination file. Can show between 0 and
140
- * Content-Length bytes copied.
141
- *
142
- * @readonly
143
- */
144
- get copyProgress() {
145
- return this.originalResponse.copyProgress;
146
- }
147
- /**
148
- * URL up to 2KB in length that specifies the
149
- * source file used in the last attempted Copy File operation where this file
150
- * was the destination file.
151
- *
152
- * @readonly
153
- */
154
- get copySource() {
155
- return this.originalResponse.copySource;
156
- }
157
- /**
158
- * State of the copy operation
159
- * identified by 'x-ms-copy-id'. Possible values include: 'pending',
160
- * 'success', 'aborted', 'failed'
161
- *
162
- * @readonly
163
- */
164
- get copyStatus() {
165
- return this.originalResponse.copyStatus;
166
- }
167
- /**
168
- * Only appears when
169
- * x-ms-copy-status is failed or pending. Describes cause of fatal or
170
- * non-fatal copy operation failure.
171
- *
172
- * @readonly
173
- */
174
- get copyStatusDescription() {
175
- return this.originalResponse.copyStatusDescription;
176
- }
177
- /**
178
- * When a blob is leased,
179
- * specifies whether the lease is of infinite or fixed duration. Possible
180
- * values include: 'infinite', 'fixed'.
181
- *
182
- * @readonly
183
- */
184
- get leaseDuration() {
185
- return this.originalResponse.leaseDuration;
186
- }
187
- /**
188
- * Lease state of the blob. Possible
189
- * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.
190
- *
191
- * @readonly
192
- */
193
- get leaseState() {
194
- return this.originalResponse.leaseState;
195
- }
196
- /**
197
- * The current lease status of the
198
- * blob. Possible values include: 'locked', 'unlocked'.
199
- *
200
- * @readonly
201
- */
202
- get leaseStatus() {
203
- return this.originalResponse.leaseStatus;
204
- }
205
- /**
206
- * A UTC date/time value generated by the service that
207
- * indicates the time at which the response was initiated.
208
- *
209
- * @readonly
210
- */
211
- get date() {
212
- return this.originalResponse.date;
213
- }
214
- /**
215
- * The number of committed blocks
216
- * present in the blob. This header is returned only for append blobs.
217
- *
218
- * @readonly
219
- */
220
- get blobCommittedBlockCount() {
221
- return this.originalResponse.blobCommittedBlockCount;
222
- }
223
- /**
224
- * The ETag contains a value that you can use to
225
- * perform operations conditionally, in quotes.
226
- *
227
- * @readonly
228
- */
229
- get etag() {
230
- return this.originalResponse.etag;
231
- }
232
- /**
233
- * The error code.
234
- *
235
- * @readonly
236
- */
237
- get errorCode() {
238
- return this.originalResponse.errorCode;
239
- }
240
- /**
241
- * The value of this header is set to
242
- * true if the file data and application metadata are completely encrypted
243
- * using the specified algorithm. Otherwise, the value is set to false (when
244
- * the file is unencrypted, or if only parts of the file/application metadata
245
- * are encrypted).
246
- *
247
- * @readonly
248
- */
249
- get isServerEncrypted() {
250
- return this.originalResponse.isServerEncrypted;
251
- }
252
- /**
253
- * If the blob has a MD5 hash, and if
254
- * request contains range header (Range or x-ms-range), this response header
255
- * is returned with the value of the whole blob's MD5 value. This value may
256
- * or may not be equal to the value returned in Content-MD5 header, with the
257
- * latter calculated from the requested range.
258
- *
259
- * @readonly
260
- */
261
- get blobContentMD5() {
262
- return this.originalResponse.blobContentMD5;
263
- }
264
- /**
265
- * Returns the date and time the file was last
266
- * modified. Any operation that modifies the file or its properties updates
267
- * the last modified time.
268
- *
269
- * @readonly
270
- */
271
- get lastModified() {
272
- return this.originalResponse.lastModified;
273
- }
274
- /**
275
- * A name-value pair
276
- * to associate with a file storage object.
277
- *
278
- * @readonly
279
- */
280
- get metadata() {
281
- return this.originalResponse.metadata;
282
- }
283
- /**
284
- * This header uniquely identifies the request
285
- * that was made and can be used for troubleshooting the request.
286
- *
287
- * @readonly
288
- */
289
- get requestId() {
290
- return this.originalResponse.requestId;
291
- }
292
- /**
293
- * If a client request id header is sent in the request, this header will be present in the
294
- * response with the same value.
295
- *
296
- * @readonly
297
- */
298
- get clientRequestId() {
299
- return this.originalResponse.clientRequestId;
300
- }
301
- /**
302
- * Indicates the version of the File service used
303
- * to execute the request.
304
- *
305
- * @readonly
306
- */
307
- get version() {
308
- return this.originalResponse.version;
309
- }
310
- /**
311
- * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned
312
- * when the blob was encrypted with a customer-provided key.
313
- *
314
- * @readonly
315
- */
316
- get encryptionKeySha256() {
317
- return this.originalResponse.encryptionKeySha256;
318
- }
319
- /**
320
- * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to
321
- * true, then the request returns a crc64 for the range, as long as the range size is less than
322
- * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is
323
- * specified in the same request, it will fail with 400(Bad Request)
324
- */
325
- get contentCrc64() {
326
- return this.originalResponse.contentCrc64;
327
- }
328
- /**
329
- * The response body as a browser Blob.
330
- * Always undefined in node.js.
331
- *
332
- * @readonly
333
- */
334
- get blobBody() {
335
- throw Error(`Quick query in browser is not supported yet.`);
336
- }
337
- /**
338
- * The response body as a node.js Readable stream.
339
- * Always undefined in the browser.
340
- *
341
- * @readonly
342
- */
343
- get readableStreamBody() {
344
- return undefined;
345
- }
346
- /**
347
- * The HTTP response.
348
- */
349
- get _response() {
350
- return this.originalResponse._response;
351
- }
352
- /**
353
- * Creates an instance of BlobQueryResponse.
354
- *
355
- * @param originalResponse -
356
- * @param options -
357
- */
358
- constructor(originalResponse, _options = {}) {
359
- this.originalResponse = originalResponse;
360
- }
361
- }
362
- //# sourceMappingURL=BlobQueryResponse.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlobQueryResponse.browser.js","sourceRoot":"","sources":["../../../../storage-blob/src/BlobQueryResponse.browser.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n BlobDownloadResponseModel,\n BlobType,\n CopyStatusType,\n LeaseDurationType,\n LeaseStateType,\n LeaseStatusType,\n BlobQueryResponseModel,\n BlobQueryHeaders,\n} from \"./generatedModels\";\nimport { Metadata } from \"./models\";\nimport { BlobQuickQueryStreamOptions } from \"./utils/BlobQuickQueryStream\";\nimport { ResponseWithHeaders } from \"./utils/utils.common\";\n\n/**\n * ONLY AVAILABLE IN BROWSER RUNTIME.\n *\n * BlobQueryResponse implements BlobDownloadResponseModel interface, and in browser runtime it will\n * parse avor data returned by blob query.\n */\nexport class BlobQueryResponse implements BlobDownloadResponseModel {\n /**\n * Indicates that the service supports\n * requests for partial file content.\n *\n * @readonly\n */\n public get acceptRanges(): string | undefined {\n return this.originalResponse.acceptRanges;\n }\n\n /**\n * Returns if it was previously specified\n * for the file.\n *\n * @readonly\n */\n public get cacheControl(): string | undefined {\n return this.originalResponse.cacheControl;\n }\n\n /**\n * Returns the value that was specified\n * for the 'x-ms-content-disposition' header and specifies how to process the\n * response.\n *\n * @readonly\n */\n public get contentDisposition(): string | undefined {\n return this.originalResponse.contentDisposition;\n }\n\n /**\n * Returns the value that was specified\n * for the Content-Encoding request header.\n *\n * @readonly\n */\n public get contentEncoding(): string | undefined {\n return this.originalResponse.contentEncoding;\n }\n\n /**\n * Returns the value that was specified\n * for the Content-Language request header.\n *\n * @readonly\n */\n public get contentLanguage(): string | undefined {\n return this.originalResponse.contentLanguage;\n }\n\n /**\n * The current sequence number for a\n * page blob. This header is not returned for block blobs or append blobs.\n *\n * @readonly\n */\n public get blobSequenceNumber(): number | undefined {\n return this.originalResponse.blobSequenceNumber;\n }\n\n /**\n * The blob's type. Possible values include:\n * 'BlockBlob', 'PageBlob', 'AppendBlob'.\n *\n * @readonly\n */\n public get blobType(): BlobType | undefined {\n return this.originalResponse.blobType;\n }\n\n /**\n * The number of bytes present in the\n * response body.\n *\n * @readonly\n */\n public get contentLength(): number | undefined {\n return this.originalResponse.contentLength;\n }\n\n /**\n * If the file has an MD5 hash and the\n * request is to read the full file, this response header is returned so that\n * the client can check for message content integrity. If the request is to\n * read a specified range and the 'x-ms-range-get-content-md5' is set to\n * true, then the request returns an MD5 hash for the range, as long as the\n * range size is less than or equal to 4 MB. If neither of these sets of\n * conditions is true, then no value is returned for the 'Content-MD5'\n * header.\n *\n * @readonly\n */\n public get contentMD5(): Uint8Array | undefined {\n return this.originalResponse.contentMD5;\n }\n\n /**\n * Indicates the range of bytes returned if\n * the client requested a subset of the file by setting the Range request\n * header.\n *\n * @readonly\n */\n public get contentRange(): string | undefined {\n return this.originalResponse.contentRange;\n }\n\n /**\n * The content type specified for the file.\n * The default content type is 'application/octet-stream'\n *\n * @readonly\n */\n public get contentType(): string | undefined {\n return this.originalResponse.contentType;\n }\n\n /**\n * Conclusion time of the last attempted\n * Copy File operation where this file was the destination file. This value\n * can specify the time of a completed, aborted, or failed copy attempt.\n *\n * @readonly\n */\n public get copyCompletedOn(): Date | undefined {\n return undefined;\n }\n\n /**\n * String identifier for the last attempted Copy\n * File operation where this file was the destination file.\n *\n * @readonly\n */\n public get copyId(): string | undefined {\n return this.originalResponse.copyId;\n }\n\n /**\n * Contains the number of bytes copied and\n * the total bytes in the source in the last attempted Copy File operation\n * where this file was the destination file. Can show between 0 and\n * Content-Length bytes copied.\n *\n * @readonly\n */\n public get copyProgress(): string | undefined {\n return this.originalResponse.copyProgress;\n }\n\n /**\n * URL up to 2KB in length that specifies the\n * source file used in the last attempted Copy File operation where this file\n * was the destination file.\n *\n * @readonly\n */\n public get copySource(): string | undefined {\n return this.originalResponse.copySource;\n }\n\n /**\n * State of the copy operation\n * identified by 'x-ms-copy-id'. Possible values include: 'pending',\n * 'success', 'aborted', 'failed'\n *\n * @readonly\n */\n public get copyStatus(): CopyStatusType | undefined {\n return this.originalResponse.copyStatus;\n }\n\n /**\n * Only appears when\n * x-ms-copy-status is failed or pending. Describes cause of fatal or\n * non-fatal copy operation failure.\n *\n * @readonly\n */\n public get copyStatusDescription(): string | undefined {\n return this.originalResponse.copyStatusDescription;\n }\n\n /**\n * When a blob is leased,\n * specifies whether the lease is of infinite or fixed duration. Possible\n * values include: 'infinite', 'fixed'.\n *\n * @readonly\n */\n public get leaseDuration(): LeaseDurationType | undefined {\n return this.originalResponse.leaseDuration;\n }\n\n /**\n * Lease state of the blob. Possible\n * values include: 'available', 'leased', 'expired', 'breaking', 'broken'.\n *\n * @readonly\n */\n public get leaseState(): LeaseStateType | undefined {\n return this.originalResponse.leaseState;\n }\n\n /**\n * The current lease status of the\n * blob. Possible values include: 'locked', 'unlocked'.\n *\n * @readonly\n */\n public get leaseStatus(): LeaseStatusType | undefined {\n return this.originalResponse.leaseStatus;\n }\n\n /**\n * A UTC date/time value generated by the service that\n * indicates the time at which the response was initiated.\n *\n * @readonly\n */\n public get date(): Date | undefined {\n return this.originalResponse.date;\n }\n\n /**\n * The number of committed blocks\n * present in the blob. This header is returned only for append blobs.\n *\n * @readonly\n */\n public get blobCommittedBlockCount(): number | undefined {\n return this.originalResponse.blobCommittedBlockCount;\n }\n\n /**\n * The ETag contains a value that you can use to\n * perform operations conditionally, in quotes.\n *\n * @readonly\n */\n public get etag(): string | undefined {\n return this.originalResponse.etag;\n }\n\n /**\n * The error code.\n *\n * @readonly\n */\n public get errorCode(): string | undefined {\n return this.originalResponse.errorCode;\n }\n\n /**\n * The value of this header is set to\n * true if the file data and application metadata are completely encrypted\n * using the specified algorithm. Otherwise, the value is set to false (when\n * the file is unencrypted, or if only parts of the file/application metadata\n * are encrypted).\n *\n * @readonly\n */\n public get isServerEncrypted(): boolean | undefined {\n return this.originalResponse.isServerEncrypted;\n }\n\n /**\n * If the blob has a MD5 hash, and if\n * request contains range header (Range or x-ms-range), this response header\n * is returned with the value of the whole blob's MD5 value. This value may\n * or may not be equal to the value returned in Content-MD5 header, with the\n * latter calculated from the requested range.\n *\n * @readonly\n */\n public get blobContentMD5(): Uint8Array | undefined {\n return this.originalResponse.blobContentMD5;\n }\n\n /**\n * Returns the date and time the file was last\n * modified. Any operation that modifies the file or its properties updates\n * the last modified time.\n *\n * @readonly\n */\n public get lastModified(): Date | undefined {\n return this.originalResponse.lastModified;\n }\n\n /**\n * A name-value pair\n * to associate with a file storage object.\n *\n * @readonly\n */\n public get metadata(): Metadata | undefined {\n return this.originalResponse.metadata;\n }\n\n /**\n * This header uniquely identifies the request\n * that was made and can be used for troubleshooting the request.\n *\n * @readonly\n */\n public get requestId(): string | undefined {\n return this.originalResponse.requestId;\n }\n\n /**\n * If a client request id header is sent in the request, this header will be present in the\n * response with the same value.\n *\n * @readonly\n */\n public get clientRequestId(): string | undefined {\n return this.originalResponse.clientRequestId;\n }\n\n /**\n * Indicates the version of the File service used\n * to execute the request.\n *\n * @readonly\n */\n public get version(): string | undefined {\n return this.originalResponse.version;\n }\n\n /**\n * The SHA-256 hash of the encryption key used to encrypt the blob. This value is only returned\n * when the blob was encrypted with a customer-provided key.\n *\n * @readonly\n */\n public get encryptionKeySha256(): string | undefined {\n return this.originalResponse.encryptionKeySha256;\n }\n\n /**\n * If the request is to read a specified range and the x-ms-range-get-content-crc64 is set to\n * true, then the request returns a crc64 for the range, as long as the range size is less than\n * or equal to 4 MB. If both x-ms-range-get-content-crc64 & x-ms-range-get-content-md5 is\n * specified in the same request, it will fail with 400(Bad Request)\n */\n public get contentCrc64(): Uint8Array | undefined {\n return this.originalResponse.contentCrc64;\n }\n\n /**\n * The response body as a browser Blob.\n * Always undefined in node.js.\n *\n * @readonly\n */\n public get blobBody(): Promise<Blob> | undefined {\n throw Error(`Quick query in browser is not supported yet.`);\n }\n\n /**\n * The response body as a node.js Readable stream.\n * Always undefined in the browser.\n *\n * @readonly\n */\n public get readableStreamBody(): NodeJS.ReadableStream | undefined {\n return undefined;\n }\n\n /**\n * The HTTP response.\n */\n public get _response(): ResponseWithHeaders<BlobQueryHeaders>[\"_response\"] {\n return this.originalResponse._response;\n }\n\n private originalResponse: BlobQueryResponseModel;\n\n /**\n * Creates an instance of BlobQueryResponse.\n *\n * @param originalResponse -\n * @param options -\n */\n public constructor(\n originalResponse: BlobQueryResponseModel,\n _options: BlobQuickQueryStreamOptions = {}\n ) {\n this.originalResponse = originalResponse;\n }\n}\n"]}
@@ -1,23 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { RestError } from "@azure/core-rest-pipeline";
4
- export * from "./BlobServiceClient";
5
- export * from "./Clients";
6
- export * from "./ContainerClient";
7
- export * from "./BlobLeaseClient";
8
- export * from "./BlobBatch";
9
- export * from "./BlobBatchClient";
10
- export * from "./BatchResponse";
11
- export * from "./StorageBrowserPolicyFactory";
12
- export * from "./credentials/AnonymousCredential";
13
- export * from "./credentials/Credential";
14
- export { BlockBlobTier, PremiumPageBlobTier, } from "./models";
15
- export { Pipeline, isPipelineLike, newPipeline, StorageOAuthScopes, } from "./Pipeline";
16
- export { BaseRequestPolicy } from "./policies/RequestPolicy";
17
- export * from "./policies/AnonymousCredentialPolicy";
18
- export * from "./policies/CredentialPolicy";
19
- export * from "./StorageRetryPolicyFactory";
20
- export * from "./generatedModels";
21
- export { RestError };
22
- export { logger } from "./log";
23
- //# sourceMappingURL=index.browser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.browser.js","sourceRoot":"","sources":["../../../../storage-blob/src/index.browser.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AAGzC,OAAO,EACL,aAAa,EAEb,mBAAmB,GAOpB,MAAM,UAAU,CAAC;AAClB,OAAO,EACL,QAAQ,EAGR,cAAc,EACd,WAAW,EAUX,kBAAkB,GAEnB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,cAAc,sCAAsC,CAAC;AACrD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,CAAC;AAMrB,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\nexport * from \"./BlobServiceClient\";\nexport * from \"./Clients\";\nexport * from \"./ContainerClient\";\nexport * from \"./BlobLeaseClient\";\nexport * from \"./BlobBatch\";\nexport * from \"./BlobBatchClient\";\nexport * from \"./BatchResponse\";\nexport * from \"./StorageBrowserPolicyFactory\";\nexport * from \"./credentials/AnonymousCredential\";\nexport * from \"./credentials/Credential\";\nexport { SasIPRange } from \"./sas/SasIPRange\";\nexport { Range } from \"./Range\";\nexport {\n BlockBlobTier,\n BlobImmutabilityPolicy,\n PremiumPageBlobTier,\n Tags,\n TagConditions,\n ContainerRequestConditions,\n HttpAuthorization,\n ModificationConditions,\n MatchConditions,\n} from \"./models\";\nexport {\n Pipeline,\n PipelineLike,\n PipelineOptions,\n isPipelineLike,\n newPipeline,\n StoragePipelineOptions,\n RequestPolicyFactory,\n RequestPolicy,\n RequestPolicyOptions,\n WebResource,\n HttpOperationResponse,\n HttpHeaders,\n HttpRequestBody,\n IHttpClient,\n StorageOAuthScopes,\n ServiceClientOptions,\n} from \"./Pipeline\";\nexport { BaseRequestPolicy } from \"./policies/RequestPolicy\";\nexport * from \"./policies/AnonymousCredentialPolicy\";\nexport * from \"./policies/CredentialPolicy\";\nexport * from \"./StorageRetryPolicyFactory\";\nexport { CommonOptions } from \"./StorageClient\";\nexport * from \"./generatedModels\";\nexport { RestError };\nexport {\n PageBlobGetPageRangesDiffResponse,\n PageBlobGetPageRangesResponse,\n PageList,\n} from \"./PageBlobRangeResponse\";\nexport { logger } from \"./log\";\n"]}