class Azure::CognitiveServices::ImageSearch::V1_0::Models::TrendingImagesCategory
Defines the category of trending images.
Attributes
tiles[RW]
@return [Array<TrendingImagesTile>] A list of images that are trending 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.
title[RW]
@return [String] The name of the image category. For example, Popular People Searches.
Private Class Methods
mapper()
click to toggle source
Mapper for TrendingImagesCategory
class as Ruby Hash. This will be used for serialization/deserialization.
# 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