Skip to content

Commit

Permalink
Merge pull request #64 from kom-senapati/feat/list-ml-engines
Browse files Browse the repository at this point in the history
feat: A function to list ML engines
  • Loading branch information
ZoranPandovski authored Nov 13, 2024
2 parents c7a1d0b + bd9115d commit 1dfdcec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ml_engines/ml_engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ export default class MLEngine {
this.connection_data = connection_data;
}

/**
* Lists all mlEngines for the user.
* @returns {Promise<Array<MLEngine>>} - List of all mlEngines.
*/
async list(): Promise<Array<MLEngine>> {
return this.mlEnginesApiClient.getAllMLEngines();
}

/**
* Removes a specified mlEngine by its name.
* @param {string} mlEngineName - The name of the mlEngine to remove.
Expand Down

0 comments on commit 1dfdcec

Please sign in to comment.