/*
 * 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';

/**
 * @class
 * Initializes a new instance of the ErrorDetail class.
 * @constructor
 * @member {string} [code]
 * 
 * @member {string} [message]
 * 
 * @member {string} [target]
 * 
 */
function ErrorDetail() {
}

/**
 * Defines the metadata of ErrorDetail
 *
 * @returns {object} metadata of ErrorDetail
 *
 */
ErrorDetail.prototype.mapper = function () {
  return {
    required: false,
    serializedName: 'ErrorDetail',
    type: {
      name: 'Composite',
      className: 'ErrorDetail',
      modelProperties: {
        code: {
          required: false,
          serializedName: 'code',
          type: {
            name: 'String'
          }
        },
        message: {
          required: false,
          serializedName: 'message',
          type: {
            name: 'String'
          }
        },
        target: {
          required: false,
          serializedName: 'target',
          type: {
            name: 'String'
          }
        }
      }
    }
  };
};

module.exports = ErrorDetail;
