class Azure::CognitiveServices::VisualSearch::V1_0::Models::Response
Defines a response. All schemas that return at the root of the response must inherit from this object.
Attributes
_type[RW]
read_link[RW]
@return [String] The URL that returns this resource. To use the URL, append query parameters as appropriate and include the Ocp-Apim-Subscription-Key header.
web_search_url[RW]
@return [String] The URL to Bing's search result for this item.
Private Class Methods
mapper()
click to toggle source
Mapper for Response
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0/generated/azure_cognitiveservices_visualsearch/models/response.rb, line 36 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Response', type: { name: 'Composite', class_name: 'Response', 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' } }, read_link: { client_side_validation: true, required: false, read_only: true, serialized_name: 'readLink', type: { name: 'String' } }, web_search_url: { client_side_validation: true, required: false, read_only: true, serialized_name: 'webSearchUrl', type: { name: 'String' } } } } } end
new()
click to toggle source
# File lib/1.0/generated/azure_cognitiveservices_visualsearch/models/response.rb, line 17 def initialize @_type = "Response" end