# 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::MediaServices::Mgmt::V2020_05_01
  module Models
    #
    # An InputDefinition that looks across all of the files provided to select
    # tracks specified by the IncludedTracks property. Generally used with the
    # AudioTrackByAttribute and VideoTrackByAttribute to allow selection of a
    # single track across a set of input files.
    #
    class FromAllInputFile < InputDefinition

      include MsRestAzure


      def initialize
        @odatatype = "#Microsoft.Media.FromAllInputFile"
      end

      attr_accessor :odatatype


      #
      # Mapper for FromAllInputFile class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: '#Microsoft.Media.FromAllInputFile',
          type: {
            name: 'Composite',
            class_name: 'FromAllInputFile',
            model_properties: {
              included_tracks: {
                client_side_validation: true,
                required: false,
                serialized_name: 'includedTracks',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'TrackDescriptorElementType',
                      type: {
                        name: 'Composite',
                        polymorphic_discriminator: '@odata.type',
                        uber_parent: 'TrackDescriptor',
                        class_name: 'TrackDescriptor'
                      }
                  }
                }
              },
              odatatype: {
                client_side_validation: true,
                required: true,
                serialized_name: '@odata\\.type',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
