@azure/storage-blob-changefeed 12.0.0-alpha.20220412.1 → 12.0.0-alpha.20220418.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +82 -9
- package/dist/index.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/Chunk.js +2 -8
- package/dist-esm/storage-blob-changefeed/src/Chunk.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/models/BlobChangeFeedEvent.js.map +1 -1
- package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js +81 -0
- package/dist-esm/storage-blob-changefeed/src/utils/utils.common.js.map +1 -1
- package/package.json +1 -1
- package/types/3.1/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts +140 -1
- package/types/3.1/storage-blob-changefeed/src/utils/utils.common.d.ts +2 -0
- package/types/3.1/storage-blob-changefeed/test/utils/testutils.common.d.ts +9 -1
- package/types/3.1/storage-blob-changefeed.d.ts +140 -1
- package/types/latest/storage-blob-changefeed/src/Chunk.d.ts.map +1 -1
- package/types/latest/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts +140 -1
- package/types/latest/storage-blob-changefeed/src/models/BlobChangeFeedEvent.d.ts.map +1 -1
- package/types/latest/storage-blob-changefeed/src/utils/utils.common.d.ts +2 -0
- package/types/latest/storage-blob-changefeed/src/utils/utils.common.d.ts.map +1 -1
- package/types/latest/storage-blob-changefeed/test/utils/testutils.common.d.ts +9 -1
- package/types/latest/storage-blob-changefeed/test/utils/testutils.common.d.ts.map +1 -1
- package/types/latest/storage-blob-changefeed.d.ts +146 -1
- package/types/latest/tsdoc-metadata.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Change feed event record types.
|
|
3
3
|
*/
|
|
4
|
-
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated";
|
|
4
|
+
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated" | "RestorePointMarkerCreated";
|
|
5
5
|
/**
|
|
6
6
|
* Change feed event record. Contains response data for the {@link BlobChangeFeedClient.listChanges} operation.
|
|
7
7
|
* @see https://docs.microsoft.com/en-us/azure/event-grid/event-schema-blob-storage?toc=/azure/storage/blobs/toc.json#event-properties
|
|
@@ -35,6 +35,10 @@ export interface BlobChangeFeedEvent {
|
|
|
35
35
|
* The schema version of the data object. The publisher defines the schema version.
|
|
36
36
|
*/
|
|
37
37
|
dataVersion?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The schema version of the data object. The publisher defines the schema version.
|
|
40
|
+
*/
|
|
41
|
+
schemaVersion?: number;
|
|
38
42
|
/**
|
|
39
43
|
* The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value.
|
|
40
44
|
*/
|
|
@@ -44,6 +48,86 @@ export interface BlobChangeFeedEvent {
|
|
|
44
48
|
* The type of blob.
|
|
45
49
|
*/
|
|
46
50
|
export declare type BlobType = "BlockBlob" | "AppendBlob" | "PageBlob";
|
|
51
|
+
/**
|
|
52
|
+
* The AccessTier.
|
|
53
|
+
*/
|
|
54
|
+
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive";
|
|
55
|
+
/**
|
|
56
|
+
* A blob property that was updated.
|
|
57
|
+
*/
|
|
58
|
+
export interface BlobPropertyChange {
|
|
59
|
+
/**
|
|
60
|
+
* The name of the property that was updated.
|
|
61
|
+
*/
|
|
62
|
+
propertyName: string;
|
|
63
|
+
/**
|
|
64
|
+
* The previous value of the property.
|
|
65
|
+
*/
|
|
66
|
+
oldValue: string;
|
|
67
|
+
/**
|
|
68
|
+
* The new value of the property.
|
|
69
|
+
*/
|
|
70
|
+
newValue: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Blob properties that were updated during an event.
|
|
74
|
+
*/
|
|
75
|
+
export declare type UpdatedBlobProperties = Record<string, BlobPropertyChange>;
|
|
76
|
+
/**
|
|
77
|
+
* Previous info for Change Feed Event.
|
|
78
|
+
*/
|
|
79
|
+
export interface ChangeFeedEventPreviousInfo {
|
|
80
|
+
/**
|
|
81
|
+
* Soft delete snapshot.
|
|
82
|
+
*/
|
|
83
|
+
softDeleteSnapshot?: string;
|
|
84
|
+
/**
|
|
85
|
+
* If the blob was soft deleted.
|
|
86
|
+
*/
|
|
87
|
+
isBlobSoftDeleted: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Blob version.
|
|
90
|
+
*/
|
|
91
|
+
newBlobVersion?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Last version.
|
|
94
|
+
*/
|
|
95
|
+
oldBlobVersion?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Previous Access Tier
|
|
98
|
+
*/
|
|
99
|
+
previousTier?: AccessTier;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* ChangeFeedEvent AsyncOperationInfo
|
|
103
|
+
*/
|
|
104
|
+
export interface BlobOperationResult {
|
|
105
|
+
/**
|
|
106
|
+
* Destination access tier.
|
|
107
|
+
*/
|
|
108
|
+
destinationAccessTier?: AccessTier;
|
|
109
|
+
/**
|
|
110
|
+
* If the operation was async.
|
|
111
|
+
*/
|
|
112
|
+
isAsync: boolean;
|
|
113
|
+
/**
|
|
114
|
+
* Copy Id.
|
|
115
|
+
*/
|
|
116
|
+
copyId?: string;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Blob tags that were updated as part of the change feed event.
|
|
120
|
+
*/
|
|
121
|
+
export interface BlobTagsChange {
|
|
122
|
+
/**
|
|
123
|
+
* Previous Tags.
|
|
124
|
+
*/
|
|
125
|
+
oldTags: Record<string, string>;
|
|
126
|
+
/**
|
|
127
|
+
* New Tags.
|
|
128
|
+
*/
|
|
129
|
+
newTags: Record<string, string>;
|
|
130
|
+
}
|
|
47
131
|
/**
|
|
48
132
|
* Change feed Blob storage event data.
|
|
49
133
|
*/
|
|
@@ -76,6 +160,12 @@ export interface BlobChangeFeedEventData {
|
|
|
76
160
|
* The size of the blob in bytes.
|
|
77
161
|
*/
|
|
78
162
|
contentLength: number;
|
|
163
|
+
/**
|
|
164
|
+
* The offset in bytes of a write operation taken at the point where the event-triggering application completed
|
|
165
|
+
* writing to the file.
|
|
166
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
167
|
+
*/
|
|
168
|
+
contentOffset?: number;
|
|
79
169
|
/**
|
|
80
170
|
* The type of blob.
|
|
81
171
|
*/
|
|
@@ -85,10 +175,59 @@ export interface BlobChangeFeedEventData {
|
|
|
85
175
|
* <storage-account-name>.blob.core.windows.net/<container-name>/<file-name>.
|
|
86
176
|
*/
|
|
87
177
|
url: string;
|
|
178
|
+
/**
|
|
179
|
+
* The url of the file that will exist after the operation completes. For example, if a file is renamed,
|
|
180
|
+
* the destinationUrl property contains the url of the new file name.
|
|
181
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
182
|
+
*/
|
|
183
|
+
destinationUrl?: string;
|
|
184
|
+
/**
|
|
185
|
+
* The url of the file that exists prior to the operation. For example, if a file is renamed, the sourceUrl
|
|
186
|
+
* contains the url of the original file name prior to the rename operation.
|
|
187
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
188
|
+
*/
|
|
189
|
+
sourceUrl?: string;
|
|
190
|
+
/**
|
|
191
|
+
* True to perform the operation on all child directories; otherwise False.
|
|
192
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
193
|
+
*/
|
|
194
|
+
isRecursive?: boolean;
|
|
88
195
|
/**
|
|
89
196
|
* An opaque string value representing the logical sequence of events for any particular blob name.
|
|
90
197
|
* Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
|
|
91
198
|
*/
|
|
92
199
|
sequencer: string;
|
|
200
|
+
/**
|
|
201
|
+
* Previous info for the blob.
|
|
202
|
+
*/
|
|
203
|
+
previousInfo?: ChangeFeedEventPreviousInfo;
|
|
204
|
+
/**
|
|
205
|
+
* Blob properties that were updated during this event.
|
|
206
|
+
*/
|
|
207
|
+
updatedBlobProperties?: UpdatedBlobProperties;
|
|
208
|
+
/**
|
|
209
|
+
* Blob tags that were updated during this event.
|
|
210
|
+
*/
|
|
211
|
+
updatedBlobTags?: BlobTagsChange;
|
|
212
|
+
/**
|
|
213
|
+
* The Snapshot associated with the event.
|
|
214
|
+
*/
|
|
215
|
+
snapshot?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Version of the blob.
|
|
218
|
+
*/
|
|
219
|
+
blobVersion?: string;
|
|
220
|
+
/**
|
|
221
|
+
* Version of the container the blob is in.
|
|
222
|
+
*/
|
|
223
|
+
containerVersion?: string;
|
|
224
|
+
/**
|
|
225
|
+
* Access Tier of the blob.
|
|
226
|
+
*/
|
|
227
|
+
blobAccessTier?: AccessTier;
|
|
228
|
+
/**
|
|
229
|
+
* AsyncOperationInfo
|
|
230
|
+
*/
|
|
231
|
+
longRunningOperationInfo?: BlobOperationResult;
|
|
93
232
|
}
|
|
94
233
|
//# sourceMappingURL=BlobChangeFeedEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlobChangeFeedEvent.d.ts","sourceRoot":"","sources":["../../../../../src/models/BlobChangeFeedEvent.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,oBAAY,uBAAuB,GAC/B,sBAAsB,GACtB,aAAa,GACb,aAAa,GACb,uBAAuB,GACvB,qBAAqB,GACrB,SAAS,GACT,iBAAiB,GACjB,6BAA6B,GAC7B,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"BlobChangeFeedEvent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C;IAEtB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,YAAY,CAAC,EAAE,2BAA2B,CAAC;IAE3C;;OAEG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAE9C;;OAEG;IACH,eAAe,CAAC,EAAE,cAAc,CAAC;IAEjC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B;;OAEG;IACH,wBAAwB,CAAC,EAAE,mBAAmB,CAAC;CAChD"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AbortSignalLike } from "@azure/core-http";
|
|
2
2
|
import { ContainerClient, CommonOptions } from "@azure/storage-blob";
|
|
3
|
+
import { BlobChangeFeedEvent } from "../models/BlobChangeFeedEvent";
|
|
3
4
|
export declare function ceilToNearestHour(date: Date | undefined): Date | undefined;
|
|
4
5
|
export declare function floorToNearestHour(date: Date | undefined): Date | undefined;
|
|
5
6
|
/**
|
|
@@ -39,4 +40,5 @@ export interface GetSegmentsInYearOptions extends CommonOptions {
|
|
|
39
40
|
export declare function getSegmentsInYear(containerClient: ContainerClient, year: number, startTime?: Date, endTime?: Date, options?: GetSegmentsInYearOptions): Promise<string[]>;
|
|
40
41
|
export declare function parseDateFromSegmentPath(segmentPath: string): Date;
|
|
41
42
|
export declare function minDate(dateA: Date, dateB?: Date): Date;
|
|
43
|
+
export declare function rawEventToBlobChangeFeedEvent(rawEvent: Record<string, any>): BlobChangeFeedEvent;
|
|
42
44
|
//# sourceMappingURL=utils.common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.common.d.ts","sourceRoot":"","sources":["../../../../../src/utils/utils.common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,eAA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GAAE,wBAA6B,GACrC,OAAO,CAAC,MAAM,EAAE,CAAC,CAgCnB;AAED,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAmBlE;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,CAKvD;AAED,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,mBAAmB,CAwFhG"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { TokenCredential, GetTokenOptions, AccessToken } from "@azure/core-http";
|
|
2
3
|
import { RecorderEnvironmentSetup } from "@azure-tools/test-recorder";
|
|
4
|
+
import { Readable } from "stream";
|
|
3
5
|
export declare const testPollerProperties: {
|
|
4
6
|
intervalInMs: number | undefined;
|
|
5
7
|
};
|
|
@@ -49,8 +51,14 @@ export declare function isSuperSet(m1?: BlobMetadata, m2?: BlobMetadata): boolea
|
|
|
49
51
|
/**
|
|
50
52
|
* Sleep for seconds.
|
|
51
53
|
*
|
|
52
|
-
* @param seconds -
|
|
54
|
+
* @param seconds - duration to sleep in seconds
|
|
53
55
|
*/
|
|
54
56
|
export declare function sleep(seconds: number): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Read text content from a stream as string
|
|
59
|
+
* @param stream - stream to read from
|
|
60
|
+
* @returns a utf-8 string that is the whole content of the stream
|
|
61
|
+
*/
|
|
62
|
+
export declare function streamToString(stream: Readable): Promise<string>;
|
|
55
63
|
export {};
|
|
56
64
|
//# sourceMappingURL=testutils.common.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testutils.common.d.ts","sourceRoot":"","sources":["../../../../../test/utils/testutils.common.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACjF,OAAO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O,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIpD;AACD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAOhE"}
|
|
@@ -7,6 +7,11 @@ import { StoragePipelineOptions } from '@azure/storage-blob';
|
|
|
7
7
|
import { StorageSharedKeyCredential } from '@azure/storage-blob';
|
|
8
8
|
import { TokenCredential } from '@azure/core-http';
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* The AccessTier.
|
|
12
|
+
*/
|
|
13
|
+
export declare type AccessTier = "P4" | "P6" | "P10" | "P15" | "P20" | "P30" | "P40" | "P50" | "P60" | "P70" | "P80" | "Hot" | "Cool" | "Archive";
|
|
14
|
+
|
|
10
15
|
/**
|
|
11
16
|
* BlobChangeFeedClient.
|
|
12
17
|
* @see https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-change-feed?tabs=azure-portal
|
|
@@ -185,6 +190,10 @@ export declare interface BlobChangeFeedEvent {
|
|
|
185
190
|
* The schema version of the data object. The publisher defines the schema version.
|
|
186
191
|
*/
|
|
187
192
|
dataVersion?: string;
|
|
193
|
+
/**
|
|
194
|
+
* The schema version of the data object. The publisher defines the schema version.
|
|
195
|
+
*/
|
|
196
|
+
schemaVersion?: number;
|
|
188
197
|
/**
|
|
189
198
|
* The schema version of the event metadata. Event Grid defines the schema of the top-level properties. Event Grid provides this value.
|
|
190
199
|
*/
|
|
@@ -223,6 +232,12 @@ export declare interface BlobChangeFeedEventData {
|
|
|
223
232
|
* The size of the blob in bytes.
|
|
224
233
|
*/
|
|
225
234
|
contentLength: number;
|
|
235
|
+
/**
|
|
236
|
+
* The offset in bytes of a write operation taken at the point where the event-triggering application completed
|
|
237
|
+
* writing to the file.
|
|
238
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
239
|
+
*/
|
|
240
|
+
contentOffset?: number;
|
|
226
241
|
/**
|
|
227
242
|
* The type of blob.
|
|
228
243
|
*/
|
|
@@ -232,11 +247,60 @@ export declare interface BlobChangeFeedEventData {
|
|
|
232
247
|
* <storage-account-name>.blob.core.windows.net/<container-name>/<file-name>.
|
|
233
248
|
*/
|
|
234
249
|
url: string;
|
|
250
|
+
/**
|
|
251
|
+
* The url of the file that will exist after the operation completes. For example, if a file is renamed,
|
|
252
|
+
* the destinationUrl property contains the url of the new file name.
|
|
253
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
254
|
+
*/
|
|
255
|
+
destinationUrl?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The url of the file that exists prior to the operation. For example, if a file is renamed, the sourceUrl
|
|
258
|
+
* contains the url of the original file name prior to the rename operation.
|
|
259
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
260
|
+
*/
|
|
261
|
+
sourceUrl?: string;
|
|
262
|
+
/**
|
|
263
|
+
* True to perform the operation on all child directories; otherwise False.
|
|
264
|
+
* Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
|
|
265
|
+
*/
|
|
266
|
+
isRecursive?: boolean;
|
|
235
267
|
/**
|
|
236
268
|
* An opaque string value representing the logical sequence of events for any particular blob name.
|
|
237
269
|
* Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
|
|
238
270
|
*/
|
|
239
271
|
sequencer: string;
|
|
272
|
+
/**
|
|
273
|
+
* Previous info for the blob.
|
|
274
|
+
*/
|
|
275
|
+
previousInfo?: ChangeFeedEventPreviousInfo;
|
|
276
|
+
/**
|
|
277
|
+
* Blob properties that were updated during this event.
|
|
278
|
+
*/
|
|
279
|
+
updatedBlobProperties?: UpdatedBlobProperties;
|
|
280
|
+
/**
|
|
281
|
+
* Blob tags that were updated during this event.
|
|
282
|
+
*/
|
|
283
|
+
updatedBlobTags?: BlobTagsChange;
|
|
284
|
+
/**
|
|
285
|
+
* The Snapshot associated with the event.
|
|
286
|
+
*/
|
|
287
|
+
snapshot?: string;
|
|
288
|
+
/**
|
|
289
|
+
* Version of the blob.
|
|
290
|
+
*/
|
|
291
|
+
blobVersion?: string;
|
|
292
|
+
/**
|
|
293
|
+
* Version of the container the blob is in.
|
|
294
|
+
*/
|
|
295
|
+
containerVersion?: string;
|
|
296
|
+
/**
|
|
297
|
+
* Access Tier of the blob.
|
|
298
|
+
*/
|
|
299
|
+
blobAccessTier?: AccessTier;
|
|
300
|
+
/**
|
|
301
|
+
* AsyncOperationInfo
|
|
302
|
+
*/
|
|
303
|
+
longRunningOperationInfo?: BlobOperationResult;
|
|
240
304
|
}
|
|
241
305
|
|
|
242
306
|
/**
|
|
@@ -257,7 +321,7 @@ export declare class BlobChangeFeedEventPage {
|
|
|
257
321
|
/**
|
|
258
322
|
* Change feed event record types.
|
|
259
323
|
*/
|
|
260
|
-
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated";
|
|
324
|
+
export declare type BlobChangeFeedEventType = "UnspecifiedEventType" | "BlobCreated" | "BlobDeleted" | "BlobPropertiesUpdated" | "BlobSnapshotCreated" | "Control" | "BlobTierChanged" | "BlobAsyncOperationInitiated" | "BlobMetadataUpdated" | "RestorePointMarkerCreated";
|
|
261
325
|
|
|
262
326
|
/**
|
|
263
327
|
* Options to configure {@link BlobChangeFeedClient.listChanges} operation.
|
|
@@ -280,11 +344,87 @@ export declare interface BlobChangeFeedListChangesOptions extends CommonOptions
|
|
|
280
344
|
end?: Date;
|
|
281
345
|
}
|
|
282
346
|
|
|
347
|
+
/**
|
|
348
|
+
* ChangeFeedEvent AsyncOperationInfo
|
|
349
|
+
*/
|
|
350
|
+
export declare interface BlobOperationResult {
|
|
351
|
+
/**
|
|
352
|
+
* Destination access tier.
|
|
353
|
+
*/
|
|
354
|
+
destinationAccessTier?: AccessTier;
|
|
355
|
+
/**
|
|
356
|
+
* If the operation was async.
|
|
357
|
+
*/
|
|
358
|
+
isAsync: boolean;
|
|
359
|
+
/**
|
|
360
|
+
* Copy Id.
|
|
361
|
+
*/
|
|
362
|
+
copyId?: string;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* A blob property that was updated.
|
|
367
|
+
*/
|
|
368
|
+
export declare interface BlobPropertyChange {
|
|
369
|
+
/**
|
|
370
|
+
* The name of the property that was updated.
|
|
371
|
+
*/
|
|
372
|
+
propertyName: string;
|
|
373
|
+
/**
|
|
374
|
+
* The previous value of the property.
|
|
375
|
+
*/
|
|
376
|
+
oldValue: string;
|
|
377
|
+
/**
|
|
378
|
+
* The new value of the property.
|
|
379
|
+
*/
|
|
380
|
+
newValue: string;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Blob tags that were updated as part of the change feed event.
|
|
385
|
+
*/
|
|
386
|
+
export declare interface BlobTagsChange {
|
|
387
|
+
/**
|
|
388
|
+
* Previous Tags.
|
|
389
|
+
*/
|
|
390
|
+
oldTags: Record<string, string>;
|
|
391
|
+
/**
|
|
392
|
+
* New Tags.
|
|
393
|
+
*/
|
|
394
|
+
newTags: Record<string, string>;
|
|
395
|
+
}
|
|
396
|
+
|
|
283
397
|
/**
|
|
284
398
|
* The type of blob.
|
|
285
399
|
*/
|
|
286
400
|
export declare type BlobType = "BlockBlob" | "AppendBlob" | "PageBlob";
|
|
287
401
|
|
|
402
|
+
/**
|
|
403
|
+
* Previous info for Change Feed Event.
|
|
404
|
+
*/
|
|
405
|
+
export declare interface ChangeFeedEventPreviousInfo {
|
|
406
|
+
/**
|
|
407
|
+
* Soft delete snapshot.
|
|
408
|
+
*/
|
|
409
|
+
softDeleteSnapshot?: string;
|
|
410
|
+
/**
|
|
411
|
+
* If the blob was soft deleted.
|
|
412
|
+
*/
|
|
413
|
+
isBlobSoftDeleted: boolean;
|
|
414
|
+
/**
|
|
415
|
+
* Blob version.
|
|
416
|
+
*/
|
|
417
|
+
newBlobVersion?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Last version.
|
|
420
|
+
*/
|
|
421
|
+
oldBlobVersion?: string;
|
|
422
|
+
/**
|
|
423
|
+
* Previous Access Tier
|
|
424
|
+
*/
|
|
425
|
+
previousTier?: AccessTier;
|
|
426
|
+
}
|
|
427
|
+
|
|
288
428
|
/**
|
|
289
429
|
* Creates a new Pipeline object with Credential provided.
|
|
290
430
|
*
|
|
@@ -294,4 +434,9 @@ export declare type BlobType = "BlockBlob" | "AppendBlob" | "PageBlob";
|
|
|
294
434
|
*/
|
|
295
435
|
export declare function newPipeline(credential?: StorageSharedKeyCredential | AnonymousCredential | TokenCredential, pipelineOptions?: StoragePipelineOptions): Pipeline;
|
|
296
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Blob properties that were updated during an event.
|
|
439
|
+
*/
|
|
440
|
+
export declare type UpdatedBlobProperties = Record<string, BlobPropertyChange>;
|
|
441
|
+
|
|
297
442
|
export { }
|