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.
Copy file name to clipboardExpand all lines: lib/jobs/machineTypes.js
+12-10Lines changed: 12 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -9,14 +9,16 @@ var assign = require('lodash.assign');
9
9
* @description Return a list of available cluster machine types. If the isBusy property is true then all machines of the specified type and cluster are currently running jobs.
10
10
* The machineTypes method takes an optional first argument to limit the returned cluster machine type objects.
11
11
* @param {object} [filter] - An optional filter object to limit the returned job objects
12
-
* @param {string} [filter.clusterName] - Optional cluster name to match on
12
+
* @param {string} [filter.region] - Optional region to match on
13
+
* @param {string} [filter.cluster] - Optional cluster to match on
13
14
* @param {string} [filter.machineType] - Optional machine type to macth on
14
15
* @param {boolean} [filter.isBusy] - Optional busy status value to match on
15
16
* @param {function} cb - Node-style error-first callback function
16
17
* @returns {array} [ clusterMachineType, ... ] - JSON array of available cluster machine type objects
17
18
* @example
18
19
* paperspace.jobs.machineTypes({
19
-
* // clusterName: 'PS Jobs', // optional filter on cluster name
20
+
* // region: 'East Coast (NY2)', // optional filter on region
21
+
* // cluster: 'PS Jobs', // optional filter on cluster
20
22
* // machineType: 'P5000', // optional filter on machine type
21
23
* // isBusy: false, // optional filter on busy status
22
24
* }, function(err, res) {
@@ -34,26 +36,26 @@ var assign = require('lodash.assign');
0 commit comments