/**
 * MEEP Controller REST API
 * Copyright (c) 2019 InterDigital Communications, Inc. All rights reserved. The information provided herein is the proprietary and confidential information of InterDigital Communications, Inc. 
 *
 * OpenAPI spec version: 1.0.0
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 *
 * Swagger Codegen version: 2.3.1
 *
 * Do not edit the class manually.
 *
 */

(function(root, factory) {
  if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(['ApiClient', 'model/ExternalConfig', 'model/ServiceConfig'], factory);
  } else if (typeof module === 'object' && module.exports) {
    // CommonJS-like environments that support module.exports, like Node.
    module.exports = factory(require('../ApiClient'), require('./ExternalConfig'), require('./ServiceConfig'));
  } else {
    // Browser globals (root is window)
    if (!root.MeepControllerRestApi) {
      root.MeepControllerRestApi = {};
    }
    root.MeepControllerRestApi.Process = factory(root.MeepControllerRestApi.ApiClient, root.MeepControllerRestApi.ExternalConfig, root.MeepControllerRestApi.ServiceConfig);
  }
}(this, function(ApiClient, ExternalConfig, ServiceConfig) {
  'use strict';




  /**
   * The Process model module.
   * @module model/Process
   * @version 1.0.0
   */

  /**
   * Constructs a new <code>Process</code>.
   * Application or service object
   * @alias module:model/Process
   * @class
   */
  var exports = function() {
    var _this = this;















  };

  /**
   * Constructs a <code>Process</code> from a plain JavaScript object, optionally creating a new instance.
   * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
   * @param {Object} data The plain JavaScript object bearing properties of interest.
   * @param {module:model/Process} obj Optional instance to populate.
   * @return {module:model/Process} The populated <code>Process</code> instance.
   */
  exports.constructFromObject = function(data, obj) {
    if (data) {
      obj = obj || new exports();

      if (data.hasOwnProperty('id')) {
        obj['id'] = ApiClient.convertToType(data['id'], 'String');
      }
      if (data.hasOwnProperty('name')) {
        obj['name'] = ApiClient.convertToType(data['name'], 'String');
      }
      if (data.hasOwnProperty('type')) {
        obj['type'] = ApiClient.convertToType(data['type'], 'String');
      }
      if (data.hasOwnProperty('isExternal')) {
        obj['isExternal'] = ApiClient.convertToType(data['isExternal'], 'Boolean');
      }
      if (data.hasOwnProperty('image')) {
        obj['image'] = ApiClient.convertToType(data['image'], 'String');
      }
      if (data.hasOwnProperty('environment')) {
        obj['environment'] = ApiClient.convertToType(data['environment'], 'String');
      }
      if (data.hasOwnProperty('commandArguments')) {
        obj['commandArguments'] = ApiClient.convertToType(data['commandArguments'], 'String');
      }
      if (data.hasOwnProperty('commandExe')) {
        obj['commandExe'] = ApiClient.convertToType(data['commandExe'], 'String');
      }
      if (data.hasOwnProperty('serviceConfig')) {
        obj['serviceConfig'] = ServiceConfig.constructFromObject(data['serviceConfig']);
      }
      if (data.hasOwnProperty('externalConfig')) {
        obj['externalConfig'] = ExternalConfig.constructFromObject(data['externalConfig']);
      }
      if (data.hasOwnProperty('status')) {
        obj['status'] = ApiClient.convertToType(data['status'], 'String');
      }
      if (data.hasOwnProperty('userChartLocation')) {
        obj['userChartLocation'] = ApiClient.convertToType(data['userChartLocation'], 'String');
      }
      if (data.hasOwnProperty('userChartAlternateValues')) {
        obj['userChartAlternateValues'] = ApiClient.convertToType(data['userChartAlternateValues'], 'String');
      }
      if (data.hasOwnProperty('userChartGroup')) {
        obj['userChartGroup'] = ApiClient.convertToType(data['userChartGroup'], 'String');
      }
    }
    return obj;
  }

  /**
   * Unique process ID
   * @member {String} id
   */
  exports.prototype['id'] = undefined;
  /**
   * Process name
   * @member {String} name
   */
  exports.prototype['name'] = undefined;
  /**
   * Process type
   * @member {module:model/Process.TypeEnum} type
   */
  exports.prototype['type'] = undefined;
  /**
   * true: process is external to MEEP false: process is internal to MEEP
   * @member {Boolean} isExternal
   */
  exports.prototype['isExternal'] = undefined;
  /**
   * Docker image to deploy inside MEEP
   * @member {String} image
   */
  exports.prototype['image'] = undefined;
  /**
   * Environment variables using the format NAME=\"value\",NAME=\"value\",NAME=\"value\"
   * @member {String} environment
   */
  exports.prototype['environment'] = undefined;
  /**
   * Arguments to command executable
   * @member {String} commandArguments
   */
  exports.prototype['commandArguments'] = undefined;
  /**
   * Executable to invoke at container start up
   * @member {String} commandExe
   */
  exports.prototype['commandExe'] = undefined;
  /**
   * @member {module:model/ServiceConfig} serviceConfig
   */
  exports.prototype['serviceConfig'] = undefined;
  /**
   * @member {module:model/ExternalConfig} externalConfig
   */
  exports.prototype['externalConfig'] = undefined;
  /**
   * Process status
   * @member {String} status
   */
  exports.prototype['status'] = undefined;
  /**
   * Chart location for the deployment of the chart provided by the user
   * @member {String} userChartLocation
   */
  exports.prototype['userChartLocation'] = undefined;
  /**
   * Chart values.yaml file location for the deployment of the chart provided by the user
   * @member {String} userChartAlternateValues
   */
  exports.prototype['userChartAlternateValues'] = undefined;
  /**
   * Chart supplemental information related to the group (service)
   * @member {String} userChartGroup
   */
  exports.prototype['userChartGroup'] = undefined;


  /**
   * Allowed values for the <code>type</code> property.
   * @enum {String}
   * @readonly
   */
  exports.TypeEnum = {
    /**
     * value: "UE-APP"
     * @const
     */
    "UE-APP": "UE-APP",
    /**
     * value: "EDGE-APP"
     * @const
     */
    "EDGE-APP": "EDGE-APP",
    /**
     * value: "MEC-SVC"
     * @const
     */
    "MEC-SVC": "MEC-SVC",
    /**
     * value: "CLOUD-APP"
     * @const
     */
    "CLOUD-APP": "CLOUD-APP"  };


  return exports;
}));


