glesys-api
Advanced tools
Comparing version 5.1.0 to 5.2.0
# Changelog | ||
## 5.2.0 (2020-12-18) | ||
* Added new `ObjectStorage` methods (thanks @hejhansson): | ||
* `GleSYSAPI.objectStorage.createCredential()` | ||
* `GleSYSAPI.objectStorage.createInstance()` | ||
* `GleSYSAPI.objectStorage.deleteCredential()` | ||
* `GleSYSAPI.objectStorage.deleteInstance()` | ||
* `GleSYSAPI.objectStorage.editInstance()` | ||
* `GleSYSAPI.objectStorage.estimatedCost()` | ||
* `GleSYSAPI.objectStorage.instanceDetails()` | ||
* `GleSYSAPI.objectStorage.listInstances()` | ||
* Added new `Server methods`: | ||
* `GleSYSAPI.server.createFromBackup()` | ||
* `GleSYSAPI.server.listBackups()` | ||
* `GleSYSAPI.server.previewCloudConfig()` | ||
* Refactored tests to use Jest. | ||
* Updated dev dependencies. | ||
## 5.1.0 (2020-02-10) | ||
@@ -3,0 +20,0 @@ * Added new `GleSYSAPI.server.estimatedCost()` method. |
@@ -43,2 +43,7 @@ 'use strict'; | ||
// https://github.com/glesys/API/wiki/API-Documentation#servercreatefrombackup | ||
createFromBackup (data) { | ||
return this.request.post('/server/createfrombackup', data); | ||
} | ||
// https://github.com/glesys/API/wiki/API-Documentation#serverdestroy | ||
@@ -74,2 +79,7 @@ destroy (data) { | ||
// https://github.com/glesys/API/wiki/API-Documentation#serverlistbackups | ||
listBackups (data) { | ||
return this.request.post('/server/listbackups', data); | ||
} | ||
// https://github.com/glesys/API/wiki/API-Documentation#serverlistiso | ||
@@ -90,2 +100,7 @@ listISO (data) { | ||
// https://github.com/glesys/API/wiki/API-Documentation#serverpreviewcloudconfig | ||
previewCloudConfig (data) { | ||
return this.request.post('/server/previewcloudconfig', data); | ||
} | ||
// https://github.com/glesys/API/wiki/API-Documentation#serverreboot | ||
@@ -92,0 +107,0 @@ reboot (data) { |
@@ -16,3 +16,3 @@ 'use strict'; | ||
getEndpoint (endpoint) { | ||
// eslint-disable-next-line global-require | ||
// eslint-disable-next-line node/global-require | ||
endpoint = require(`./endpoints/${endpoint}`); | ||
@@ -76,2 +76,6 @@ | ||
get objectStorage () { | ||
return this.getEndpoint('objectstorage'); | ||
} | ||
get paymentCard () { | ||
@@ -78,0 +82,0 @@ return this.getEndpoint('paymentcard'); |
{ | ||
"name": "glesys-api", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "Node.js wrapper for the GleSYS API.", | ||
@@ -28,19 +28,27 @@ "main": "lib/glesys.js", | ||
"coveralls": "^3.0.0", | ||
"eslint": "^6.0.0", | ||
"eslint-config-jwilsson": "^4.0.0", | ||
"mocha": "^7.0.1", | ||
"nyc": "^15.0.0", | ||
"sinon": "^8.1.1" | ||
"eslint": "^7.15.0", | ||
"eslint-config-jwilsson": "^5.7.0", | ||
"jest": "^26.6.3" | ||
}, | ||
"scripts": { | ||
"cover": "nyc report --reporter=text-lcov | coveralls", | ||
"pretest": "eslint lib test", | ||
"test": "nyc mocha" | ||
"test": "jest " | ||
}, | ||
"babel": {}, | ||
"eslintConfig": { | ||
"extends": "eslint-config-jwilsson/node", | ||
"env": { | ||
"mocha": true | ||
"jest": true | ||
} | ||
}, | ||
"jest": { | ||
"collectCoverage": true, | ||
"setupFilesAfterEnv": [ | ||
"<rootDir>/jestSetup.js" | ||
], | ||
"testMatch": [ | ||
"<rootDir>/test/**/*.js" | ||
], | ||
"verbose": true | ||
}, | ||
"license": "MIT", | ||
@@ -47,0 +55,0 @@ "bugs": { |
# glesys-api | ||
[![npm](https://img.shields.io/npm/v/glesys-api.svg)](https://www.npmjs.com/package/glesys-api) | ||
[![Build Status](https://travis-ci.org/jwilsson/glesys-api-node.svg?branch=master)](https://travis-ci.org/jwilsson/glesys-api-node) | ||
![build](https://github.com/jwilsson/glesys-api-node/workflows/build/badge.svg) | ||
[![Coverage Status](https://coveralls.io/repos/jwilsson/glesys-api-node/badge.svg?branch=master&service=github)](https://coveralls.io/github/jwilsson/glesys-api-node?branch=master) | ||
@@ -165,2 +165,12 @@ | ||
### objectStorage | ||
* [`GleSYSAPI.objectStorage.createCredential()`](https://github.com/GleSYS/API/wiki/API-Documentation#objectstoragecreatecredential) | ||
* [`GleSYSAPI.objectStorage.createInstance()`](https://github.com/GleSYS/API/wiki/API-Documentation#objectstoragecreateinstance) | ||
* [`GleSYSAPI.objectStorage.deleteCredential()`](https://github.com/GleSYS/API/wiki/API-Documentation#objectstoragedeletecredential) | ||
* [`GleSYSAPI.objectStorage.deleteInstance()`](https://github.com/GleSYS/API/wiki/API-Documentation#objectstoragedeleteinstance) | ||
* [`GleSYSAPI.objectStorage.editInstance()`](https://github.com/GleSYS/API/wiki/API-Documentation#objectstorageeditinstance) | ||
* [`GleSYSAPI.objectStorage.estimatedCost()`](https://github.com/GleSYS/API/wiki/API-Documentation#objectstorageestimatedcost) | ||
* [`GleSYSAPI.objectStorage.instanceDetails()`](https://github.com/GleSYS/API/wiki/API-Documentation#objectstorageinstancedetails) | ||
* [`GleSYSAPI.objectStorage.listInstances()`](https://github.com/GleSYS/API/wiki/API-Documentation#objectstoragelistinstances) | ||
### paymentCard | ||
@@ -184,2 +194,3 @@ * [`GleSYSAPI.paymentCard.add()`](https://github.com/GleSYS/API/wiki/API-Documentation#paymentcardadd) | ||
* [`GleSYSAPI.server.create()`](https://github.com/GleSYS/API/wiki/API-Documentation#servercreate) | ||
* [`GleSYSAPI.server.createFromBackup()`](https://github.com/GleSYS/API/wiki/API-Documentation#servercreatefrombackup) | ||
* [`GleSYSAPI.server.destroy()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverdestroy) | ||
@@ -191,5 +202,7 @@ * [`GleSYSAPI.server.details()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverdetails) | ||
* [`GleSYSAPI.server.list()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverlist) | ||
* [`GleSYSAPI.server.listBackups()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverlistbackups) | ||
* [`GleSYSAPI.server.listISO()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverlistiso) | ||
* [`GleSYSAPI.server.mountISO()`](https://github.com/GleSYS/API/wiki/API-Documentation#servermountiso) | ||
* [`GleSYSAPI.server.networkAdapters()`](https://github.com/glesys/API/wiki/API-Documentation#servernetworkadapters) | ||
* [`GleSYSAPI.server.previewCloudConfig()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverpreviewcloudconfig) | ||
* [`GleSYSAPI.server.reboot()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverreboot) | ||
@@ -196,0 +209,0 @@ * [`GleSYSAPI.server.resetLimit()`](https://github.com/GleSYS/API/wiki/API-Documentation#serverresetlimit) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57558
4
27
917
246