# 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 a count of the number of websites where you can shop or perform
    # other actions related to the image.
    #
    class ImagesImageMetadata

      include MsRestAzure

      # @return [Integer] The number of websites that offer goods of the
      # products seen in the image.
      attr_accessor :shopping_sources_count

      # @return [Integer] The number of websites that offer recipes of the food
      # seen in the image.
      attr_accessor :recipe_sources_count

      # @return [AggregateOffer] A summary of the online offers of products
      # found in the image. For example, if the image is of a dress, the offer
      # might identify the lowest price and the number of offers found. Only
      # visually similar products insights include this field. The offer
      # includes the following fields: Name, AggregateRating, OfferCount, and
      # LowPrice.
      attr_accessor :aggregate_offer


      #
      # Mapper for ImagesImageMetadata class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Images/ImageMetadata',
          type: {
            name: 'Composite',
            class_name: 'ImagesImageMetadata',
            model_properties: {
              shopping_sources_count: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'shoppingSourcesCount',
                type: {
                  name: 'Number'
                }
              },
              recipe_sources_count: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'recipeSourcesCount',
                type: {
                  name: 'Number'
                }
              },
              aggregate_offer: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'aggregateOffer',
                type: {
                  name: 'Composite',
                  class_name: 'AggregateOffer'
                }
              }
            }
          }
        }
      end
    end
  end
end
