Class: Azure::CognitiveServices::ImageSearch::V1_0::Models::ImagesImageMetadata

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images_image_metadata.rb

Overview

Defines a count of the number of websites where you can shop or perform other actions related to the image.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#aggregate_offerAggregateOffer

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.

Returns:



30
31
32
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images_image_metadata.rb', line 30

def aggregate_offer
  @aggregate_offer
end

#recipe_sources_countInteger

seen in the image.

Returns:

  • (Integer)

    The number of websites that offer recipes of the food



22
23
24
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images_image_metadata.rb', line 22

def recipe_sources_count
  @recipe_sources_count
end

#shopping_sources_countInteger

products seen in the image.

Returns:

  • (Integer)

    The number of websites that offer goods of the



18
19
20
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images_image_metadata.rb', line 18

def shopping_sources_count
  @shopping_sources_count
end

Class Method Details

.mapperObject

Mapper for ImagesImageMetadata class as Ruby Hash. This will be used for serialization/deserialization.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/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