diff --git a/services/eventgrid/2018-01-01/eventgrid/client.go b/services/eventgrid/2018-01-01/eventgrid/client.go index bf45635a3de4..b52a256c65aa 100644 --- a/services/eventgrid/2018-01-01/eventgrid/client.go +++ b/services/eventgrid/2018-01-01/eventgrid/client.go @@ -112,8 +112,7 @@ func (client BaseClient) PublishEventsPreparer(ctx context.Context, topicHostnam // PublishEventsSender sends the PublishEvents request. The method will close the // http.Response Body if it receives an error. func (client BaseClient) PublishEventsSender(req *http.Request) (*http.Response, error) { - sd := autorest.GetSendDecorators(req.Context(), autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) - return autorest.SendWithSender(client, req, sd...) + return client.Send(req, autorest.DoRetryForStatusCodes(client.RetryAttempts, client.RetryDuration, autorest.StatusCodesForRetry...)) } // PublishEventsResponder handles the response to the PublishEvents request. The method always diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go index 2880fc15d397..1a1a15f1709b 100644 --- a/services/eventgrid/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/2018-01-01/eventgrid/models.go @@ -1933,6 +1933,50 @@ type MediaLiveEventTrackDiscontinuityDetectedEventData struct { DiscontinuityGap *string `json:"discontinuityGap,omitempty"` } +// RedisExportRDBCompletedEventData schema of the Data property of an EventGridEvent for an +// Microsoft.Cache.ExportRDBCompleted event. +type RedisExportRDBCompletedEventData struct { + // Timestamp - The time at which the event occurred. + Timestamp *date.Time `json:"timestamp,omitempty"` + // Name - The name of this event. + Name *string `json:"name,omitempty"` + // Status - The status of this event. Failed or succeeded + Status *string `json:"status,omitempty"` +} + +// RedisImportRDBCompletedEventData schema of the Data property of an EventGridEvent for an +// Microsoft.Cache.ImportRDBCompleted event. +type RedisImportRDBCompletedEventData struct { + // Timestamp - The time at which the event occurred. + Timestamp *date.Time `json:"timestamp,omitempty"` + // Name - The name of this event. + Name *string `json:"name,omitempty"` + // Status - The status of this event. Failed or succeeded + Status *string `json:"status,omitempty"` +} + +// RedisPatchingCompletedEventData schema of the Data property of an EventGridEvent for an +// Microsoft.Cache.PatchingCompleted event. +type RedisPatchingCompletedEventData struct { + // Timestamp - The time at which the event occurred. + Timestamp *date.Time `json:"timestamp,omitempty"` + // Name - The name of this event. + Name *string `json:"name,omitempty"` + // Status - The status of this event. Failed or succeeded + Status *string `json:"status,omitempty"` +} + +// RedisScalingCompletedEventData schema of the Data property of an EventGridEvent for an +// Microsoft.Cache.ScalingCompleted event. +type RedisScalingCompletedEventData struct { + // Timestamp - The time at which the event occurred. + Timestamp *date.Time `json:"timestamp,omitempty"` + // Name - The name of this event. + Name *string `json:"name,omitempty"` + // Status - The status of this event. Failed or succeeded + Status *string `json:"status,omitempty"` +} + // ResourceActionCancelData schema of the Data property of an EventGridEvent for an // Microsoft.Resources.ResourceActionCancel event. This is raised when a resource action operation is // canceled.