# 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::Compute::Mgmt::V2020_06_01
  module Models
    #
    # Describes the script sources for run command.
    #
    class VirtualMachineRunCommandScriptSource

      include MsRestAzure

      # @return [String] Specifies the script content to be executed on the VM.
      attr_accessor :script

      # @return [String] Specifies the script download location.
      attr_accessor :script_uri

      # @return [String] Specifies a commandId of predefined built-in script.
      attr_accessor :command_id


      #
      # Mapper for VirtualMachineRunCommandScriptSource class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'VirtualMachineRunCommandScriptSource',
          type: {
            name: 'Composite',
            class_name: 'VirtualMachineRunCommandScriptSource',
            model_properties: {
              script: {
                client_side_validation: true,
                required: false,
                serialized_name: 'script',
                type: {
                  name: 'String'
                }
              },
              script_uri: {
                client_side_validation: true,
                required: false,
                serialized_name: 'scriptUri',
                type: {
                  name: 'String'
                }
              },
              command_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'commandId',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
