|
1 |
| -<a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/edit/master/lib/helper/uploadHelper.js" class="improve-docs"><i class="icon-edit"> </i>Improve this doc</a><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/e41f592/lib/helper/uploadHelper.js#L8" class="view-source"><i class="icon-eye-open"> </i>View source</a><h1><code ng:non-bindable="">uploadHelper</code> |
| 1 | +<a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/edit/master/lib/helper/uploadHelper.js" class="improve-docs"><i class="icon-edit"> </i>Improve this doc</a><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/a33a891/lib/helper/uploadHelper.js#L8" class="view-source"><i class="icon-eye-open"> </i>View source</a><h1><code ng:non-bindable="">uploadHelper</code> |
2 | 2 | <div><span class="hint">service in module <code ng:non-bindable="">predicsis.jsSDK.helpers</code>
|
3 | 3 | </span>
|
4 | 4 | </div>
|
|
13 | 13 | </div></li>
|
14 | 14 | </ul>
|
15 | 15 | <div class="member method"><h2 id="methods">Methods</h2>
|
16 |
| -<ul class="methods"><li><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/e41f592/lib/helper/uploadHelper.js#L178" class="view-source icon-eye-open"> </a><h3 id="methods_all">all()</h3> |
| 16 | +<ul class="methods"><li><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/a33a891/lib/helper/uploadHelper.js#L172" class="view-source icon-eye-open"> </a><h3 id="methods_all">all()</h3> |
17 | 17 | <div class="all"><div class="all-page"><p>list all currently uploaded datasets</p>
|
18 | 18 | </div><h5 id="methods_all_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-array">Array</a></td><td><div class="all-page"><p>List of active upload objects. An active upload has the following properties:</p>
|
19 | 19 | <ul>
|
|
25 | 25 | <li>isUploading</li>
|
26 | 26 | <li>created_at</li>
|
27 | 27 | <li>cancelUpload</li>
|
28 |
| -</ul></div></td></tr></table></div> |
| 28 | +</ul> |
| 29 | +</div></td></tr></table></div> |
29 | 30 | </li>
|
30 |
| -<li><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/e41f592/lib/helper/uploadHelper.js#L213" class="view-source icon-eye-open"> </a><h3 id="methods_cancel">cancel(uploadId)</h3> |
| 31 | +<li><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/a33a891/lib/helper/uploadHelper.js#L207" class="view-source icon-eye-open"> </a><h3 id="methods_cancel">cancel(uploadId)</h3> |
31 | 32 | <div class="cancel"><div class="cancel-page"><p>Abort a single upload</p>
|
32 | 33 | </div><h5 id="methods_cancel_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>uploadId</td><td><a href="" class="label type-hint type-hint-string">String</a></td><td><div class="cancel-page"><p>Id of the upload to stop</p>
|
33 | 34 | </div></td></tr></tbody></table></div>
|
34 | 35 | </li>
|
35 |
| -<li><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/e41f592/lib/helper/uploadHelper.js#L202" class="view-source icon-eye-open"> </a><h3 id="methods_get">get(uploadId)</h3> |
| 36 | +<li><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/a33a891/lib/helper/uploadHelper.js#L196" class="view-source icon-eye-open"> </a><h3 id="methods_get">get(uploadId)</h3> |
36 | 37 | <div class="get"><div class="get-page"><p>get an active upload</p>
|
37 | 38 | </div><h5 id="methods_get_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>uploadId</td><td><a href="" class="label type-hint type-hint-string">String</a></td><td><div class="get-page"><p>An upload identifier looks like <timestamp>_<filename></p>
|
38 | 39 | </div></td></tr></tbody></table><h5 id="methods_get_returns">Returns</h5><table class="variables-matrix"><tr><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="get-page"><p>An upload object with the following properties:</p>
|
|
45 | 46 | <li>isUploading</li>
|
46 | 47 | <li>created_at</li>
|
47 | 48 | <li>cancelUpload</li>
|
48 |
| -</ul></div></td></tr></table></div> |
| 49 | +</ul> |
| 50 | +</div></td></tr></table></div> |
49 | 51 | </li>
|
50 |
| -<li><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/e41f592/lib/helper/uploadHelper.js#L131" class="view-source icon-eye-open"> </a><h3 id="methods_upload">upload(file, storageService)</h3> |
| 52 | +<li><a href="https://github.com/yllieth/predicsis_ml_sdk-javascript/blob/a33a891/lib/helper/uploadHelper.js#L118" class="view-source icon-eye-open"> </a><h3 id="methods_upload">upload(file, storageService)</h3> |
51 | 53 | <div class="upload"><div class="upload-page"><p>upload a file
|
52 | 54 | The upload method raises the following events during the upload process:</p>
|
53 | 55 | <ul>
|
|
109 | 111 | destination folder is handled by the API and its <code>Sources.getCredentials</code> request.</p>
|
110 | 112 | </div><h5 id="methods_upload_parameters">Parameters</h5><table class="variables-matrix table table-bordered table-striped"><thead><tr><th>Param</th><th>Type</th><th>Details</th></tr></thead><tbody><tr><td>file</td><td><a href="" class="label type-hint type-hint-object">Object</a></td><td><div class="upload-page"><p>html5 File instance</p>
|
111 | 113 | </div></td></tr><tr><td>storageService</td><td><a href="" class="label type-hint type-hint-string">String=s3</a></td><td><div class="upload-page"><p>Name of PredicSis' storage service.
|
112 |
| -The API only accepts one of the following values: s3.</p> |
| 114 | +The API only accepts one of the following values: s3, swift.</p> |
113 | 115 | </div></td></tr></tbody></table></div>
|
114 | 116 | </li>
|
115 | 117 | </ul>
|
|
0 commit comments