class Azure::CognitiveServices::CustomSearch::V1_0::Models::CreativeWork
Model object.
Attributes
_type[RW]
provider[RW]
@return [Array<Thing>] The source of the creative work.
text[RW]
@return [String]
thumbnail_url[RW]
@return [String] The URL to a thumbnail of the item.
Private Class Methods
mapper()
click to toggle source
Mapper for CreativeWork
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0/generated/azure_cognitiveservices_customsearch/models/creative_work.rb, line 37 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CreativeWork', type: { name: 'Composite', class_name: 'CreativeWork', model_properties: { _type: { client_side_validation: true, required: true, serialized_name: '_type', type: { name: 'String' } }, id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, web_search_url: { client_side_validation: true, required: false, read_only: true, serialized_name: 'webSearchUrl', type: { name: 'String' } }, name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, url: { client_side_validation: true, required: false, read_only: true, serialized_name: 'url', type: { name: 'String' } }, description: { client_side_validation: true, required: false, read_only: true, serialized_name: 'description', type: { name: 'String' } }, bing_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'bingId', type: { name: 'String' } }, thumbnail_url: { client_side_validation: true, required: false, read_only: true, serialized_name: 'thumbnailUrl', type: { name: 'String' } }, provider: { client_side_validation: true, required: false, read_only: true, serialized_name: 'provider', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ThingElementType', type: { name: 'Composite', class_name: 'Thing' } } } }, text: { client_side_validation: true, required: false, read_only: true, serialized_name: 'text', type: { name: 'String' } } } } } end
new()
click to toggle source
# File lib/1.0/generated/azure_cognitiveservices_customsearch/models/creative_work.rb, line 17 def initialize @_type = "CreativeWork" end