@yawetse/pkgcloud
Version:
An infrastructure-as-a-service agnostic cloud library for node.js
33 lines (26 loc) • 732 B
JavaScript
/*
* zone.js: Base zone from which all pkgcloud dns zone inherit from
*
* (C) 2013 Rackspace
* Ken Perkins
* MIT LICENSE
*
*/
var util = require('util'),
model = require('../base/model');
var Zone = exports.Zone = function (client, details) {
model.Model.call(this, client, details);
};
util.inherits(Zone, model.Model);
Zone.prototype.create = function (callback) {
return this.client.createZone(this, callback);
};
Zone.prototype.get = function (callback) {
return this.client.getZone(this, callback);
};
Zone.prototype.update = function (callback) {
return this.client.updateZone(this, callback);
};
Zone.prototype.destroy = function (callback) {
return this.client.deleteZone(this, callback);
};