Class: Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImagesCategory
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImagesCategory
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images_category.rb
Overview
Defines the category of trending images.
Instance Attribute Summary collapse
-
#tiles ⇒ Array<TrendingImagesTile>
in the category.
-
#title ⇒ String
People Searches.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for TrendingImagesCategory class as Ruby Hash.
Instance Attribute Details
#tiles ⇒ Array<TrendingImagesTile>
in the category. Each tile contains an image and a URL that returns more images of the subject. For example, if the category is Popular People Searches, the image is of a popular person and the URL would return more images of that person.
24 25 26 |
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images_category.rb', line 24 def tiles @tiles end |
#title ⇒ String
People Searches.
17 18 19 |
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images_category.rb', line 17 def title @title end |
Class Method Details
.mapper ⇒ Object
Mapper for TrendingImagesCategory class as Ruby Hash. This will be used for serialization/deserialization.
31 32 33 34 35 36 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 |
# File 'lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images_category.rb', line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'TrendingImages/Category', type: { name: 'Composite', class_name: 'TrendingImagesCategory', model_properties: { title: { client_side_validation: true, required: true, serialized_name: 'title', type: { name: 'String' } }, tiles: { client_side_validation: true, required: true, serialized_name: 'tiles', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'TrendingImagesTileElementType', type: { name: 'Composite', class_name: 'TrendingImagesTile' } } } } } } } end |