# 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::CognitiveServices::Face::V1_0
  module Models
    #
    # A combination of user defined name and user specified data for the
    # person, largePersonGroup/personGroup, and largeFaceList/faceList.
    #
    class NameAndUserDataContract

      include MsRestAzure

      # @return [String] User defined name, maximum length is 128.
      attr_accessor :name

      # @return [String] User specified data. Length should not exceed 16KB.
      attr_accessor :user_data


      #
      # Mapper for NameAndUserDataContract class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'NameAndUserDataContract',
          type: {
            name: 'Composite',
            class_name: 'NameAndUserDataContract',
            model_properties: {
              name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'name',
                constraints: {
                  MaxLength: 128
                },
                type: {
                  name: 'String'
                }
              },
              user_data: {
                client_side_validation: true,
                required: false,
                serialized_name: 'userData',
                constraints: {
                  MaxLength: 16384
                },
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
