# 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::ImageSearch::V1_0
  module Models
    #
    # Defines an image tile.
    #
    class TrendingImagesTile

      include MsRestAzure

      # @return [Query] A query that returns a Bing search results page with
      # more images of the subject. For example, if the category is Popular
      # People Searches, then the thumbnail is of a popular person. The query
      # would return a Bing search results page with more images of that
      # person.
      attr_accessor :query

      # @return [ImageObject] The image's thumbnail.
      attr_accessor :image


      #
      # Mapper for TrendingImagesTile class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TrendingImages/Tile',
          type: {
            name: 'Composite',
            class_name: 'TrendingImagesTile',
            model_properties: {
              query: {
                client_side_validation: true,
                required: true,
                serialized_name: 'query',
                type: {
                  name: 'Composite',
                  class_name: 'Query'
                }
              },
              image: {
                client_side_validation: true,
                required: true,
                serialized_name: 'image',
                type: {
                  name: 'Composite',
                  class_name: 'ImageObject'
                }
              }
            }
          }
        }
      end
    end
  end
end
