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

module Azure::StreamAnalytics::Mgmt::V2016_03_01
  module Models
    #
    # Describes how data from an input is serialized or how data is serialized
    # when written to an output in Avro format.
    #
    class AvroSerialization < Serialization

      include MsRestAzure


      def initialize
        @type = "Avro"
      end

      attr_accessor :type

      # @return The properties that are associated with the Avro serialization
      # type. Required on PUT (CreateOrReplace) requests.
      attr_accessor :properties


      #
      # Mapper for AvroSerialization class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Avro',
          type: {
            name: 'Composite',
            class_name: 'AvroSerialization',
            model_properties: {
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              properties: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties',
                type: {
                  name: 'Object'
                }
              }
            }
          }
        }
      end
    end
  end
end
