Interface UploadTarget<T,​R>

  • Type Parameters:
    T - The type of the resource to upsert to CDF.
    R - The return type of the upload operation.
    All Known Implementing Classes:
    Files

    public interface UploadTarget<T,​R>
    An interface for API endpoints that supports uploading a resource type T.
    • Method Detail

      • upload

        List<R> upload​(List<T> objects)
                throws Exception
        Upserts a collection of objects to Cognite Data Fusion.

        If it is a new object (based on id / externalId, then it will be created.

        If the object already exists in Cognite Data Fusion, it will be updated. The update behavior is specified via the update mode in the ClientConfig settings.

        Parameters:
        objects - the objects to upsert to CDF
        Returns:
        a list of the confirmed upserted objects.
        Throws:
        Exception