UNPKG

@canonical/jujulib

Version:

Juju API client

57 lines (56 loc) 1.79 kB
/** Juju UserSecretsManager 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"; /** UserSecretsManager is the implementation for the usersecrets facade. */ class UserSecretsManagerV1 { constructor(transport, info) { this.NAME = "UserSecretsManager"; this.VERSION = 1; this._transport = transport; this._info = info; // Automatically bind all methods to instances. autoBind(this); } /** DeleteRevisions deletes the specified revisions of the specified secret. */ deleteRevisions(params) { return new Promise((resolve, reject) => { const req = { type: "UserSecretsManager", request: "DeleteRevisions", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } /** WatchRevisionsToPrune returns a watcher for notifying when: - a secret revision owned by the model no longer has any consumers and should be pruned. */ watchRevisionsToPrune(params) { return new Promise((resolve, reject) => { const req = { type: "UserSecretsManager", request: "WatchRevisionsToPrune", version: 1, params: params, }; this._transport.write(req, resolve, reject); }); } } UserSecretsManagerV1.NAME = "UserSecretsManager"; UserSecretsManagerV1.VERSION = 1; export default UserSecretsManagerV1; //# sourceMappingURL=UserSecretsManagerV1.js.map