# 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::SQL::Mgmt::V2017_03_01_preview
  module Models
    #
    # The action to be executed by a job step.
    #
    class JobStepAction

      include MsRestAzure

      # @return [JobStepActionType] Type of action being executed by the job
      # step. Possible values include: 'TSql'. Default value: 'TSql' .
      attr_accessor :type

      # @return [JobStepActionSource] The source of the action to execute.
      # Possible values include: 'Inline'. Default value: 'Inline' .
      attr_accessor :source

      # @return [String] The action value, for example the text of the T-SQL
      # script to execute.
      attr_accessor :value


      #
      # Mapper for JobStepAction class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'JobStepAction',
          type: {
            name: 'Composite',
            class_name: 'JobStepAction',
            model_properties: {
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                default_value: 'TSql',
                type: {
                  name: 'String'
                }
              },
              source: {
                client_side_validation: true,
                required: false,
                serialized_name: 'source',
                default_value: 'Inline',
                type: {
                  name: 'String'
                }
              },
              value: {
                client_side_validation: true,
                required: true,
                serialized_name: 'value',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
