@canonical/jujulib
Version:
Juju API client
57 lines (56 loc) • 1.7 kB
JavaScript
/**
Juju LogForwarding version 1.
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";
/**
LogForwardingAPI is the concrete implementation of the api end point.
*/
class LogForwardingV1 {
constructor(transport, info) {
this.NAME = "LogForwarding";
this.VERSION = 1;
this._transport = transport;
this._info = info;
// Automatically bind all methods to instances.
autoBind(this);
}
/**
GetLastSent is a bulk call that gets the log forwarding "last sent"
record ID for each requested target.
*/
getLastSent(params) {
return new Promise((resolve, reject) => {
const req = {
type: "LogForwarding",
request: "GetLastSent",
version: 1,
params: params,
};
this._transport.write(req, resolve, reject);
});
}
/**
SetLastSent is a bulk call that sets the log forwarding "last sent"
record ID for each requested target.
*/
setLastSent(params) {
return new Promise((resolve, reject) => {
const req = {
type: "LogForwarding",
request: "SetLastSent",
version: 1,
params: params,
};
this._transport.write(req, resolve, reject);
});
}
}
LogForwardingV1.NAME = "LogForwarding";
LogForwardingV1.VERSION = 1;
export default LogForwardingV1;
//# sourceMappingURL=LogForwardingV1.js.map