@canonical/jujulib
Version:
Juju API client
41 lines (39 loc) • 1.07 kB
JavaScript
/**
Juju Resumer version 2.
This facade is available on:
Controller-machine-agent
NOTE: This file was generated using the Juju schema
from Juju 3.0-beta1 at the git SHA 61c87ab7e1.
Do not manually edit this file.
*/
import { autoBind } from "../../utils.js";
/**
ResumerAPI implements the API used by the resumer worker.
*/
class ResumerV2 {
constructor(transport, info) {
this.NAME = "Resumer";
this.VERSION = 2;
this._transport = transport;
this._info = info;
// Automatically bind all methods to instances.
autoBind(this);
}
/**
*/
resumeTransactions(params) {
return new Promise((resolve, reject) => {
const req = {
type: "Resumer",
request: "ResumeTransactions",
version: 2,
params: params,
};
this._transport.write(req, resolve, reject);
});
}
}
ResumerV2.NAME = "Resumer";
ResumerV2.VERSION = 2;
export default ResumerV2;
//# sourceMappingURL=ResumerV2.js.map