Package com.atlan.api
Class ImagesEndpoint
java.lang.Object
com.atlan.api.AbstractEndpoint
com.atlan.api.HeraclesEndpoint
com.atlan.api.ImagesEndpoint
API endpoints for managing images that can be uploaded to Atlan.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.api.AbstractEndpoint
AbstractEndpoint.RawResponse, AbstractEndpoint.ThrowingSupplier<T,E extends Exception> -
Field Summary
Fields inherited from class com.atlan.api.AbstractEndpoint
client -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUpload an image from a local file.upload(File file, RequestOptions options) Upload an image from a local file.upload(InputStream imageSrc, String filename) Upload an image from a given input stream.upload(InputStream imageSrc, String filename, RequestOptions options) Upload an image from a given input stream.Upload an image from a given URL.upload(String fromUrl, RequestOptions options) Upload an image from a given URL.Methods inherited from class com.atlan.api.HeraclesEndpoint
getBaseUrlMethods inherited from class com.atlan.api.AbstractEndpoint
executeWithRetries, getBaseUrl, getClient
-
Constructor Details
-
ImagesEndpoint
-
-
Method Details
-
upload
Upload an image from a given URL.- Parameters:
fromUrl- URL from which to retrieve the image (must be network-accessible from client running the code)- Returns:
- details of the uploaded image
- Throws:
AtlanException- on any API communication issuesMalformedURLException- if the provided URL is invalidIOException- on any issues accessing or reading from the provided URL
-
upload
public AtlanImage upload(String fromUrl, RequestOptions options) throws AtlanException, MalformedURLException, IOException Upload an image from a given URL.- Parameters:
fromUrl- URL from which to retrieve the image (must be network-accessible from client running the code)options- to override default client settings- Returns:
- details of the uploaded image
- Throws:
AtlanException- on any API communication issuesMalformedURLException- if the provided URL is invalidIOException- on any issues accessing or reading from the provided URL
-
upload
Upload an image from a local file.- Parameters:
file- local file containing the image- Returns:
- details of the uploaded image
- Throws:
AtlanException- on any API communication issuesIOException- on any issues accessing or reading from the provided file
-
upload
Upload an image from a local file.- Parameters:
file- local file containing the imageoptions- to override default client settings- Returns:
- details of the uploaded image
- Throws:
AtlanException- on any API communication issuesIOException- on any issues accessing or reading from the provided file
-
upload
Upload an image from a given input stream.- Parameters:
imageSrc- source of the image, as an input streamfilename- name of the file the InputStream is reading (must include an extension that accurately represents the type of the image file)- Returns:
- details of the uploaded image
- Throws:
AtlanException- on any API communication issues
-
upload
public AtlanImage upload(InputStream imageSrc, String filename, RequestOptions options) throws AtlanException Upload an image from a given input stream.- Parameters:
imageSrc- source of the image, as an input streamfilename- name of the file the InputStream is reading (must include an extension that accurately represents the type of the image file)options- to override default client settings- Returns:
- details of the uploaded image
- Throws:
AtlanException- on any API communication issues
-