/*
 * 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 0.16.0.0
 * Changes may cause incorrect behavior and will be lost if the code is
 * regenerated.
 */

'use strict';

var models = require('./index');

var util = require('util');

/**
 * @class
 * Initializes a new instance of the Dependency class.
 * @constructor
 * Deployment dependency information.
 * @member {array} [dependsOn] Gets the list of dependencies.
 * 
 * @member {string} [id] Gets or sets the ID of the dependency.
 * 
 * @member {string} [resourceType] Gets or sets the dependency resource type.
 * 
 * @member {string} [resourceName] Gets or sets the dependency resource name.
 * 
 */
function Dependency() {
}

/**
 * Defines the metadata of Dependency
 *
 * @returns {object} metadata of Dependency
 *
 */
Dependency.prototype.mapper = function () {
  return {
    required: false,
    serializedName: 'Dependency',
    type: {
      name: 'Composite',
      className: 'Dependency',
      modelProperties: {
        dependsOn: {
          required: false,
          serializedName: 'dependsOn',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serializedName: 'BasicDependencyElementType',
                type: {
                  name: 'Composite',
                  className: 'BasicDependency'
                }
            }
          }
        },
        id: {
          required: false,
          serializedName: 'id',
          type: {
            name: 'String'
          }
        },
        resourceType: {
          required: false,
          serializedName: 'resourceType',
          type: {
            name: 'String'
          }
        },
        resourceName: {
          required: false,
          serializedName: 'resourceName',
          type: {
            name: 'String'
          }
        }
      }
    }
  };
};

module.exports = Dependency;
