# 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
    #
    # The custom setup of installing 3rd party components.
    #
    class ComponentSetup < CustomSetupBase

      include MsRestAzure


      def initialize
        @type = "ComponentSetup"
      end

      attr_accessor :type

      # @return [String] The name of the 3rd party component.
      attr_accessor :component_name

      # @return [SecretBase] The license key to activate the component.
      attr_accessor :license_key


      #
      # Mapper for ComponentSetup class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ComponentSetup',
          type: {
            name: 'Composite',
            class_name: 'ComponentSetup',
            model_properties: {
              type: {
                client_side_validation: true,
                required: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              component_name: {
                client_side_validation: true,
                required: true,
                serialized_name: 'typeProperties.componentName',
                type: {
                  name: 'String'
                }
              },
              license_key: {
                client_side_validation: true,
                required: false,
                serialized_name: 'typeProperties.licenseKey',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: 'type',
                  uber_parent: 'SecretBase',
                  class_name: 'SecretBase'
                }
              }
            }
          }
        }
      end
    end
  end
end
