# 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::CustomerInsights::Mgmt::V2017_04_26
  module Models
    #
    # The definition of a canonical profile property.
    #
    class CanonicalProfileDefinitionPropertiesItem

      include MsRestAzure

      # @return [String] Profile name.
      attr_accessor :profile_name

      # @return [String] Property name of profile.
      attr_accessor :profile_property_name

      # @return [Integer] The rank.
      attr_accessor :rank

      # @return [CanonicalPropertyValueType] Type of canonical property value.
      # Possible values include: 'Numeric', 'Categorical',
      # 'DerivedCategorical', 'DerivedNumeric'
      attr_accessor :type

      # @return [String] Value of the canonical property.
      attr_accessor :value


      #
      # Mapper for CanonicalProfileDefinitionPropertiesItem class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CanonicalProfileDefinition_propertiesItem',
          type: {
            name: 'Composite',
            class_name: 'CanonicalProfileDefinitionPropertiesItem',
            model_properties: {
              profile_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'profileName',
                type: {
                  name: 'String'
                }
              },
              profile_property_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'profilePropertyName',
                type: {
                  name: 'String'
                }
              },
              rank: {
                client_side_validation: true,
                required: false,
                serialized_name: 'rank',
                type: {
                  name: 'Number'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'value',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
