UNPKG

@canonical/jujulib

Version:
43 lines (42 loc) 1.42 kB
/** Juju CharmRevisionUpdater version 2. This facade is available on: Controller-machine-agent 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"; /** CharmRevisionUpdaterAPI implements the CharmRevisionUpdater interface and is the concrete implementation of the api end point. */ class CharmRevisionUpdaterV2 { constructor(transport, info) { this.NAME = "CharmRevisionUpdater"; this.VERSION = 2; this._transport = transport; this._info = info; // Automatically bind all methods to instances. autoBind(this); } /** UpdateLatestRevisions retrieves the latest revision information from the charm store for all deployed charms and records this information in state. */ updateLatestRevisions(params) { return new Promise((resolve, reject) => { const req = { type: "CharmRevisionUpdater", request: "UpdateLatestRevisions", version: 2, params: params, }; this._transport.write(req, resolve, reject); }); } } CharmRevisionUpdaterV2.NAME = "CharmRevisionUpdater"; CharmRevisionUpdaterV2.VERSION = 2; export default CharmRevisionUpdaterV2; //# sourceMappingURL=CharmRevisionUpdaterV2.js.map