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

      include MsRestAzure

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

      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
