public class Ameto
extends java.lang.Object
| Constructor and Description |
|---|
Ameto(java.lang.String url,
java.lang.String apiToken) |
| Modifier and Type | Method and Description |
|---|---|
Asset |
add(java.io.InputStream assetContent)
Uploads the specified asset content.
|
Pipeline |
add(java.lang.String name,
Operator firstOperator,
Operator... operators)
Adds the specified pipeline to ameto.
|
java.util.Set<Asset> |
getAssets()
Returns Assets that have been uploaded to Ameto.
|
java.util.List<Job> |
getJobs()
Returns a list of all jobs.
|
java.util.Set<Pipeline> |
getPipelines()
Returns a collection of all pipelines.
|
public Pipeline add(java.lang.String name, Operator firstOperator, Operator... operators)
name - Pipeline namefirstOperator - First processing stepoperators - Subsequent processing stepsAmetoException - if communication with the API was not possible or the response returned an error.public java.util.Set<Pipeline> getPipelines()
AmetoException - if communication with the API was not possible or the response returned an error.public java.util.Set<Asset> getAssets()
AmetoException - if the asset list could not be retrievedpublic Asset add(java.io.InputStream assetContent)
assetContent - Binary content of the assetAmetoException - if an error occurs during asset uploadpublic java.util.List<Job> getJobs()
AmetoException - if the request could not be sent