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');
  
  /**
   * Information about the health of a service package for a specific application
   * deployed on a Service Fabric node.
   *
   * @extends models['EntityHealth']
   */
  class DeployedServicePackageHealth extends models['EntityHealth'] {
    /**
     * Create a DeployedServicePackageHealth.
     * @property {string} [applicationName] The name of the application,
     * including the 'fabric:' URI scheme.
     * @property {string} [serviceManifestName] Name of the service manifest.
     * @property {string} [nodeName] Name of the node where this service package
     * is deployed.
     */
    constructor() {
      super();
    }
  
    /**
     * Defines the metadata of DeployedServicePackageHealth
     *
     * @returns {object} metadata of DeployedServicePackageHealth
     *
     */
    mapper() {
      return {
        required: false,
        serializedName: 'DeployedServicePackageHealth',
        type: {
          name: 'Composite',
          className: 'DeployedServicePackageHealth',
          modelProperties: {
            aggregatedHealthState: {
              required: false,
              serializedName: 'AggregatedHealthState',
              type: {
                name: 'String'
              }
            },
            healthEvents: {
              required: false,
              serializedName: 'HealthEvents',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'HealthEventElementType',
                    type: {
                      name: 'Composite',
                      className: 'HealthEvent'
                    }
                }
              }
            },
            unhealthyEvaluations: {
              required: false,
              serializedName: 'UnhealthyEvaluations',
              type: {
                name: 'Sequence',
                element: {
                    required: false,
                    serializedName: 'HealthEvaluationWrapperElementType',
                    type: {
                      name: 'Composite',
                      className: 'HealthEvaluationWrapper'
                    }
                }
              }
            },
            healthStatistics: {
              required: false,
              serializedName: 'HealthStatistics',
              type: {
                name: 'Composite',
                className: 'HealthStatistics'
              }
            },
            applicationName: {
              required: false,
              serializedName: 'ApplicationName',
              type: {
                name: 'String'
              }
            },
            serviceManifestName: {
              required: false,
              serializedName: 'ServiceManifestName',
              type: {
                name: 'String'
              }
            },
            nodeName: {
              required: false,
              serializedName: 'NodeName',
              type: {
                name: 'String'
              }
            }
          }
        }
      };
    }
  }
  
  module.exports = DeployedServicePackageHealth;
  