Package com.atlan.api

Class ImagesEndpoint


public class ImagesEndpoint extends HeraclesEndpoint
API endpoints for managing images that can be uploaded to Atlan.
  • Constructor Details

    • ImagesEndpoint

      public ImagesEndpoint(AtlanClient client)
  • 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 issues
      MalformedURLException - if the provided URL is invalid
      IOException - on any issues accessing or reading from the provided URL
    • 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)
      options - to override default client settings
      Returns:
      details of the uploaded image
      Throws:
      AtlanException - on any API communication issues
      MalformedURLException - if the provided URL is invalid
      IOException - on any issues accessing or reading from the provided URL
    • upload

      public AtlanImage upload(File file) throws AtlanException, IOException
      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 issues
      IOException - on any issues accessing or reading from the provided file
    • upload

      public AtlanImage upload(File file, RequestOptions options) throws AtlanException, IOException
      Upload an image from a local file.
      Parameters:
      file - local file containing the image
      options - to override default client settings
      Returns:
      details of the uploaded image
      Throws:
      AtlanException - on any API communication issues
      IOException - on any issues accessing or reading from the provided file
    • upload

      public AtlanImage upload(InputStream imageSrc, String filename) throws AtlanException
      Upload an image from a given input stream.
      Parameters:
      imageSrc - source of the image, as an input stream
      filename - 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 stream
      filename - 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