# 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::DataFactory::Mgmt::V2018_06_01
  module Models
    #
    # SSIS object metadata.
    #
    class SsisObjectMetadata

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["Environment"] = "SsisEnvironment"
      @@discriminatorMap["Package"] = "SsisPackage"
      @@discriminatorMap["Project"] = "SsisProject"
      @@discriminatorMap["Folder"] = "SsisFolder"

      def initialize
        @type = "SsisObjectMetadata"
      end

      attr_accessor :type

      # @return [Integer] Metadata id.
      attr_accessor :id

      # @return [String] Metadata name.
      attr_accessor :name

      # @return [String] Metadata description.
      attr_accessor :description


      #
      # Mapper for SsisObjectMetadata class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SsisObjectMetadata',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'type',
            uber_parent: 'SsisObjectMetadata',
            class_name: 'SsisObjectMetadata',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'Number'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              description: {
                client_side_validation: true,
                required: false,
                serialized_name: 'description',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
