text: (function(root, factory) {
    if (typeof define === 'function' && define.amd) {
      // AMD. Register as an anonymous module.
      define(['../../../alfrescoApiClient', '../model/ResultListDataRepresentation'], factory);
    } else if (typeof module === 'object' && module.exports) {
      // CommonJS-like environments that support module.exports, like Node.
      module.exports = factory(require('../../../alfrescoApiClient'), require('../model/ResultListDataRepresentation'));
    } else {
      // Browser globals (root is window)
      if (!root.ActivitiPublicRestApi) {
        root.ActivitiPublicRestApi = {};
      }
      root.ActivitiPublicRestApi.IntegrationDriveApi = factory(root.ActivitiPublicRestApi.ApiClient, root.ActivitiPublicRestApi.ResultListDataRepresentation);
    }
  }(this, function(ApiClient, ResultListDataRepresentation) {
    'use strict';
  
    /**
     * IntegrationDrive service.
     * @module api/IntegrationDriveApi
     * @version 1.4.0
     */
  
    /**
     * Constructs a new IntegrationDriveApi.
     * @alias module:api/IntegrationDriveApi
     * @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;
  
  
      /**
       * Function to receive the result of the confirmAuthorisation operation.
       * @param {String} error Error message, if any.
       * @param data This operation does not return a value.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * Drive Authorization
       * Returns Drive Oauth HTML Page
       * @param {String} code code
       */
      this.confirmAuthorisation = function(code) {
        var postBody = null;
  
        // verify the required parameter 'code' is set
        if (code == undefined || code == null) {
          throw "Missing the required parameter 'code' when calling confirmAuthorisation";
        }
  
  
        var pathParams = {
        };
        var queryParams = {
          'code': code
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['text/html', 'application/json'];
        var returnType = null;
  
        return this.apiClient.callApi(
          '/api/enterprise/integration/google-drive/confirm-auth-request', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType
        );
      }
  
      /**
       * Function to receive the result of the getFiles operation.
       * @param {String} error Error message, if any.
       * @param {module:model/ResultListDataRepresentation} data The data returned by the service call.
       * @param {String} response The complete HTTP response.
       */
  
      /**
       * List file &amp; folders
       * @param {Object} opts Optional parameters
       * @param {String} opts.filter filter
       * @param {String} opts.parent parent
       * @param {Boolean} opts.currentFolderOnly currentFolderOnly
       */
      this.getFiles = function(opts) {
        opts = opts || {};
        var postBody = null;
  
  
        var pathParams = {
        };
        var queryParams = {
          'filter': opts['filter'],
          'parent': opts['parent'],
          'currentFolderOnly': opts['currentFolderOnly']
        };
        var headerParams = {
        };
        var formParams = {
        };
  
        var authNames = [];
        var contentTypes = ['application/json'];
        var accepts = ['application/json'];
        var returnType = ResultListDataRepresentation;
  
        return this.apiClient.callApi(
          '/api/enterprise/integration/google-drive/files', 'GET',
          pathParams, queryParams, headerParams, formParams, postBody,
          authNames, contentTypes, accepts, returnType
        );
      }
    };
  
    return exports;
  }));
  