Skip to content

Get

//trimblecloud-fileservice/trimblecloud.fileservice/ResourcesAPI/get

get

[JVM]
abstract fun get(@NonNullspaceId: @NonNullUUID, @NonNullresourceId: @NonNullUUID): CompletableFuture<Response<Resource>>

Get resource by id.

Return

A future that resolves to file, folder or support file based on the resourceId.

Parameters

JVM

spaceId- Space identifier
resourceId- Resource identifier to operate on

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 get(@NonNullspaceId: @NonNullUUID, @NonNullresourceId: @NonNullUUID, @NonNullparams: @NonNullGetResourceParams): CompletableFuture<Response<Resource>>

Get resource by id.

Return

A future that resolves to file, folder or support file based on the resourceId.

Parameters

JVM

spaceId- Space identifier
resourceId- Resource identifier to operate on
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 get(@NonNullspaceId: @NonNullUUID, @NonNullpath: @NonNullString): CompletableFuture<Response<Resource>>

Get resource by path.

Return

A future that resolves to a file, folder or support file at the specified path.

Parameters

JVM

spaceId- Space identifier
path- Path to the resource

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 get(@NonNullspaceId: @NonNullUUID, @NonNullpath: @NonNullString, @NonNullparams: @NonNullGetResourceParams): CompletableFuture<Response<Resource>>

Get resource by path.

Return

A future that resolves to a file, folder or support file at the specified path.

Parameters

JVM

spaceId- Space identifier
path- Path to the resource
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.