diff --git a/profiles/latest/eventgrid/eventgrid/models.go b/profiles/latest/eventgrid/eventgrid/models.go index 36c363e210cb..1e9a2bde5908 100644 --- a/profiles/latest/eventgrid/eventgrid/models.go +++ b/profiles/latest/eventgrid/eventgrid/models.go @@ -107,6 +107,7 @@ type MediaJobOutputCancelingEventData = original.MediaJobOutputCancelingEventDat type MediaJobOutputErroredEventData = original.MediaJobOutputErroredEventData type MediaJobOutputFinishedEventData = original.MediaJobOutputFinishedEventData type MediaJobOutputProcessingEventData = original.MediaJobOutputProcessingEventData +type MediaJobOutputProgressEventData = original.MediaJobOutputProgressEventData type MediaJobOutputScheduledEventData = original.MediaJobOutputScheduledEventData type MediaJobOutputStateChangeEventData = original.MediaJobOutputStateChangeEventData type MediaJobProcessingEventData = original.MediaJobProcessingEventData diff --git a/profiles/preview/eventgrid/eventgrid/models.go b/profiles/preview/eventgrid/eventgrid/models.go index abf942c3d687..589771d0996a 100644 --- a/profiles/preview/eventgrid/eventgrid/models.go +++ b/profiles/preview/eventgrid/eventgrid/models.go @@ -107,6 +107,7 @@ type MediaJobOutputCancelingEventData = original.MediaJobOutputCancelingEventDat type MediaJobOutputErroredEventData = original.MediaJobOutputErroredEventData type MediaJobOutputFinishedEventData = original.MediaJobOutputFinishedEventData type MediaJobOutputProcessingEventData = original.MediaJobOutputProcessingEventData +type MediaJobOutputProgressEventData = original.MediaJobOutputProgressEventData type MediaJobOutputScheduledEventData = original.MediaJobOutputScheduledEventData type MediaJobOutputStateChangeEventData = original.MediaJobOutputStateChangeEventData type MediaJobProcessingEventData = original.MediaJobProcessingEventData diff --git a/services/eventgrid/2018-01-01/eventgrid/models.go b/services/eventgrid/2018-01-01/eventgrid/models.go index 8188c2ac4ab2..1adb46d015a2 100644 --- a/services/eventgrid/2018-01-01/eventgrid/models.go +++ b/services/eventgrid/2018-01-01/eventgrid/models.go @@ -1179,6 +1179,31 @@ func (mjoped *MediaJobOutputProcessingEventData) UnmarshalJSON(body []byte) erro return nil } +// MediaJobOutputProgressEventData job Output Progress Event Data. +type MediaJobOutputProgressEventData struct { + // Label - Gets the Job output label. + Label *string `json:"label,omitempty"` + // Progress - Gets the Job output progress. + Progress *int64 `json:"progress,omitempty"` + // JobCorrelationData - Gets the Job correlation data. + JobCorrelationData map[string]*string `json:"jobCorrelationData"` +} + +// MarshalJSON is the custom marshaler for MediaJobOutputProgressEventData. +func (mjoped MediaJobOutputProgressEventData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if mjoped.Label != nil { + objectMap["label"] = mjoped.Label + } + if mjoped.Progress != nil { + objectMap["progress"] = mjoped.Progress + } + if mjoped.JobCorrelationData != nil { + objectMap["jobCorrelationData"] = mjoped.JobCorrelationData + } + return json.Marshal(objectMap) +} + // MediaJobOutputScheduledEventData job output scheduled event data type MediaJobOutputScheduledEventData struct { // PreviousState - The previous state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'