UNPKG

@canonical/jujulib

Version:

Juju API client

45 lines (44 loc) 1.16 kB
/** Juju Backups version 3. This facade is available on: Controller-machine-agent Machine-agent Unit-agent Models NOTE: This file was generated using the Juju schema from Juju 3.3 at the git SHA 65fa4c1ee5. Do not manually edit this file. */ import { autoBind } from "../../utils.js"; /** API provides backup-specific API methods. */ class BackupsV3 { constructor(transport, info) { this.NAME = "Backups"; this.VERSION = 3; this._transport = transport; this._info = info; // Automatically bind all methods to instances. autoBind(this); } /** Create is the API method that requests juju to create a new backup of its state. */ create(params) { return new Promise((resolve, reject) => { const req = { type: "Backups", request: "Create", version: 3, params: params, }; this._transport.write(req, resolve, reject); }); } } BackupsV3.NAME = "Backups"; BackupsV3.VERSION = 3; export default BackupsV3; //# sourceMappingURL=BackupsV3.js.map