text: /*
   * Copyright (c) Microsoft Corporation. All rights reserved.
   * Licensed under the MIT License. See License.txt in the project root for
   * license information.
   *
   * Code generated by Microsoft (R) AutoRest Code Generator.
   * Changes may cause incorrect behavior and will be lost if the code is
   * regenerated.
   */
  
  'use strict';
  
  const models = require('./index');
  
  /**
   * Class representing a Thing.
   * @extends models['Response']
   */
  class Thing extends models['Response'] {
    /**
     * Create a Thing.
     * @property {string} [name] The name of the thing represented by this
     * object.
     * @property {string} [url] The URL to get more information about the thing
     * represented by this object.
     * @property {object} [image]
     * @property {object} [image.thumbnail] The URL to a thumbnail of the image
     * @property {string} [description] A short description of the item.
     * @property {string} [bingId] An ID that uniquely identifies this item.
     */
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of Thing
     *
     * @returns {object} metadata of Thing
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'Thing',
        type: {
          name: 'Composite',
          polymorphicDiscriminator: {
            serializedName: '_type',
            clientName: '_type'
          },
          uberParent: 'ResponseBase',
          className: 'Thing',
          modelProperties: {
            _type: {
              required: true,
              serializedName: '_type',
              isPolymorphicDiscriminator: true,
              type: {
                name: 'String'
              }
            },
            id: {
              required: false,
              readOnly: true,
              serializedName: 'id',
              type: {
                name: 'String'
              }
            },
            webSearchUrl: {
              required: false,
              readOnly: true,
              serializedName: 'webSearchUrl',
              type: {
                name: 'String'
              }
            },
            name: {
              required: false,
              readOnly: true,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            url: {
              required: false,
              readOnly: true,
              serializedName: 'url',
              type: {
                name: 'String'
              }
            },
            image: {
              required: false,
              readOnly: true,
              serializedName: 'image',
              type: {
                name: 'Composite',
                polymorphicDiscriminator: {
                  serializedName: '_type',
                  clientName: '_type'
                },
                uberParent: 'ResponseBase',
                className: 'ImageObject'
              }
            },
            description: {
              required: false,
              readOnly: true,
              serializedName: 'description',
              type: {
                name: 'String'
              }
            },
            bingId: {
              required: false,
              readOnly: true,
              serializedName: 'bingId',
              type: {
                name: 'String'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = Thing;
  