UNPKG

@yawetse/pkgcloud

Version:

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

23 lines (18 loc) 493 B
/* * image.js: Azure OS Images * * (C) Microsoft Open Technologies, Inc. * */ var util = require('util'), base = require('../../core/compute/image'); var Image = exports.Image = function Image(client, details) { base.Image.call(this, client, details); }; util.inherits(Image, base.Image); Image.prototype._setProperties = function (details) { this.id = details.Name; this.name = details.Name; this.created = new Date(0); this.details = this.azure = details; };