# 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::Policy::Mgmt::V2019_09_01
  module Models
    #
    # The definition of a parameter that can be provided to the policy.
    #
    class ParameterDefinitionsValue

      include MsRestAzure

      # @return [ParameterType] The data type of the parameter. Possible values
      # include: 'String', 'Array', 'Object', 'Boolean', 'Integer', 'Float',
      # 'DateTime'
      attr_accessor :type

      # @return The allowed values for the parameter.
      attr_accessor :allowed_values

      # @return The default value for the parameter if no value is provided.
      attr_accessor :default_value

      # @return [ParameterDefinitionsValueMetadata] General metadata for the
      # parameter.
      attr_accessor :metadata


      #
      # Mapper for ParameterDefinitionsValue class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ParameterDefinitionsValue',
          type: {
            name: 'Composite',
            class_name: 'ParameterDefinitionsValue',
            model_properties: {
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              allowed_values: {
                client_side_validation: true,
                required: false,
                serialized_name: 'allowedValues',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ObjectElementType',
                      type: {
                        name: 'Object'
                      }
                  }
                }
              },
              default_value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'defaultValue',
                type: {
                  name: 'Object'
                }
              },
              metadata: {
                client_side_validation: true,
                required: false,
                serialized_name: 'metadata',
                type: {
                  name: 'Composite',
                  class_name: 'ParameterDefinitionsValueMetadata'
                }
              }
            }
          }
        }
      end
    end
  end
end
