@ornncompute/cli 1.0.418 → 1.0.420

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ornncompute/cli",
3
- "version": "1.0.418",
3
+ "version": "1.0.420",
4
4
  "description": "Command-line interface for Ornn compute access workflows.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -199,6 +199,12 @@ function listControllers(request, query = {}, signal) {
199
199
  function createController(request, body, options) {
200
200
  return request(controllersSocketPath, { ...options, method: "POST", body });
201
201
  }
202
+ function renameController(request, id, clusterName) {
203
+ return request(controllerPath(id), {
204
+ method: "PATCH",
205
+ body: { cluster_name: clusterName }
206
+ });
207
+ }
202
208
  function getControllerAccess(request, id, signal) {
203
209
  return request(`${controllerPath(id)}/access`, {
204
210
  method: "GET",
@@ -1443,6 +1449,7 @@ export {
1443
1449
  remoteRunPath,
1444
1450
  removeControllerNode,
1445
1451
  removeControllerVirtualMachine,
1452
+ renameController,
1446
1453
  requestAgentUpdate,
1447
1454
  requestDiskRebuilds,
1448
1455
  reservationEventsPath,