Implementation of MLEnginesApiClient that goes through the REST API.

Hierarchy

Constructors

Properties

authenticator: default

Authenticator to use for reauthenticating if needed.

client: Axios

Axios client to send all HTTP requests.

sqlClient: default

SQL API client to send all SQL query requests.

Methods

  • Creates a mlEngine with the given name, engine, and parameters.

    Returns

    • Newly created mlEngine.

    Throws

    • Something went wrong creating the mlEngine.

    Parameters

    • name: string

      Name of the MLEngine to be created.

    • Optional codeFilePath: string | Readable

      Path to the code file or Readable of to be used for the mlEngine.

    • Optional modulesFilePath: string | Readable

      Path to the modules file or Readable of to be used for the mlEngine.

    Returns Promise<undefined | default>

  • Parameters

    • httpMethod: "post" | "put"
    • name: string
    • codeFilePathOrStream: string | Readable
    • modulesFilePathOrStream: string | Readable

    Returns Promise<undefined | default>

  • Updates a mlEngine with the given name, engine, and parameters.

    Returns

    • Newly created mlEngine.

    Throws

    • Something went wrong creating the mlEngine.

    Parameters

    • name: string

      Name of the MLEngine to be created.

    • Optional codeFilePath: string | Readable

      Path to the code file or Readable of to be used for the mlEngine.

    • Optional modulesFilePath: string | Readable

      Path to the modules file or Readable of to be used for the mlEngine.

    Returns Promise<undefined | default>

Generated using TypeDoc