# 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::RecoveryServicesSiteRecovery::Mgmt::V2018_01_10
  module Models
    #
    # This class represents the script action task details.
    #
    class ScriptActionTaskDetails < TaskTypeDetails

      include MsRestAzure


      def initialize
        @instanceType = "ScriptActionTaskDetails"
      end

      attr_accessor :instanceType

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

      # @return [String] The path.
      attr_accessor :path

      # @return [String] The output.
      attr_accessor :output

      # @return [Boolean] A value indicating whether it is a primary side
      # script or not.
      attr_accessor :is_primary_side_script


      #
      # Mapper for ScriptActionTaskDetails class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ScriptActionTaskDetails',
          type: {
            name: 'Composite',
            class_name: 'ScriptActionTaskDetails',
            model_properties: {
              instanceType: {
                client_side_validation: true,
                required: true,
                serialized_name: 'instanceType',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              path: {
                client_side_validation: true,
                required: false,
                serialized_name: 'path',
                type: {
                  name: 'String'
                }
              },
              output: {
                client_side_validation: true,
                required: false,
                serialized_name: 'output',
                type: {
                  name: 'String'
                }
              },
              is_primary_side_script: {
                client_side_validation: true,
                required: false,
                serialized_name: 'isPrimarySideScript',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
