-
Notifications
You must be signed in to change notification settings - Fork 181
/
AppendBlobClient.yml
1451 lines (1245 loc) · 51.1 KB
/
AppendBlobClient.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
### YamlMime:TSType
name: AppendBlobClient
uid: '@azure/storage-blob.AppendBlobClient'
package: '@azure/storage-blob'
summary: AppendBlobClient defines a set of operations applicable to append blobs.
fullName: AppendBlobClient
remarks: ''
isDeprecated: false
type: class
constructors:
- name: AppendBlobClient(string, PipelineLike)
uid: '@azure/storage-blob.AppendBlobClient.constructor_2'
package: '@azure/storage-blob'
summary: >-
Creates an instance of AppendBlobClient.
This method accepts an encoded URL or non-encoded URL pointing to an
append blob.
Encoded URL string will NOT be escaped twice, only special characters in
URL path will be escaped.
If a blob name includes ? or %, blob name must be encoded in the URL.
remarks: ''
isDeprecated: false
syntax:
content: 'new AppendBlobClient(url: string, pipeline: PipelineLike)'
parameters:
- id: url
type: string
description: |-
A URL string pointing to Azure Storage append blob, such as
"https://myaccount.blob.core.windows.net/mycontainer/appendblob". You can
append a SAS if using AnonymousCredential, such as
"https://myaccount.blob.core.windows.net/mycontainer/appendblob?sasString".
This method accepts an encoded URL or non-encoded URL pointing to a blob.
Encoded URL string will NOT be escaped twice, only special characters in URL path will be escaped.
However, if a blob name includes ? or %, blob name must be encoded in the URL.
Such as a blob named "my?blob%", the URL should be "https://myaccount.blob.core.windows.net/mycontainer/my%3Fblob%25".
- id: pipeline
type: <xref uid="@azure/storage-blob.PipelineLike" />
description: |-
Call newPipeline() to create a default
pipeline, or provide a customized pipeline.
- name: >-
AppendBlobClient(string, StorageSharedKeyCredential | AnonymousCredential
| TokenCredential, StoragePipelineOptions)
uid: '@azure/storage-blob.AppendBlobClient.constructor_1'
package: '@azure/storage-blob'
summary: >-
Creates an instance of AppendBlobClient.
This method accepts an encoded URL or non-encoded URL pointing to an
append blob.
Encoded URL string will NOT be escaped twice, only special characters in
URL path will be escaped.
If a blob name includes ? or %, blob name must be encoded in the URL.
remarks: ''
isDeprecated: false
syntax:
content: >-
new AppendBlobClient(url: string, credential: StorageSharedKeyCredential
| AnonymousCredential | TokenCredential, options?:
StoragePipelineOptions)
parameters:
- id: url
type: string
description: |-
A URL string pointing to Azure Storage append blob, such as
"https://myaccount.blob.core.windows.net/mycontainer/appendblob". You can
append a SAS if using AnonymousCredential, such as
"https://myaccount.blob.core.windows.net/mycontainer/appendblob?sasString".
This method accepts an encoded URL or non-encoded URL pointing to a blob.
Encoded URL string will NOT be escaped twice, only special characters in URL path will be escaped.
However, if a blob name includes ? or %, blob name must be encoded in the URL.
Such as a blob named "my?blob%", the URL should be "https://myaccount.blob.core.windows.net/mycontainer/my%3Fblob%25".
- id: credential
type: >-
<xref uid="@azure/storage-blob.StorageSharedKeyCredential" /> |
<xref uid="@azure/storage-blob.AnonymousCredential" /> | <xref
uid="@azure/core-auth.TokenCredential" />
description: >-
Such as AnonymousCredential, StorageSharedKeyCredential or any
credential from the `@azure/identity` package to authenticate
requests to the service. You can also provide an object that
implements the TokenCredential interface. If not specified,
AnonymousCredential is used.
- id: options
type: <xref uid="@azure/storage-blob.StoragePipelineOptions" />
description: Optional. Options to configure the HTTP pipeline.
- name: AppendBlobClient(string, string, string, StoragePipelineOptions)
uid: '@azure/storage-blob.AppendBlobClient.constructor'
package: '@azure/storage-blob'
summary: Creates an instance of AppendBlobClient.
remarks: ''
isDeprecated: false
syntax:
content: >-
new AppendBlobClient(connectionString: string, containerName: string,
blobName: string, options?: StoragePipelineOptions)
parameters:
- id: connectionString
type: string
description: >-
Account connection string or a SAS connection string of an Azure
storage account.
[ Note - Account connection string can only be used in NODE.JS runtime. ]
Account connection string example -
`DefaultEndpointsProtocol=https;AccountName=myaccount;AccountKey=accountKey;EndpointSuffix=core.windows.net`
SAS connection string example -
`BlobEndpoint=https://myaccount.blob.core.windows.net/;QueueEndpoint=https://myaccount.queue.core.windows.net/;FileEndpoint=https://myaccount.file.core.windows.net/;TableEndpoint=https://myaccount.table.core.windows.net/;SharedAccessSignature=sasString`
- id: containerName
type: string
description: Container name.
- id: blobName
type: string
description: Blob name.
- id: options
type: <xref uid="@azure/storage-blob.StoragePipelineOptions" />
description: Optional. Options to configure the HTTP pipeline.
properties:
- name: containerName
uid: '@azure/storage-blob.AppendBlobClient.containerName'
package: '@azure/storage-blob'
summary: The name of the storage container the blob is associated with.
fullName: containerName
remarks: ''
isDeprecated: false
syntax:
content: string containerName
return:
description: ''
type: string
- name: name
uid: '@azure/storage-blob.AppendBlobClient.name'
package: '@azure/storage-blob'
summary: The name of the blob.
fullName: name
remarks: ''
isDeprecated: false
syntax:
content: string name
return:
description: ''
type: string
inheritedProperties:
- name: accountName
uid: '@azure/storage-blob.AppendBlobClient.accountName'
package: '@azure/storage-blob'
summary: ''
fullName: accountName
remarks: ''
isDeprecated: false
syntax:
content: 'accountName: string'
return:
description: ''
type: string
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.accountName](xref:@azure/storage-blob.BlobClient.accountName)
- name: credential
uid: '@azure/storage-blob.AppendBlobClient.credential'
package: '@azure/storage-blob'
summary: >-
Such as AnonymousCredential, StorageSharedKeyCredential or any credential
from the `@azure/identity` package to authenticate requests to the
service. You can also provide an object that implements the
TokenCredential interface. If not specified, AnonymousCredential is used.
fullName: credential
remarks: ''
isDeprecated: false
syntax:
content: >-
credential: StorageSharedKeyCredential | AnonymousCredential |
TokenCredential
return:
description: ''
type: >-
<xref uid="@azure/storage-blob.StorageSharedKeyCredential" /> | <xref
uid="@azure/storage-blob.AnonymousCredential" /> | <xref
uid="@azure/core-auth.TokenCredential" />
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.credential](xref:@azure/storage-blob.BlobClient.credential)
- name: url
uid: '@azure/storage-blob.AppendBlobClient.url'
package: '@azure/storage-blob'
summary: Encoded URL string value.
fullName: url
remarks: ''
isDeprecated: false
syntax:
content: 'url: string'
return:
description: ''
type: string
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.url](xref:@azure/storage-blob.BlobClient.url)
inheritedMethods:
- name: abortCopyFromURL(string, BlobAbortCopyFromURLOptions)
uid: '@azure/storage-blob.AppendBlobClient.abortCopyFromURL'
package: '@azure/storage-blob'
summary: >-
Aborts a pending asynchronous Copy Blob operation, and leaves a
destination blob with zero
length and full metadata. Version 2012-02-12 and newer.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/abort-copy-blob
remarks: ''
isDeprecated: false
syntax:
content: >-
function abortCopyFromURL(copyId: string, options?:
BlobAbortCopyFromURLOptions): Promise<BlobAbortCopyFromURLResponse>
parameters:
- id: copyId
type: string
description: Id of the Copy From URL operation.
- id: options
type: <xref uid="@azure/storage-blob.BlobAbortCopyFromURLOptions" />
description: Optional options to the Blob Abort Copy From URL operation.
return:
description: ''
type: >-
Promise<<xref
uid="@azure/storage-blob.BlobAbortCopyFromURLResponse" />>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.abortCopyFromURL](xref:@azure/storage-blob.BlobClient.abortCopyFromURL)
- name: beginCopyFromURL(string, BlobBeginCopyFromURLOptions)
uid: '@azure/storage-blob.AppendBlobClient.beginCopyFromURL'
package: '@azure/storage-blob'
summary: >-
Asynchronously copies a blob to a destination within the storage account.
This method returns a long running operation poller that allows you to
wait
indefinitely until the copy is completed.
You can also cancel a copy before it is completed by calling
`cancelOperation` on the poller.
Note that the onProgress callback will not be invoked if the operation
completes in the first
request, and attempting to cancel a completed copy will result in an error
being thrown.
In version 2012-02-12 and later, the source for a Copy Blob operation can
be
a committed blob in any Azure storage account.
Beginning with version 2015-02-21, the source for a Copy Blob operation
can be
an Azure file in any Azure storage account.
Only storage accounts created on or after June 7th, 2012 allow the Copy
Blob
operation to copy from another storage account.
See https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob
Example using automatic polling:
```js
const copyPoller = await blobClient.beginCopyFromURL('url');
const result = await copyPoller.pollUntilDone();
```
Example using manual polling:
```js
const copyPoller = await blobClient.beginCopyFromURL('url');
while (!poller.isDone()) {
await poller.poll();
}
const result = copyPoller.getResult();
```
Example using progress updates:
```js
const copyPoller = await blobClient.beginCopyFromURL('url', {
onProgress(state) {
console.log(`Progress: ${state.copyProgress}`);
}
});
const result = await copyPoller.pollUntilDone();
```
Example using a changing polling interval (default 15 seconds):
```js
const copyPoller = await blobClient.beginCopyFromURL('url', {
intervalInMs: 1000 // poll blob every 1 second for copy progress
});
const result = await copyPoller.pollUntilDone();
```
Example using copy cancellation:
```js
const copyPoller = await blobClient.beginCopyFromURL('url');
// cancel operation after starting it.
try {
await copyPoller.cancelOperation();
// calls to get the result now throw PollerCancelledError
await copyPoller.getResult();
} catch (err) {
if (err.name === 'PollerCancelledError') {
console.log('The copy was cancelled.');
}
}
```
remarks: ''
isDeprecated: false
syntax:
content: >-
function beginCopyFromURL(copySource: string, options?:
BlobBeginCopyFromURLOptions):
Promise<PollerLikeWithCancellation<PollOperationState<BlobBeginCopyFromURLResponse>,
BlobBeginCopyFromURLResponse>>
parameters:
- id: copySource
type: string
description: url to the source Azure Blob/File.
- id: options
type: <xref uid="@azure/storage-blob.BlobBeginCopyFromURLOptions" />
description: Optional options to the Blob Start Copy From URL operation.
return:
description: ''
type: >-
Promise<<xref uid="@azure/storage-blob.PollerLikeWithCancellation"
/><<xref uid="@azure/storage-blob.PollOperationState" /><<xref
uid="@azure/storage-blob.BlobBeginCopyFromURLResponse" />>, <xref
uid="@azure/storage-blob.BlobBeginCopyFromURLResponse" />>>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.beginCopyFromURL](xref:@azure/storage-blob.BlobClient.beginCopyFromURL)
- name: createSnapshot(BlobCreateSnapshotOptions)
uid: '@azure/storage-blob.AppendBlobClient.createSnapshot'
package: '@azure/storage-blob'
summary: >-
Creates a read-only snapshot of a blob.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/snapshot-blob
remarks: ''
isDeprecated: false
syntax:
content: >-
function createSnapshot(options?: BlobCreateSnapshotOptions):
Promise<BlobCreateSnapshotResponse>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.BlobCreateSnapshotOptions" />
description: Optional options to the Blob Create Snapshot operation.
return:
description: ''
type: >-
Promise<<xref uid="@azure/storage-blob.BlobCreateSnapshotResponse"
/>>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.createSnapshot](xref:@azure/storage-blob.BlobClient.createSnapshot)
- name: delete(BlobDeleteOptions)
uid: '@azure/storage-blob.AppendBlobClient.delete'
package: '@azure/storage-blob'
summary: >-
Marks the specified blob or snapshot for deletion. The blob is later
deleted
during garbage collection. Note that in order to delete a blob, you must
delete
all of its snapshots. You can delete both at the same time with the Delete
Blob operation.
See https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob
remarks: ''
isDeprecated: false
syntax:
content: >-
function delete(options?: BlobDeleteOptions):
Promise<BlobDeleteResponse>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.BlobDeleteOptions" />
description: Optional options to Blob Delete operation.
return:
description: ''
type: Promise<<xref uid="@azure/storage-blob.BlobDeleteResponse" />>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.delete](xref:@azure/storage-blob.BlobClient.delete)
- name: deleteIfExists(BlobDeleteOptions)
uid: '@azure/storage-blob.AppendBlobClient.deleteIfExists'
package: '@azure/storage-blob'
summary: >-
Marks the specified blob or snapshot for deletion if it exists. The blob
is later deleted
during garbage collection. Note that in order to delete a blob, you must
delete
all of its snapshots. You can delete both at the same time with the Delete
Blob operation.
See https://docs.microsoft.com/en-us/rest/api/storageservices/delete-blob
remarks: ''
isDeprecated: false
syntax:
content: >-
function deleteIfExists(options?: BlobDeleteOptions):
Promise<BlobDeleteIfExistsResponse>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.BlobDeleteOptions" />
description: Optional options to Blob Delete operation.
return:
description: ''
type: >-
Promise<<xref uid="@azure/storage-blob.BlobDeleteIfExistsResponse"
/>>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.deleteIfExists](xref:@azure/storage-blob.BlobClient.deleteIfExists)
- name: deleteImmutabilityPolicy(BlobDeleteImmutabilityPolicyOptions)
uid: '@azure/storage-blob.AppendBlobClient.deleteImmutabilityPolicy'
package: '@azure/storage-blob'
summary: Delete the immutablility policy on the blob.
remarks: ''
isDeprecated: false
syntax:
content: >-
function deleteImmutabilityPolicy(options?:
BlobDeleteImmutabilityPolicyOptions):
Promise<BlobDeleteImmutabilityPolicyResponse>
parameters:
- id: options
type: >-
<xref uid="@azure/storage-blob.BlobDeleteImmutabilityPolicyOptions"
/>
description: Optional options to delete immutability policy on the blob.
return:
description: ''
type: >-
Promise<<xref
uid="@azure/storage-blob.BlobDeleteImmutabilityPolicyResponse" />>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.deleteImmutabilityPolicy](xref:@azure/storage-blob.BlobClient.deleteImmutabilityPolicy)
- name: download(number, number, BlobDownloadOptions)
uid: '@azure/storage-blob.AppendBlobClient.download'
package: '@azure/storage-blob'
summary: >-
Reads or downloads a blob from the system, including its metadata and
properties.
You can also call Get Blob to read a snapshot.
* In Node.js, data returns in a Readable stream readableStreamBody
* In browsers, data returns in a promise blobBody
See https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob
remarks: ''
isDeprecated: false
syntax:
content: >-
function download(offset?: number, count?: number, options?:
BlobDownloadOptions): Promise<BlobDownloadResponseParsed>
parameters:
- id: offset
type: number
description: >-
From which position of the blob to download, greater than or equal
to 0
- id: count
type: number
description: >-
How much data to be downloaded, greater than 0. Will download to the
end when undefined
- id: options
type: <xref uid="@azure/storage-blob.BlobDownloadOptions" />
description: >-
Optional options to Blob Download operation.
Example usage (Node.js):
```js
// Download and convert a blob to a string
const downloadBlockBlobResponse = await blobClient.download();
const downloaded = await
streamToBuffer(downloadBlockBlobResponse.readableStreamBody);
console.log("Downloaded blob content:", downloaded.toString());
async function streamToBuffer(readableStream) {
return new Promise((resolve, reject) => {
const chunks = [];
readableStream.on("data", (data) => {
chunks.push(data instanceof Buffer ? data : Buffer.from(data));
});
readableStream.on("end", () => {
resolve(Buffer.concat(chunks));
});
readableStream.on("error", reject);
});
}
```
Example usage (browser):
```js
// Download and convert a blob to a string
const downloadBlockBlobResponse = await blobClient.download();
const downloaded = await blobToString(await
downloadBlockBlobResponse.blobBody);
console.log(
"Downloaded blob content",
downloaded
);
async function blobToString(blob: Blob): Promise<string> {
const fileReader = new FileReader();
return new Promise<string>((resolve, reject) => {
fileReader.onloadend = (ev: any) => {
resolve(ev.target!.result);
};
fileReader.onerror = reject;
fileReader.readAsText(blob);
});
}
```
return:
description: ''
type: >-
Promise<<xref uid="@azure/storage-blob.BlobDownloadResponseParsed"
/>>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.download](xref:@azure/storage-blob.BlobClient.download)
- name: downloadToBuffer(Buffer, number, number, BlobDownloadToBufferOptions)
uid: '@azure/storage-blob.AppendBlobClient.downloadToBuffer_1'
package: '@azure/storage-blob'
summary: >-
ONLY AVAILABLE IN NODE.JS RUNTIME.
Downloads an Azure Blob in parallel to a buffer.
Offset and count are optional, downloads the entire blob if they are not
provided.
Warning: Buffers can only support files up to about one gigabyte on 32-bit
systems or about two
gigabytes on 64-bit systems due to limitations of Node.js/V8. For blobs
larger than this size,
consider
[downloadToFile](xref:@azure/storage-blob.AppendBlobClient.downloadToFile).
remarks: ''
isDeprecated: false
syntax:
content: >-
function downloadToBuffer(buffer: Buffer, offset?: number, count?:
number, options?: BlobDownloadToBufferOptions): Promise<Buffer>
parameters:
- id: buffer
type: Buffer
description: Buffer to be fill, must have length larger than count
- id: offset
type: number
description: From which position of the block blob to download(in bytes)
- id: count
type: number
description: >-
How much data(in bytes) to be downloaded. Will download to the end
when passing undefined
- id: options
type: <xref uid="@azure/storage-blob.BlobDownloadToBufferOptions" />
description: BlobDownloadToBufferOptions
return:
description: ''
type: Promise<Buffer>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.downloadToBuffer](xref:@azure/storage-blob.BlobClient.downloadToBuffer)
- name: downloadToBuffer(number, number, BlobDownloadToBufferOptions)
uid: '@azure/storage-blob.AppendBlobClient.downloadToBuffer'
package: '@azure/storage-blob'
summary: >-
ONLY AVAILABLE IN NODE.JS RUNTIME.
Downloads an Azure Blob in parallel to a buffer.
Offset and count are optional, downloads the entire blob if they are not
provided.
Warning: Buffers can only support files up to about one gigabyte on 32-bit
systems or about two
gigabytes on 64-bit systems due to limitations of Node.js/V8. For blobs
larger than this size,
consider
[downloadToFile](xref:@azure/storage-blob.AppendBlobClient.downloadToFile).
remarks: ''
isDeprecated: false
syntax:
content: >-
function downloadToBuffer(offset?: number, count?: number, options?:
BlobDownloadToBufferOptions): Promise<Buffer>
parameters:
- id: offset
type: number
description: From which position of the block blob to download(in bytes)
- id: count
type: number
description: >-
How much data(in bytes) to be downloaded. Will download to the end
when passing undefined
- id: options
type: <xref uid="@azure/storage-blob.BlobDownloadToBufferOptions" />
description: BlobDownloadToBufferOptions
return:
description: ''
type: Promise<Buffer>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.downloadToBuffer](xref:@azure/storage-blob.BlobClient.downloadToBuffer)
- name: downloadToFile(string, number, number, BlobDownloadOptions)
uid: '@azure/storage-blob.AppendBlobClient.downloadToFile'
package: '@azure/storage-blob'
summary: >-
ONLY AVAILABLE IN NODE.JS RUNTIME.
Downloads an Azure Blob to a local file.
Fails if the the given file path already exits.
Offset and count are optional, pass 0 and undefined respectively to
download the entire blob.
remarks: ''
isDeprecated: false
syntax:
content: >-
function downloadToFile(filePath: string, offset?: number, count?:
number, options?: BlobDownloadOptions):
Promise<BlobDownloadResponseParsed>
parameters:
- id: filePath
type: string
description: ''
- id: offset
type: number
description: From which position of the block blob to download.
- id: count
type: number
description: >-
How much data to be downloaded. Will download to the end when
passing undefined.
- id: options
type: <xref uid="@azure/storage-blob.BlobDownloadOptions" />
description: Options to Blob download options.
return:
description: |-
The response data for blob download operation,
but with readableStreamBody set to undefined since its
content is already read and written into a local file
at the specified path.
type: >-
Promise<<xref uid="@azure/storage-blob.BlobDownloadResponseParsed"
/>>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.downloadToFile](xref:@azure/storage-blob.BlobClient.downloadToFile)
- name: exists(BlobExistsOptions)
uid: '@azure/storage-blob.AppendBlobClient.exists'
package: '@azure/storage-blob'
summary: >-
Returns true if the Azure blob resource represented by this client exists;
false otherwise.
NOTE: use this function with care since an existing blob might be deleted
by other clients or
applications. Vice versa new blobs might be added by other clients or
applications after this
function completes.
remarks: ''
isDeprecated: false
syntax:
content: 'function exists(options?: BlobExistsOptions): Promise<boolean>'
parameters:
- id: options
type: <xref uid="@azure/storage-blob.BlobExistsOptions" />
description: options to Exists operation.
return:
description: ''
type: Promise<boolean>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.exists](xref:@azure/storage-blob.BlobClient.exists)
- name: generateSasUrl(BlobGenerateSasUrlOptions)
uid: '@azure/storage-blob.AppendBlobClient.generateSasUrl'
package: '@azure/storage-blob'
summary: >-
Only available for BlobClient constructed with a shared key credential.
Generates a Blob Service Shared Access Signature (SAS) URI based on the
client properties
and parameters passed in. The SAS is signed by the shared key credential
of the client.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas
remarks: ''
isDeprecated: false
syntax:
content: >-
function generateSasUrl(options: BlobGenerateSasUrlOptions):
Promise<string>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.BlobGenerateSasUrlOptions" />
description: Optional parameters.
return:
description: >-
The SAS URI consisting of the URI to the resource represented by this
client, followed by the generated SAS token.
type: Promise<string>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.generateSasUrl](xref:@azure/storage-blob.BlobClient.generateSasUrl)
- name: getAppendBlobClient()
uid: '@azure/storage-blob.AppendBlobClient.getAppendBlobClient'
package: '@azure/storage-blob'
summary: Creates a AppendBlobClient object.
remarks: ''
isDeprecated: false
syntax:
content: 'function getAppendBlobClient(): AppendBlobClient'
return:
description: ''
type: <xref uid="@azure/storage-blob.AppendBlobClient" />
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.getAppendBlobClient](xref:@azure/storage-blob.BlobClient.getAppendBlobClient)
- name: getBlobLeaseClient(string)
uid: '@azure/storage-blob.AppendBlobClient.getBlobLeaseClient'
package: '@azure/storage-blob'
summary: >-
Get a [BlobLeaseClient](xref:@azure/storage-blob.BlobLeaseClient) that
manages leases on the blob.
remarks: ''
isDeprecated: false
syntax:
content: 'function getBlobLeaseClient(proposeLeaseId?: string): BlobLeaseClient'
parameters:
- id: proposeLeaseId
type: string
description: Initial proposed lease Id.
return:
description: A new BlobLeaseClient object for managing leases on the blob.
type: <xref uid="@azure/storage-blob.BlobLeaseClient" />
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.getBlobLeaseClient](xref:@azure/storage-blob.BlobClient.getBlobLeaseClient)
- name: getBlockBlobClient()
uid: '@azure/storage-blob.AppendBlobClient.getBlockBlobClient'
package: '@azure/storage-blob'
summary: Creates a BlockBlobClient object.
remarks: ''
isDeprecated: false
syntax:
content: 'function getBlockBlobClient(): BlockBlobClient'
return:
description: ''
type: <xref uid="@azure/storage-blob.BlockBlobClient" />
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.getBlockBlobClient](xref:@azure/storage-blob.BlobClient.getBlockBlobClient)
- name: getPageBlobClient()
uid: '@azure/storage-blob.AppendBlobClient.getPageBlobClient'
package: '@azure/storage-blob'
summary: Creates a PageBlobClient object.
remarks: ''
isDeprecated: false
syntax:
content: 'function getPageBlobClient(): PageBlobClient'
return:
description: ''
type: <xref uid="@azure/storage-blob.PageBlobClient" />
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.getPageBlobClient](xref:@azure/storage-blob.BlobClient.getPageBlobClient)
- name: getProperties(BlobGetPropertiesOptions)
uid: '@azure/storage-blob.AppendBlobClient.getProperties'
package: '@azure/storage-blob'
summary: >-
Returns all user-defined metadata, standard HTTP properties, and system
properties
for the blob. It does not return the content of the blob.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/get-blob-properties
WARNING: The `metadata` object returned in the response will have its keys
in lowercase, even if
they originally contained uppercase characters. This differs from the
metadata keys returned by
the methods of [ContainerClient](xref:@azure/storage-blob.ContainerClient)
that list blobs using the `includeMetadata` option, which
will retain their original casing.
remarks: ''
isDeprecated: false
syntax:
content: >-
function getProperties(options?: BlobGetPropertiesOptions):
Promise<BlobGetPropertiesResponse>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.BlobGetPropertiesOptions" />
description: Optional options to Get Properties operation.
return:
description: ''
type: >-
Promise<<xref uid="@azure/storage-blob.BlobGetPropertiesResponse"
/>>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.getProperties](xref:@azure/storage-blob.BlobClient.getProperties)
- name: getTags(BlobGetTagsOptions)
uid: '@azure/storage-blob.AppendBlobClient.getTags'
package: '@azure/storage-blob'
summary: Gets the tags associated with the underlying blob.
remarks: ''
isDeprecated: false
syntax:
content: >-
function getTags(options?: BlobGetTagsOptions):
Promise<BlobGetTagsResponse>
parameters:
- id: options
type: <xref uid="@azure/storage-blob.BlobGetTagsOptions" />
description: ''
return:
description: ''
type: Promise<<xref uid="@azure/storage-blob.BlobGetTagsResponse" />>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.getTags](xref:@azure/storage-blob.BlobClient.getTags)
- name: setAccessTier(string, BlobSetTierOptions)
uid: '@azure/storage-blob.AppendBlobClient.setAccessTier'
package: '@azure/storage-blob'
summary: >-
Sets the tier on a blob. The operation is allowed on a page blob in a
premium
storage account and on a block blob in a blob storage account (locally
redundant
storage only). A premium page blob's tier determines the allowed size,
IOPS,
and bandwidth of the blob. A block blob's tier determines Hot/Cool/Archive
storage type. This operation does not update the blob's ETag.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-tier
remarks: ''
isDeprecated: false
syntax:
content: >-
function setAccessTier(tier: string, options?: BlobSetTierOptions):
Promise<BlobSetTierResponse>
parameters:
- id: tier
type: string
description: >-
The tier to be set on the blob. Valid values are Hot, Cool, or
Archive.
- id: options
type: <xref uid="@azure/storage-blob.BlobSetTierOptions" />
description: Optional options to the Blob Set Tier operation.
return:
description: ''
type: Promise<<xref uid="@azure/storage-blob.BlobSetTierResponse" />>
inheritanceDescription: >-
<b>Inherited From</b>
[BlobClient.setAccessTier](xref:@azure/storage-blob.BlobClient.setAccessTier)
- name: setHTTPHeaders(BlobHTTPHeaders, BlobSetHTTPHeadersOptions)
uid: '@azure/storage-blob.AppendBlobClient.setHTTPHeaders'
package: '@azure/storage-blob'
summary: >-
Sets system properties on the blob.
If no value provided, or no value provided for the specified blob HTTP
headers,
these blob HTTP headers without a value will be cleared.
See
https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties