List Versions
//trimblecloud-fileservice/trimblecloud.fileservice/FilesAPI/listVersions
listVersions
[JVM]
abstract fun listVersions(@NonNullspaceId: @NonNullUUID, @NonNullfileId: @NonNullUUID): CompletableFuture<Response<FileList>>
Get all versions of a file by id. Default filters are applied. It retrieves files with status = active, urlDuration = 60m, pageSize = 100.
Return
- A future that resolves to the files response.
Parameters
JVM
| spaceId | - The space id. |
| fileId | - The file id. |
Throws
| TCPServiceException | - If an error occurs due to API or network-related issues. |
| SDKClientException | - If a client-side error occurs within the SDK. |
[JVM]
abstract fun listVersions(@NonNullspaceId: @NonNullUUID, @NonNullfileId: @NonNullUUID, @NonNullparams: @NonNullListFileParams): CompletableFuture<Response<FileList>>
Get all versions of a file by id.
Return
- A future that resolves to the files response.
Parameters
JVM
| spaceId | - The space id. |
| fileId | - The file id. |
| params | - The parameters to filter the response. |
Throws
| TCPServiceException | - If an error occurs due to API or network-related issues. |
| SDKClientException | - If a client-side error occurs within the SDK. |
[JVM]
abstract fun listVersions(@NonNullspaceId: @NonNullUUID, @NonNullpath: @NonNullString): CompletableFuture<Response<FileList>>
Get all versions of a file by path. Default filters are applied. It retrieves files with status = active, urlDuration = 60m, pageSize = 100.
Return
- A future that resolves to the files response.
Parameters
JVM
| spaceId | - The space id. |
| path | - The path of the file. |
Throws
| TCPServiceException | - If an error occurs due to API or network-related issues. |
| SDKClientException | - If a client-side error occurs within the SDK. |
[JVM]
abstract fun listVersions(@NonNullspaceId: @NonNullUUID, @NonNullpath: @NonNullString, @NonNullparams: @NonNullListFileParams): CompletableFuture<Response<FileList>>
Get all versions of a file by path.
Return
A future that resolves to the files response.
Parameters
JVM
| spaceId | - The space id. |
| path | - The path of the file. |
| params | - The parameters to filter the response. |
Throws
| TCPServiceException | - If an error occurs due to API or network-related issues. |
| SDKClientException | - If a client-side error occurs within the SDK. |