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');
  
  /**
   * Base class for restore request. Workload-specific restore requests are
   * derived from this class.
   *
   * @extends models['Resource']
   */
  class RestoreRequestResource extends models['Resource'] {
    /**
     * Create a RestoreRequestResource.
     * @member {object} [properties] RestoreRequestResource properties
     * @member {string} [properties.objectType] Polymorphic Discriminator
     */
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of RestoreRequestResource
     *
     * @returns {object} metadata of RestoreRequestResource
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'RestoreRequestResource',
        type: {
          name: 'Composite',
          className: 'RestoreRequestResource',
          modelProperties: {
            id: {
              required: false,
              readOnly: true,
              serializedName: 'id',
              type: {
                name: 'String'
              }
            },
            name: {
              required: false,
              readOnly: true,
              serializedName: 'name',
              type: {
                name: 'String'
              }
            },
            type: {
              required: false,
              readOnly: true,
              serializedName: 'type',
              type: {
                name: 'String'
              }
            },
            location: {
              required: false,
              serializedName: 'location',
              type: {
                name: 'String'
              }
            },
            tags: {
              required: false,
              serializedName: 'tags',
              type: {
                name: 'Dictionary',
                value: {
                    required: false,
                    serializedName: 'StringElementType',
                    type: {
                      name: 'String'
                    }
                }
              }
            },
            eTag: {
              required: false,
              serializedName: 'eTag',
              type: {
                name: 'String'
              }
            },
            properties: {
              required: false,
              serializedName: 'properties',
              type: {
                name: 'Composite',
                polymorphicDiscriminator: {
                  serializedName: 'objectType',
                  clientName: 'objectType'
                },
                uberParent: 'RestoreRequest',
                className: 'RestoreRequest'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = RestoreRequestResource;
  