/*
 * 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 ErrorResponse class.
 * @constructor
 * @member {string} [code] Error code
 * 
 * @member {string} [message] Error message indicating why the operation
 * failed.
 * 
 */
function ErrorResponse() {
}

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

module.exports = ErrorResponse;
