You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
<article><h1>Paperspace API (v0.1.5)</h1><p><imgsrc="https://user-images.githubusercontent.com/585865/27562775-26b8acc6-5a9c-11e7-8270-2b80ca895bc5.png" alt="image"></p>
49
+
<article><h1>Paperspace API (v0.1.6)</h1><p><imgsrc="https://user-images.githubusercontent.com/585865/27562775-26b8acc6-5a9c-11e7-8270-2b80ca895bc5.png" alt="image"></p>
50
50
<hr>
51
51
<p><strong>Heads up! This project is under construction!</strong> We're offering this early, unstable, pre-alpha release to get early feedback and to see how it might get used in the wild. Use caution: Until we ship a release >= v1.0, expect to encounter bugs, and expect our documentation to be missing or inaccurate in places. We welcome your bug reports and suggestions via GitHub Issues!</p>
<li><ahref="scripts.md">Script Guide</a> for creating and using startup scripts</li>
59
59
</ul>
60
+
<h2>Release Notes for v0.1.6</h2><h4>New Features</h4><ul>
61
+
<li>Pre-built binaries are now available for <ahref="https://s3.amazonaws.com/paperspace-node/v0.1.6/win/paperspace.exe">Windows</a>, <ahref="https://s3.amazonaws.com/paperspace-node/v0.1.6/mac/paperspace">Mac</a>, and <ahref="https://s3.amazonaws.com/paperspace-node/v0.1.6/linux/paperspace">Linux</a>. These binaries enable you to run the paperspace-node command line tool without having to install Nodejs or any additional node modules.</li>
62
+
<li>New methods for early access to jobs. Please contact hello@paperspace.com for more information.</li>
63
+
</ul>
64
+
<h4>Breaking Changes</h4><p><em>BREAKING CHANGE #1</em> (for Nodejs apps which use the paperspace-node module):</p>
65
+
<p>In previous versions (up to 0.1.5) paperspace-node methods returned an HTTP response object on success, and application code needed
66
+
to dereference through the HTTP response body object to get attributes of the returned object.
67
+
For example, when getting the name of a machine you would have code like this:</p>
68
+
<preclass="prettyprint source"><code>paperspace.machines.show({ machineId: 'ps123abc' }, function callback(err, resp) {
69
+
if (err) return err;
70
+
console.log(resp.body.id);
71
+
});</code></pre><p>The new convention is to return the 'body' object directly in the second callback parameter, e.g.:</p>
72
+
<preclass="prettyprint source"><code>paperspace.machines.show({ machineId: 'ps123abc' }, function callback(err, resp) {
73
+
if (err) return err;
74
+
console.log(resp.id);
75
+
});</code></pre><p>This change simplifies code that works with the returned objects, and provides better encapsulation. The command line version of the api already followed this convention.</p>
76
+
<p><em>BREAKING CHANGE #2</em> (if building the command line app or a custom Nodejs app using the source):</p>
77
+
<p>paperspace-node now requires Nodejs 8.9.3 or later. This Node version is specified in the package.json file in the root of the repository.
78
+
This change is to support stand-alone binaries of the paperspace-node command line tool that don't require a separate installation of Node.
79
+
Previously Node 4.2.3 or later was required, but that version of Node will soon no longer be maintained (after April 2018). You can read more about Node's support cycle here: <ahref="https://github.com/nodejs/Release">Node Releases</a></p>
80
+
<h4>Fixes</h4><ul>
81
+
<li>Minor doc fixes</li>
82
+
</ul>
60
83
<h2>Release Notes for v0.1.5</h2><h4>New features</h4><ul>
61
84
<li>New method: machines update</li>
62
85
<li>machines show method now includes last 10 events associated with the machine</li>
@@ -145,7 +168,7 @@ <h2>Copyright</h2><p>Copyright :copyright: 2017 Paperspace - All Rights Reserved
145
168
<brclass="clear">
146
169
147
170
<footer>
148
-
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
171
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Copy file name to clipboardExpand all lines: docs/jobs.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3775,7 +3775,7 @@ <h5>Returns:</h5>
3775
3775
<brclass="clear">
3776
3776
3777
3777
<footer>
3778
-
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
3778
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
105
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
280
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
123
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
110
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
if (params.container && typeof params.container !== 'string') return ifCliPrintErrorOnly(new Error('Parameter `container` expected to be a string'));
226
+
if (params.workspace && typeof params.workspace !== 'string') return ifCliPrintErrorOnly(new Error('Parameter `workspace` expected to be a string'));
227
+
225
228
if (params.machineType) projectConfig.setMachineType(params.project, params.machineType);
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
466
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
106
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
71
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Dec 14 2017 12:04:22 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
133
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Tue Dec 19 2017 23:31:24 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
0 commit comments