@canonical/jujulib
Version:
Juju API client
56 lines (55 loc) • 1.61 kB
JavaScript
/**
Juju ImageManager version 2.
This facade is available on:
Models
NOTE: This file was generated using the Juju schema
from Juju 3.0-beta4 at the git SHA a13ab81a.
Do not manually edit this file.
*/
import { autoBind } from "../../utils.js";
/**
ImageManagerAPI implements the ImageManager interface and is the concrete
implementation of the api end point.
*/
class ImageManagerV2 {
constructor(transport, info) {
this.NAME = "ImageManager";
this.VERSION = 2;
this._transport = transport;
this._info = info;
// Automatically bind all methods to instances.
autoBind(this);
}
/**
DeleteImages deletes the images matching the specified filter.
*/
deleteImages(params) {
return new Promise((resolve, reject) => {
const req = {
type: "ImageManager",
request: "DeleteImages",
version: 2,
params: params,
};
this._transport.write(req, resolve, reject);
});
}
/**
ListImages returns images matching the specified filter.
*/
listImages(params) {
return new Promise((resolve, reject) => {
const req = {
type: "ImageManager",
request: "ListImages",
version: 2,
params: params,
};
this._transport.write(req, resolve, reject);
});
}
}
ImageManagerV2.NAME = "ImageManager";
ImageManagerV2.VERSION = 2;
export default ImageManagerV2;
//# sourceMappingURL=ImageManagerV2.js.map