# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::EventGrid::V2018_01_01
  module Models
    #
    # Job canceled event data
    #
    class MediaJobCanceledEventData < MediaJobStateChangeEventData

      include MsRestAzure

      # @return [Array<MediaJobOutput>] Gets the Job outputs.
      attr_accessor :outputs


      #
      # Mapper for MediaJobCanceledEventData class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: '#Microsoft.Media.JobCanceled',
          type: {
            name: 'Composite',
            class_name: 'MediaJobCanceledEventData',
            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'
                      }
                  }
                }
              },
              outputs: {
                client_side_validation: true,
                required: false,
                serialized_name: 'outputs',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'MediaJobOutputElementType',
                      type: {
                        name: 'Composite',
                        polymorphic_discriminator: '@odata.type',
                        uber_parent: 'MediaJobOutput',
                        class_name: 'MediaJobOutput'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
