class Azure::CognitiveServices::VisualSearch::V1_0::Models::ImagesImageMetadata
Defines a count of the number of websites where you can shop or perform other actions related to the image.
Attributes
aggregate_offer[RW]
@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.
recipe_sources_count[RW]
@return [Integer] The number of websites that offer recipes of the food seen in the image.
shopping_sources_count[RW]
@return [Integer] The number of websites that sell the products seen in the image.
Private Class Methods
mapper()
click to toggle source
Mapper for ImagesImageMetadata
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0/generated/azure_cognitiveservices_visualsearch/models/images_image_metadata.rb, line 37 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