From 6405fdd6023e04e54fb5c834c6f658ee10d59ca4 Mon Sep 17 00:00:00 2001 From: wanha-ms <56612697+wanha-ms@users.noreply.github.com> Date: Mon, 21 Oct 2019 18:39:45 -0700 Subject: [PATCH] =?UTF-8?q?=20update-event-schema-for-azure-storage-event-?= =?UTF-8?q?grid-notification-for-cr=E2=80=A6=20(#7509)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../stable/2018-01-01/Storage.json | 169 +++++++++++++++++- 1 file changed, 167 insertions(+), 2 deletions(-) diff --git a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json index 2a5adbfbc09c..ee1aea01e036 100644 --- a/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json +++ b/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json @@ -24,7 +24,7 @@ "type": "string" }, "eTag": { - "description": "The etag of the object at the time this event was triggered.", + "description": "The etag of the blob at the time this event was triggered.", "type": "string" }, "contentType": { @@ -36,6 +36,11 @@ "type": "integer", "format": "int64" }, + "contentOffset": { + "description": "The offset of the blob in bytes.", + "type": "integer", + "format": "int64" + }, "blobType": { "description": "The type of blob.", "type": "string" @@ -48,6 +53,10 @@ "description": "An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name.", "type": "string" }, + "identity": { + "description": "The identity of the requester that triggered this event.", + "type": "string" + }, "storageDiagnostics": { "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "type": "object" @@ -86,6 +95,162 @@ "description": "An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name.", "type": "string" }, + "identity": { + "description": "The identity of the requester that triggered this event.", + "type": "string" + }, + "storageDiagnostics": { + "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", + "type": "object" + } + } + }, + "StorageDirectoryCreatedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryCreated event.", + "type": "object", + "properties": { + "api": { + "description": "The name of the API/operation that triggered this event.", + "type": "string" + }, + "clientRequestId": { + "description": "A request id provided by the client of the storage API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the storage service for the storage API operation that triggered this event.", + "type": "string" + }, + "eTag": { + "description": "The etag of the directory at the time this event was triggered.", + "type": "string" + }, + "url": { + "description": "The path to the directory.", + "type": "string" + }, + "sequencer": { + "description": "An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.", + "type": "string" + }, + "identity": { + "description": "The identity of the requester that triggered this event.", + "type": "string" + }, + "storageDiagnostics": { + "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", + "type": "object" + } + } + }, + "StorageDirectoryDeletedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryDeleted event.", + "type": "object", + "properties": { + "api": { + "description": "The name of the API/operation that triggered this event.", + "type": "string" + }, + "clientRequestId": { + "description": "A request id provided by the client of the storage API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the storage service for the storage API operation that triggered this event.", + "type": "string" + }, + "url": { + "description": "The path to the deleted directory.", + "type": "string" + }, + "recursive": { + "description": "Is this event for a recursive delete operation.", + "type": "boolean" + }, + "sequencer": { + "description": "An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.", + "type": "string" + }, + "identity": { + "description": "The identity of the requester that triggered this event.", + "type": "string" + }, + "storageDiagnostics": { + "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", + "type": "object" + } + } + }, + "StorageBlobRenamedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.BlobRenamed event.", + "type": "object", + "properties": { + "api": { + "description": "The name of the API/operation that triggered this event.", + "type": "string" + }, + "clientRequestId": { + "description": "A request id provided by the client of the storage API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the storage service for the storage API operation that triggered this event.", + "type": "string" + }, + "sourceUrl": { + "description": "The path to the blob that was renamed.", + "type": "string" + }, + "destinationUrl": { + "description": "The new path to the blob after the rename operation.", + "type": "string" + }, + "sequencer": { + "description": "An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name.", + "type": "string" + }, + "identity": { + "description": "The identity of the requester that triggered this event.", + "type": "string" + }, + "storageDiagnostics": { + "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", + "type": "object" + } + } + }, + "StorageDirectoryRenamedEventData": { + "description": "Schema of the Data property of an EventGridEvent for an Microsoft.Storage.DirectoryRenamed event.", + "type": "object", + "properties": { + "api": { + "description": "The name of the API/operation that triggered this event.", + "type": "string" + }, + "clientRequestId": { + "description": "A request id provided by the client of the storage API operation that triggered this event.", + "type": "string" + }, + "requestId": { + "description": "The request id generated by the storage service for the storage API operation that triggered this event.", + "type": "string" + }, + "sourceUrl": { + "description": "The path to the directory that was renamed.", + "type": "string" + }, + "destinationUrl": { + "description": "The new path to the directory after the rename operation.", + "type": "string" + }, + "sequencer": { + "description": "An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name.", + "type": "string" + }, + "identity": { + "description": "The identity of the requester that triggered this event.", + "type": "string" + }, "storageDiagnostics": { "description": "For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers.", "type": "object" @@ -93,4 +258,4 @@ } } } -} +} \ No newline at end of file