class Azure::CognitiveServices::CustomSearch::V1_0::Models::Response

Defines a response. All schemas that could be returned at the root of a response should inherit from this

Attributes

_type[RW]
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_customsearch/models/response.rb, line 31
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'
          }
        },
        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_customsearch/models/response.rb, line 17
def initialize
  @_type = "Response"
end