Skip to content

Restore

//trimblecloud-fileservice/trimblecloud.fileservice/FoldersAPI/restore

restore

[JVM]
abstract fun restore(@NonNullspaceId: @NonNullUUID, @NonNullfolderId: @NonNullUUID): CompletableFuture<Response<FolderJobResponse>>

Restores a folder to the original location.

Return

  • A Future that resolves to a Response object containing the result of the restore operation.

Parameters

JVM

spaceId- The space id.
folderId- The folder id to restore.

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 restore(@NonNullspaceId: @NonNullUUID, @NonNullfolderId: @NonNullUUID, @NonNullparams: @NonNullRestoreFolderParams): CompletableFuture<Response<FolderJobResponse>>

Restores a folder to the location specified in the params.

Return

  • A Future that resolves to a Response object containing the result of the restore operation.

Parameters

JVM

spaceId- The space id.
folderId- The folder id to restore.
params- The parameters to restore a folder.

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 restore(@NonNullrequest: @NonNullRestoreFolderRequest): CompletableFuture<Response<FolderJobResponse>>

Restores a folder to the original location.

Return

  • A Future that resolves to a Response object containing the result of the restore operation.

Parameters

JVM

request- The request to restore the folder.

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 restore(@NonNullrequest: @NonNullRestoreFolderRequest, @NonNullrequestHeader: @NonNullRequestHeader): CompletableFuture<Response<FolderJobResponse>>

Restores a folder to the original location.

Return

  • A Future that resolves to a Response object containing the result of the restore operation.

Parameters

JVM

request- The request to restore the folder.
requestHeader- The request header containing additional information.

Throws

TCPServiceException- If an error occurs due to API or network-related issues.
SDKClientException- If a client-side error occurs within the SDK.