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
   * Initializes a new instance of the TopLevelDomain class.
   * @constructor
   * A top level domain object.
   *
   * @member {string} [domainName] Name of the top level domain.
   *
   * @member {boolean} [privacy] If <code>true</code>, then the top level domain
   * supports domain privacy; otherwise, <code>false</code>.
   *
   */
  class TopLevelDomain extends models['Resource'] {
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of TopLevelDomain
     *
     * @returns {object} metadata of TopLevelDomain
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'TopLevelDomain',
        type: {
          name: 'Composite',
          className: 'TopLevelDomain',
          modelProperties: {
            id: {
              required: false,
              readOnly: true,
              serializedName: 'id',
              type: {
                name: 'String'
              }
            },
            name: {
              required: false,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            kind: {
              required: false,
              serializedName: 'kind',
              type: {
                name: 'String'
              }
            },
            location: {
              required: true,
              serializedName: 'location',
              type: {
                name: 'String'
              }
            },
            type: {
              required: false,
              serializedName: 'type',
              type: {
                name: 'String'
              }
            },
            tags: {
              required: false,
              serializedName: 'tags',
              type: {
                name: 'Dictionary',
                value: {
                    required: false,
                    serializedName: 'StringElementType',
                    type: {
                      name: 'String'
                    }
                }
              }
            },
            domainName: {
              required: false,
              readOnly: true,
              serializedName: 'properties.name',
              type: {
                name: 'String'
              }
            },
            privacy: {
              required: false,
              serializedName: 'properties.privacy',
              type: {
                name: 'Boolean'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = TopLevelDomain;
  