# 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::Automation::Mgmt::V2015_10_31
  module Models
    #
    # Model object.
    #
    #
    class RunbookDraft

      include MsRestAzure

      # @return [Boolean] Gets or sets whether runbook is in edit mode.
      attr_accessor :in_edit

      # @return [ContentLink] Gets or sets the draft runbook content link.
      attr_accessor :draft_content_link

      # @return [DateTime] Gets or sets the creation time of the runbook draft.
      attr_accessor :creation_time

      # @return [DateTime] Gets or sets the last modified time of the runbook
      # draft.
      attr_accessor :last_modified_time

      # @return [Hash{String => RunbookParameter}] Gets or sets the runbook
      # draft parameters.
      attr_accessor :parameters

      # @return [Array<String>] Gets or sets the runbook output types.
      attr_accessor :output_types


      #
      # Mapper for RunbookDraft class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RunbookDraft',
          type: {
            name: 'Composite',
            class_name: 'RunbookDraft',
            model_properties: {
              in_edit: {
                client_side_validation: true,
                required: false,
                serialized_name: 'inEdit',
                type: {
                  name: 'Boolean'
                }
              },
              draft_content_link: {
                client_side_validation: true,
                required: false,
                serialized_name: 'draftContentLink',
                type: {
                  name: 'Composite',
                  class_name: 'ContentLink'
                }
              },
              creation_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'creationTime',
                type: {
                  name: 'DateTime'
                }
              },
              last_modified_time: {
                client_side_validation: true,
                required: false,
                serialized_name: 'lastModifiedTime',
                type: {
                  name: 'DateTime'
                }
              },
              parameters: {
                client_side_validation: true,
                required: false,
                serialized_name: 'parameters',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'RunbookParameterElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'RunbookParameter'
                      }
                  }
                }
              },
              output_types: {
                client_side_validation: true,
                required: false,
                serialized_name: 'outputTypes',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
