• FunctionsApi - functional programming interface

    Parameters

    Returns {
        adminCreateFunction(groupId, appId, newFunction, options?) => Promise<((axios?, basePath?) => AxiosPromise<AdminCreateFunction201Response>)>;
        adminDeleteFunction(groupId, appId, functionId, options?) => Promise<((axios?, basePath?) => AxiosPromise<void>)>;
        adminExecuteFunction(userId, runAsSystem, groupId, appId, adminExecuteFunctionRequest, options?) => Promise<((axios?, basePath?) => AxiosPromise<AdminExecuteFunction200Response>)>;
        adminExecuteFunctionSource(userId, runAsSystem, groupId, appId, adminExecuteFunctionSourceRequest, options?) => Promise<((axios?, basePath?) => AxiosPromise<AdminExecuteFunction200Response>)>;
        adminGetFunction(groupId, appId, functionId, options?) => Promise<((axios?, basePath?) => AxiosPromise<Function>)>;
        adminListFunctions(groupId, appId, options?) => Promise<((axios?, basePath?) => AxiosPromise<any>)>;
        adminUpdateFunction(groupId, appId, functionId, options?) => Promise<((axios?, basePath?) => AxiosPromise<NewFunction>)>;
    }

    • adminCreateFunction:function
    • adminDeleteFunction:function
      • Delete a Function.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<void>)>

        Summary

        Delete a Function

        Throws

    • adminExecuteFunction:function
      • Execute a function for testing.

        Parameters

        • userId: any

          The user as which to execute the function. Either `user_id` or `run_as_system` is required. You cannot specify both.

        • runAsSystem: any

          Determine whether or not to run as system user. Either `run_as_system` or `user_id` is required. You cannot specify both.

        • groupId: any

          An Atlas Project/Group ID.

        • appId: any

          The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.

        • adminExecuteFunctionRequest: AdminExecuteFunctionRequest

          The function to execute.

        • Optional options: AxiosRequestConfig<any>

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<AdminExecuteFunction200Response>)>

        Summary

        Execute a function

        Throws

    • adminExecuteFunctionSource:function
      • Execute a function's source code for testing.

        Parameters

        • userId: any

          The user as which to execute the function. Either `user_id` or `run_as_system` is required. You cannot specify both.

        • runAsSystem: any

          Determine whether or not to run as system user. Either `run_as_system` or `user_id` is required. You cannot specify both.

        • groupId: any

          An Atlas Project/Group ID.

        • appId: any

          The ObjectID of your application. The App Services API Project and Application IDs section demonstrates how to find this value.

        • adminExecuteFunctionSourceRequest: AdminExecuteFunctionSourceRequest

          The source to execute.

        • Optional options: AxiosRequestConfig<any>

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<AdminExecuteFunction200Response>)>

        Summary

        Execute a function's source code for testing

        Throws

    • adminGetFunction:function
      • Retrieve a Function.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<Function>)>

        Summary

        Retrieve a Function

        Throws

    • adminListFunctions:function
      • List Functions.

        Parameters

        Returns Promise<((axios?, basePath?) => AxiosPromise<any>)>

        Summary

        List Functions

        Throws

    • adminUpdateFunction:function

    Export

Generated using TypeDoc