Source: model/SandboxEndpoint.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 SandboxEndpoint model module.
 * @module model/SandboxEndpoint
 */
export class SandboxEndpoint {
  /**
   * Constructs a new <code>SandboxEndpoint</code>.
   * @alias module:model/SandboxEndpoint
   * @class
   */
  constructor() {
  }

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

/**
 * Hostname that this endpoint points to
 * @member {String} host
 */
SandboxEndpoint.prototype.host = undefined;

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

/**
 * Port it will map to on the specified host
 * @member {Number} port
 */
SandboxEndpoint.prototype.port = undefined;

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