class Azure::EventGrid::V2018_01_01::Models::MediaJobStateChangeEventData

Schema of the Data property of an EventGridEvent for a Microsoft.Media.JobStateChange event.

Attributes

correlation_data[RW]

@return [Hash{String => String}] Gets the Job correlation data.

previous_state[RW]

@return [MediaJobState] The previous state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'

state[RW]

@return [MediaJobState] The new state of the Job. Possible values include: 'Canceled', 'Canceling', 'Error', 'Finished', 'Processing', 'Queued', 'Scheduled'

Private Class Methods

mapper() click to toggle source

Mapper for MediaJobStateChangeEventData class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2018-01-01/generated/azure_event_grid/models/media_job_state_change_event_data.rb, line 34
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MediaJobStateChangeEventData',
    type: {
      name: 'Composite',
      class_name: 'MediaJobStateChangeEventData',
      model_properties: {
        previous_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'previousState',
          type: {
            name: 'Enum',
            module: 'MediaJobState'
          }
        },
        state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'state',
          type: {
            name: 'Enum',
            module: 'MediaJobState'
          }
        },
        correlation_data: {
          client_side_validation: true,
          required: false,
          serialized_name: 'correlationData',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        }
      }
    }
  }
end