UNPKG

@canonical/jujulib

Version:
126 lines (124 loc) 3.67 kB
/** Juju CAASFirewaller 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"; /** */ class CAASFirewallerV1 { constructor(transport, info) { this.NAME = "CAASFirewaller"; this.VERSION = 1; this._transport = transport; this._info = info; // Automatically bind all methods to instances. autoBind(this); } /** ApplicationCharmInfo returns information about an application's charm. */ applicationCharmInfo(params) { return new Promise((resolve, reject) => { const req = { type: "CAASFirewaller", request: "ApplicationCharmInfo", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } /** ApplicationsConfig returns the config for the specified applications. */ applicationsConfig(params) { return new Promise((resolve, reject) => { const req = { type: "CAASFirewaller", request: "ApplicationsConfig", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } /** CharmInfo returns information about the requested charm. */ charmInfo(params) { return new Promise((resolve, reject) => { const req = { type: "CAASFirewaller", request: "CharmInfo", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } /** IsExposed returns whether the specified applications are exposed. */ isExposed(params) { return new Promise((resolve, reject) => { const req = { type: "CAASFirewaller", request: "IsExposed", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } /** Life returns the life status of every supplied entity, where available. */ life(params) { return new Promise((resolve, reject) => { const req = { type: "CAASFirewaller", request: "Life", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } /** Watch starts an NotifyWatcher for each given entity. */ watch(params) { return new Promise((resolve, reject) => { const req = { type: "CAASFirewaller", request: "Watch", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } /** WatchApplications starts a StringsWatcher to watch applications deployed to this model. */ watchApplications(params) { return new Promise((resolve, reject) => { const req = { type: "CAASFirewaller", request: "WatchApplications", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } } CAASFirewallerV1.NAME = "CAASFirewaller"; CAASFirewallerV1.VERSION = 1; export default CAASFirewallerV1; //# sourceMappingURL=CAASFirewallerV1.js.map