Source: model/ForkEndpoint.js

/*
 * Signadot API
 * API for Signadot Sandboxes
 *
 * OpenAPI spec version: 1.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.4.25
 *
 * Do not edit the class manually.
 *
 */

import {ApiClient} from '../ApiClient';

/**
 * The ForkEndpoint model module.
 * @module model/ForkEndpoint
 */
export class ForkEndpoint {
  /**
   * Constructs a new <code>ForkEndpoint</code>.
   * @alias module:model/ForkEndpoint
   * @class
   */
  constructor() {
  }

  /**
   * Constructs a <code>ForkEndpoint</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/ForkEndpoint} obj Optional instance to populate.
   * @return {module:model/ForkEndpoint} The populated <code>ForkEndpoint</code> instance.
   */
  static constructFromObject(data, obj) {
    if (data) {
      obj = obj || new ForkEndpoint();
      if (data.hasOwnProperty('name'))
        obj.name = ApiClient.convertToType(data['name'], 'String');
      if (data.hasOwnProperty('port'))
        obj.port = ApiClient.convertToType(data['port'], 'Number');
      if (data.hasOwnProperty('protocol'))
        obj.protocol = ApiClient.convertToType(data['protocol'], 'String');
    }
    return obj;
  }
}

/**
 * Name of the endpoint
 * @member {String} name
 */
ForkEndpoint.prototype.name = undefined;

/**
 * Port it will map to on the forked workload
 * @member {Number} port
 */
ForkEndpoint.prototype.port = undefined;

/**
 * Protocol that this endpoint uses
 * @member {String} protocol
 */
ForkEndpoint.prototype.protocol = undefined;