Skip to content

Restore

//trimblecloud-fileservice/trimblecloud.fileservice/FilesAPI/restore

restore

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

Restore a file from the deleted state.

Return

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

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 restore(@NonNullspaceId: @NonNullUUID, @NonNullfileId: @NonNullUUID, @NonNullparams: @NonNullRestoreFileParams): CompletableFuture<Response<FileJobResponse>>

Restore a file from the deleted state.

Return

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

Parameters

JVM

spaceId- The space id.
fileId- The file id.
params- The parameters for the restore operation.

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: @NonNullRestoreFileRequest): CompletableFuture<Response<FileJobResponse>>

Restore a file from the deleted state.

Return

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

Parameters

JVM

request- The request to restore a 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 restore(@NonNullrequest: @NonNullRestoreFileRequest, @NonNullrequestHeader: @NonNullRequestHeader): CompletableFuture<Response<FileJobResponse>>

Restore a file from the deleted state.

Return

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

Parameters

JVM

request- The request to restore a file.
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.