class Azure::CognitiveServices::EntitySearch::V1_0::Models::Thing

Model object.

Attributes

_type[RW]
bing_id[RW]

@return [String] An ID that uniquely identifies this item.

description[RW]

@return [String] A short description of the item.

entity_presentation_info[RW]

@return [EntitiesEntityPresentationInfo] Additional information about the entity such as hints that you can use to determine the entity's type. To determine the entity's type, use the entityScenario and entityTypeHint fields.

image[RW]

@return [ImageObject]

name[RW]

@return [String] The name of the thing represented by this object.

url[RW]

@return [String] The URL to get more information about the thing represented by this object.

Private Class Methods

mapper() click to toggle source

Mapper for Thing class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/1.0/generated/azure_cognitiveservices_entitysearch/models/thing.rb, line 50
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Thing',
    type: {
      name: 'Composite',
      class_name: 'Thing',
      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'
          }
        },
        contractual_rules: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'contractualRules',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ContractualRulesContractualRuleElementType',
                type: {
                  name: 'Composite',
                  polymorphic_discriminator: '_type',
                  uber_parent: 'ContractualRulesContractualRule',
                  class_name: 'ContractualRulesContractualRule'
                }
            }
          }
        },
        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'
          }
        },
        image: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'image',
          type: {
            name: 'Composite',
            class_name: 'ImageObject'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'description',
          type: {
            name: 'String'
          }
        },
        entity_presentation_info: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'entityPresentationInfo',
          type: {
            name: 'Composite',
            class_name: 'EntitiesEntityPresentationInfo'
          }
        },
        bing_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'bingId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/1.0/generated/azure_cognitiveservices_entitysearch/models/thing.rb, line 17
def initialize
  @_type = "Thing"
end