text: /**
   * IronFunctions
   * The open source serverless platform.
   *
   * OpenAPI spec version: 0.1.29
   *
   * NOTE: This class is auto generated by the swagger code generator program.
   * https://github.com/swagger-api/swagger-codegen.git
   *
   * Swagger Codegen version: 2.2.3
   *
   * Do not edit the class manually.
   *
   */
  
  (function(root, factory) {
    if (typeof define === 'function' && define.amd) {
      // AMD. Register as an anonymous module.
      define(['ApiClient', 'model/Version'], factory);
    } else if (typeof module === 'object' && module.exports) {
      // CommonJS-like environments that support module.exports, like Node.
      module.exports = factory(require('../ApiClient'), require('../model/Version'));
    } else {
      // Browser globals (root is window)
      if (!root.FnJs) {
        root.FnJs = {};
      }
      root.FnJs.VersionApi = factory(root.FnJs.ApiClient, root.FnJs.Version);
    }
  }(this, function(ApiClient, Version) {
    'use strict';
  
    /**
     * Version service.
     * @module api/VersionApi
     * @version 0.1.29
     */
  
    /**
     * Constructs a new VersionApi. 
     * @alias module:api/VersionApi
     * @class
     * @param {module:ApiClient} apiClient Optional API client implementation to use,
     * default to {@link module:ApiClient#instance} if unspecified.
     */
    var exports = function(apiClient) {
      this.apiClient = apiClient || ApiClient.instance;
  
  
      /**
       * Callback function to receive the result of the versionGet operation.
       * @callback module:api/VersionApi~versionGetCallback
       * @param {String} error Error message, if any.
       * @param {module:model/Version} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Get daemon version.
       * @param {module:api/VersionApi~versionGetCallback} callback The callback function, accepting three arguments: error, data, response
       * data is of type: {@link module:model/Version}
       */
      this.versionGet = function(callback) {
        var postBody = null;
  
  
        var pathParams = {
        };
        var queryParams = {
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['application/json'];
        var returnType = Version;
  
        return this.apiClient.callApi(
          '/version', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType, callback
        );
      }
    };
  
    return exports;
  }));
  