From 3e1ee9f817fd19a12e6643c2781f874432e81962 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Tue, 22 Oct 2019 10:17:41 +0800 Subject: [PATCH] =?UTF-8?q?[AutoPR=20eventgrid/data-plane]=20=20update-eve?= =?UTF-8?q?nt-schema-for-azure-storage-event-grid-notification-for-cr?= =?UTF-8?q?=E2=80=A6=20(#6044)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Generated from 428c006d60546419a3b147a7fe9aa41d541ebe65 update-event-schema-for-azure-storage-event-grid-notification-for-create-delete-directory-and-rename-blob-directory * Generated from e1e58a72a322f6a32ebf891169674985771267f1 update according to pr reviews * Generated from 74a61c2feb1bc51623d2c11545aa52532ed20198 update according to pr reviews --- profiles/latest/eventgrid/eventgrid/models.go | 4 + .../preview/eventgrid/eventgrid/models.go | 4 + .../eventgrid/2018-01-01/eventgrid/models.go | 92 ++++++++++++++++++- 3 files changed, 99 insertions(+), 1 deletion(-) diff --git a/profiles/latest/eventgrid/eventgrid/models.go b/profiles/latest/eventgrid/eventgrid/models.go index bbc94e13941c..a5d748c208bd 100644 --- a/profiles/latest/eventgrid/eventgrid/models.go +++ b/profiles/latest/eventgrid/eventgrid/models.go @@ -159,6 +159,10 @@ type SignalRServiceClientConnectionConnectedEventData = original.SignalRServiceC type SignalRServiceClientConnectionDisconnectedEventData = original.SignalRServiceClientConnectionDisconnectedEventData type StorageBlobCreatedEventData = original.StorageBlobCreatedEventData type StorageBlobDeletedEventData = original.StorageBlobDeletedEventData +type StorageBlobRenamedEventData = original.StorageBlobRenamedEventData +type StorageDirectoryCreatedEventData = original.StorageDirectoryCreatedEventData +type StorageDirectoryDeletedEventData = original.StorageDirectoryDeletedEventData +type StorageDirectoryRenamedEventData = original.StorageDirectoryRenamedEventData type SubscriptionDeletedEventData = original.SubscriptionDeletedEventData type SubscriptionValidationEventData = original.SubscriptionValidationEventData type SubscriptionValidationResponse = original.SubscriptionValidationResponse diff --git a/profiles/preview/eventgrid/eventgrid/models.go b/profiles/preview/eventgrid/eventgrid/models.go index 74269b8b100a..6c6bfab434ed 100644 --- a/profiles/preview/eventgrid/eventgrid/models.go +++ b/profiles/preview/eventgrid/eventgrid/models.go @@ -159,6 +159,10 @@ type SignalRServiceClientConnectionConnectedEventData = original.SignalRServiceC type SignalRServiceClientConnectionDisconnectedEventData = original.SignalRServiceClientConnectionDisconnectedEventData type StorageBlobCreatedEventData = original.StorageBlobCreatedEventData type StorageBlobDeletedEventData = original.StorageBlobDeletedEventData +type StorageBlobRenamedEventData = original.StorageBlobRenamedEventData +type StorageDirectoryCreatedEventData = original.StorageDirectoryCreatedEventData +type StorageDirectoryDeletedEventData = original.StorageDirectoryDeletedEventData +type StorageDirectoryRenamedEventData = original.StorageDirectoryRenamedEventData type SubscriptionDeletedEventData = original.SubscriptionDeletedEventData type SubscriptionValidationEventData = original.SubscriptionValidationEventData type SubscriptionValidationResponse = original.SubscriptionValidationResponse diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go index 22409444354c..ef63d54dcc3e 100644 --- a/services/eventgrid/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/2018-01-01/eventgrid/models.go @@ -2188,18 +2188,22 @@ type StorageBlobCreatedEventData struct { ClientRequestID *string `json:"clientRequestId,omitempty"` // RequestID - The request id generated by the Storage service for the storage API operation that triggered this event. RequestID *string `json:"requestId,omitempty"` - // ETag - The etag of the object at the time this event was triggered. + // ETag - The etag of the blob at the time this event was triggered. ETag *string `json:"eTag,omitempty"` // ContentType - The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. ContentType *string `json:"contentType,omitempty"` // ContentLength - The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. ContentLength *int64 `json:"contentLength,omitempty"` + // ContentOffset - The offset of the blob in bytes. + ContentOffset *int64 `json:"contentOffset,omitempty"` // BlobType - The type of blob. BlobType *string `json:"blobType,omitempty"` // URL - The path to the blob. URL *string `json:"url,omitempty"` // Sequencer - 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. Sequencer *string `json:"sequencer,omitempty"` + // Identity - The identity of the requester that triggered this event. + Identity *string `json:"identity,omitempty"` // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"` } @@ -2221,6 +2225,92 @@ type StorageBlobDeletedEventData struct { URL *string `json:"url,omitempty"` // Sequencer - 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. Sequencer *string `json:"sequencer,omitempty"` + // Identity - The identity of the requester that triggered this event. + Identity *string `json:"identity,omitempty"` + // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"` +} + +// StorageBlobRenamedEventData schema of the Data property of an EventGridEvent for an +// Microsoft.Storage.BlobRenamed event. +type StorageBlobRenamedEventData struct { + // API - The name of the API/operation that triggered this event. + API *string `json:"api,omitempty"` + // ClientRequestID - A request id provided by the client of the storage API operation that triggered this event. + ClientRequestID *string `json:"clientRequestId,omitempty"` + // RequestID - The request id generated by the storage service for the storage API operation that triggered this event. + RequestID *string `json:"requestId,omitempty"` + // SourceURL - The path to the blob that was renamed. + SourceURL *string `json:"sourceUrl,omitempty"` + // DestinationURL - The new path to the blob after the rename operation. + DestinationURL *string `json:"destinationUrl,omitempty"` + // Sequencer - 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. + Sequencer *string `json:"sequencer,omitempty"` + // Identity - The identity of the requester that triggered this event. + Identity *string `json:"identity,omitempty"` + // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"` +} + +// StorageDirectoryCreatedEventData schema of the Data property of an EventGridEvent for an +// Microsoft.Storage.DirectoryCreated event. +type StorageDirectoryCreatedEventData struct { + // API - The name of the API/operation that triggered this event. + API *string `json:"api,omitempty"` + // ClientRequestID - A request id provided by the client of the storage API operation that triggered this event. + ClientRequestID *string `json:"clientRequestId,omitempty"` + // RequestID - The request id generated by the storage service for the storage API operation that triggered this event. + RequestID *string `json:"requestId,omitempty"` + // ETag - The etag of the directory at the time this event was triggered. + ETag *string `json:"eTag,omitempty"` + // URL - The path to the directory. + URL *string `json:"url,omitempty"` + // Sequencer - 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. + Sequencer *string `json:"sequencer,omitempty"` + // Identity - The identity of the requester that triggered this event. + Identity *string `json:"identity,omitempty"` + // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"` +} + +// StorageDirectoryDeletedEventData schema of the Data property of an EventGridEvent for an +// Microsoft.Storage.DirectoryDeleted event. +type StorageDirectoryDeletedEventData struct { + // API - The name of the API/operation that triggered this event. + API *string `json:"api,omitempty"` + // ClientRequestID - A request id provided by the client of the storage API operation that triggered this event. + ClientRequestID *string `json:"clientRequestId,omitempty"` + // RequestID - The request id generated by the storage service for the storage API operation that triggered this event. + RequestID *string `json:"requestId,omitempty"` + // URL - The path to the deleted directory. + URL *string `json:"url,omitempty"` + // Recursive - Is this event for a recursive delete operation. + Recursive *bool `json:"recursive,omitempty"` + // Sequencer - 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. + Sequencer *string `json:"sequencer,omitempty"` + // Identity - The identity of the requester that triggered this event. + Identity *string `json:"identity,omitempty"` + // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"` +} + +// StorageDirectoryRenamedEventData schema of the Data property of an EventGridEvent for an +// Microsoft.Storage.DirectoryRenamed event. +type StorageDirectoryRenamedEventData struct { + // API - The name of the API/operation that triggered this event. + API *string `json:"api,omitempty"` + // ClientRequestID - A request id provided by the client of the storage API operation that triggered this event. + ClientRequestID *string `json:"clientRequestId,omitempty"` + // RequestID - The request id generated by the storage service for the storage API operation that triggered this event. + RequestID *string `json:"requestId,omitempty"` + // SourceURL - The path to the directory that was renamed. + SourceURL *string `json:"sourceUrl,omitempty"` + // DestinationURL - The new path to the directory after the rename operation. + DestinationURL *string `json:"destinationUrl,omitempty"` + // Sequencer - 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. + Sequencer *string `json:"sequencer,omitempty"` + // Identity - The identity of the requester that triggered this event. + Identity *string `json:"identity,omitempty"` // StorageDiagnostics - For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. StorageDiagnostics interface{} `json:"storageDiagnostics,omitempty"` }