UNPKG

pkgcloud

Version:

An infrastructure-as-a-service agnostic cloud library for node.js

28 lines (23 loc) 591 B
/* * image.js: OpenStack Cloud image * * (C) 2013 Nodejitsu Inc. * */ var utile = require('utile'), base = require('../../core/compute/image'); var Image = exports.Image = function Image(client, details) { base.Image.call(this, client, details); }; utile.inherits(Image, base.Image); Image.prototype._setProperties = function (details) { this.id = details.id; this.name = details.name; this.created = details.created; // // OpenStack specific // this.updated = details.updated; this.status = details.status; this.progress = details.progress; };