# 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::SpellCheck::V1_0
  module Models
    #
    # Model object.
    #
    #
    class SpellingTokenSuggestion

      include MsRestAzure

      # @return [String]
      attr_accessor :suggestion

      # @return [Float]
      attr_accessor :score

      # @return [String]
      attr_accessor :ping_url_suffix


      #
      # Mapper for SpellingTokenSuggestion class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Spelling/TokenSuggestion',
          type: {
            name: 'Composite',
            class_name: 'SpellingTokenSuggestion',
            model_properties: {
              suggestion: {
                client_side_validation: true,
                required: true,
                serialized_name: 'suggestion',
                type: {
                  name: 'String'
                }
              },
              score: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'score',
                type: {
                  name: 'Double'
                }
              },
              ping_url_suffix: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'pingUrlSuffix',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
