Skip to content

TrimbleCloud.FileService

TrimbleCloud.FileService

Base class for API requests

Content type for JSON requests

JSON wrapper format string for API requests/responses

The HTTP client instance for making requests

The wrapper name for API responses

Extracts the request ID from the HTTP response headers

The request ID if present, otherwise an empty string

Name Type Description
message System.Net.Http.HttpResponseMessage The HTTP response message

Throws a TrimbleServiceException for HTTP error responses

Name Type Description
response System.Net.Http.HttpResponseMessage The HTTP response message
Name Description
TrimbleCloud.FileService.TrimbleServiceException Always thrown with error details (includes ArgumentNullException as inner exception if response is null)

TrimbleCloud.FileService.Models

Represents the actor role mapping for the resources.

Time when the actor’s access to the resource expires.

The TRN (Trimble Resource Name) of the actor (User/Device/Application).

The role assigned to the actor.

TrimbleCloud.FileService.Models

Represents an actor in the ACL (Access Control List).

The TRN (Trimble Resource Name) of the actor (User/Device/Application).

TrimbleCloud.FileService.Models

Represents an application identity in the access control list (ACL).

Creates an application identity.

Name Type Description
applicationId System.Guid The application id

Returns the TRN (Trimble Resource Name) of the application.

This method has no parameters.

TrimbleCloud.FileService.Models

Represents a custom identity in the access control list (ACL).

Creates a custom identity.

Name Type Description
entityTrn System.String The TRN of the custom entity

Returns the TRN (Trimble Resource Name) of the custom entity.

This method has no parameters.

TrimbleCloud.FileService.Models

Represents a device identity in the access control list (ACL).

Creates a device identity.

Name Type Description
deviceId System.Guid The device id

Returns the TRN (Trimble Resource Name) of the device.

This method has no parameters.

TrimbleCloud.FileService.Models

Represents an identity in the access control list (ACL).

The entity ID

Check if two entities are equal

True if the entities are equal

Name Type Description
obj System.Object The entity to compare

Format the entity as a TRN string

The formatted TRN string

This method has no parameters.

Get the hash code for the entity

The hash code

This method has no parameters.

Construct an ACL identity

The ACL identity

Name Type Description
entityTrn System.String The entity ID

Create a string representation of the entity

The string representation

This method has no parameters.

TrimbleCloud.FileService.Models

Converter for ACLIdentity

Check if the type can be converted from a string

This method has no parameters.

Convert a string to an ACLIdentity

This method has no parameters.

TrimbleCloud.FileService.Models

Permissions types

ContentContributor has all operations on the file and folder except for the ACL control.

ContentManager almost as many permissions as SpaceManager, but cannot update/delete the file space.

ContentViewer has all read permissions on the file and folder.

LimitedViewer has restricted permissions on files and folders.

SpaceManager has highest level of permissions in the file space. Can perform all operations on the file space.

SupportFileAdmin has administrative permissions specifically for support files.

Unknown role type

TrimbleCloud.FileService.Models

Represents a user identity in the access control list (ACL).

Creates a user identity.

Name Type Description
userId System.Guid The user id

Returns the TRN (Trimble Resource Name) of the user.

This method has no parameters.

TrimbleCloud.FileService.Models

Create batch folders request

Folders to create in batch

TrimbleCloud.FileService.Models

List of Folders and Invalid Folder Items returned by the Batch Folder List API

List of Invalid Folder Items

List of Valid Folder Items

TrimbleCloud.FileService.Models

Response for Batch Get Minimal Folder List

List of Invalid Folder Items

List of Valid Folder Items

TrimbleCloud.FileService.Models

Batch Get Resources Response

List of Invalid Resource Items

List of Valid Resource Items

TrimbleCloud.FileService.Models

Represents a filespace in File Service.

Whether the user can check in the file. The actor who checked out the file or an actor with the ContentManager role attached to the file or parent resource is allowed to checkout the file.

Whether the user can check out the file. Checking out a file will prevent other actors from creating a new version or other mutation operations. A checked out file will be deleted in a recursive parent deletion. Support files cannot be checked out.

Whether the user can create a child resource (Folder/File) under the given resource.

Whether the user can delete the resource.

Whether the user can lock the given file.

Whether the user can update the permissions of the resource.

Whether the user can read the resource.

Whether the user can unlock the given file. For Unlock, a user must have the ContentManager role or have locked the file themselves. Note: The canUnlock capability is true if the user has the ContentManager role, regardless of who locked the file.

Whether the user can perform Update, Move, Rename, or Restore operations on the resource. Note: Move and Restore operations consider destination access for authorization, but canUpdate is determined solely by user roles.

TrimbleCloud.FileService.Models

Represents a checkout of a file in File Service.

The date and time when the file was checked out.

The actor who checked out the file.

The reason for checking out the file.

TrimbleCloud.FileService.Models

Request object for file copying operations

Whether to copy the ACL of the file. If true, the copied file will have the same ACL as the original file of permissionLocal and not permissionInherited

The file ID to copy

Custom HTTP headers to include with the request

Copy support files and links along with the files

The new name of the copied file. If not specified, the file will be copied with its original name

Whether to overwrite an existing resource. If true, the existing resource will have a new version created with the copied content

Update the permissions on the file.

The space ID

The target parent ID where the file will be copied to

All specified versions will be copied. If not specified, the latest version will be copied

TrimbleCloud.FileService.Models

Request object for file copying operations

Whether to copy the ACL of the file. If true, the copied file will have the same ACL as the original file of permissionLocal and not permissionInherited

The file ID to copy

Custom HTTP headers to include with the request

Copy support files and links along with the files

The new name of the copied file. If not specified, the file will be copied with its original name

Whether to overwrite an existing resource. If true, the existing resource will have a new version created with the copied content

Update the permissions on the file.

The space ID

The target parent ID where the file will be copied to

TrimbleCloud.FileService.Models

Contains the download URL of a file.

The download URL of the file.

TrimbleCloud.FileService.Utilities

Helpers for download URLs returned by the File Service API.

Removes a placeholder asterisk from a presigned download URL so HTTP range requests work (for example zip or fileset downloads).

The URL with the wildcard removed, or the original value if null, empty, or no asterisk is present.

Name Type Description
url System.String The download URL from Download.

TrimbleCloud.FileService.Models

Generic converter for enums

Read an enum value from a JSON string

This method has no parameters.

TrimbleCloud.FileService.Utilities

Helper class for Enum

Get the EnumMember value of an Enum

This method has no parameters.

TrimbleCloud.FileService.Models

Represents an Export in File Service.

The date and time when the export was created.

The TRN (Trimble Resource Name) of the user/device/application that created this export.

The TRN (Trimble Resource Name) of the export.

The unique identifier of the export.

The job output information.

The identifier of the target folder to download.

The TRN (Trimble Resource Name) of the resource.

The identifier of the space.

The TRN (Trimble Resource Name) of the space.

The status of the export operation.

The date and time when the export was last updated.

The TRN (Trimble Resource Name) of the user/device/application that last updated this export.

TrimbleCloud.FileService.Models

Represents a file in File Service.

The actions that can be performed on the resource by the current user.

The checkout details of the file, if it is checked out.

The TRN (Trimble Resource Name) of the user/device/application that created this file.

True if the entity has been deleted.

The date and time when the filespace was deleted, if applicable.

The download URL of the file.

The time period when the file object gets automatically removed.

Whether the object consists of a set of multiple files that should be treated as a single file.

The date and time of the last malware scan for the file.

The support file links

The lock details of the file

MD5 hash of the file.

The result of the malware scan for the file. Only applicable when the MalwareScanStatus is INFECTED or CANNOT_SCAN.

The status of the malware scan for the file.

The type of malware detected. Only applicable when the MalwareScanStatus is INFECTED. Format is threat type (virus, adware, spyware, pua etc):threat name. For suspicious files the threat type is ‘unknown’.

Additional information related to the folder.

True if the client will split the upload into multiple parts.

The parent folder identifier where the file was created.

The TRN (Trimble Resource Name) of the parent folder.

The parent type.

The path where file is created.

Permissions evaluated for the actors on the resource. It shows the most permissible role applicable for the actor, considering both the direct and inherited permissions.

Permissions inherited from the entire parent hierarchy applicable for the actor.

Permissions that are set directly for an actor on the resource itself.

The TRN (Trimble Resource Name) of the file.

Download HTTP response headers.

True if the download url of the file should expire as per ExpiresAt property.

The size of the file in bytes.

The unique identifier for the space where the file is stored.

The TRN (Trimble Resource Name) of the space where the file is stored.

The statistics of the file.

The TRN (Trimble Resource Name) of the user/device/application that last updated this file.

The version of the file, represented in a ‘major.minor’ format.

TrimbleCloud.FileService.Models

Represents the actor role mapping for file resources with version information.

Time when the actor’s access to the resource expires.

The TRN (Trimble Resource Name) of the actor (User/Device/Application).

The role assigned to the actor.

List of versions associated with this ACL entry.

TrimbleCloud.FileService.Models

The input file information.

Whether the support file should be linked to the parent file

The expiration date of the file.

The unique identifier of the file.

Whether the object consists of a set of multiple files that should be treated as a single file.

The TRN (Trimble Resource Name) of the file.

Additional information related to the file.

True if the client will split the upload into multiple parts.

The name of the file that was created.

The parent folder identifier where the file was created.

Parent major version for support files.

The TRN (Trimble Resource Name) of the parent folder where the file was created.

The parent type.

The path where file is created.

Permissions that are set directly for an actor on the resource itself.

Download HTTP response headers.

True if the download url of the file shouldn’t expire.

The unique identifier for the space where the file is stored.

The TRN (Trimble Resource Name) of the space where the file is stored.

The status of the file upload.

The key of the support file

The upload URL and type of upload for the file.

TrimbleCloud.FileService.Models

Represents a file or folder in File Service.

The date and time when the children was created.

The TRN (Trimble Resource Name) of the user/device/application that created.

True if the entity has been deleted.

The date and time when the filespace was deleted, if applicable.

The unique identifier of children. Children can be a file or a folder.

The name of the children.

The Resource Trn of the children

The unique identifier for the space where the file/folder is stored.

The Space Trn for the space

The type of the children either it can be file or folder.

The date and time when the children was last updated.

The TRN (Trimble Resource Name) of the user/device/application that last updated.

The version of the children, represented in a ‘major.minor’ format.

TrimbleCloud.FileService.Models

Represents a part that was uploaded.

Entity tag for the part.

The sequence number of the part.

TrimbleCloud.FileService.Models

Represents the permissions explicitly assigned to a file.

The list of actors and their roles.

This property is deprecated. Use FileAcl instead, which supports file versions restriction to the acl actor.

The list of actors, their roles and versions.

Specifies if permissions are inherited from the parent folder.

TrimbleCloud.FileService

A client for the Trimble Cloud Platform File Service

Public constructor for File Service client

Name Type Description
httpClientProvider Trimble.ID.IHttpClientProvider A provider of a pre-configured HttpClient used for API calls made by this client
Name Description
System.ArgumentNullException Thrown when httpClientProvider is null

#ctor(httpClientProvider,clientConfig) constructor

Section titled “#ctor(httpClientProvider,clientConfig) constructor”

Public constructor for File Service client

Name Type Description
httpClientProvider Trimble.ID.IHttpClientProvider A provider of a pre-configured HttpClient used for API calls made by this client
clientConfig TrimbleCloud.FileService.FileServiceClientConfig The configuration values for the client

#ctor(httpClientProvider,httpMessageHandler) constructor

Section titled “#ctor(httpClientProvider,httpMessageHandler) constructor”

Public constructor for File Service client

Name Type Description
httpClientProvider Trimble.ID.IHttpClientProvider A provider of a pre-configured HttpClient used for API calls made by this client
httpMessageHandler System.Net.Http.HttpMessageHandler The HttpMessageHandler to use the custom Http Message handler
Name Description
System.ArgumentNullException Thrown when httpClientProvider is null
System.ArgumentNullException Thrown when httpMessageHandler is null

Exports API

Files API

Folders API

Jobs API

Object Types API

Objects API

Resources API

Spaces API

Configuration values for the client

Provider of a pre-configured HttpClient used for API calls made by this client

TrimbleCloud.FileService

Configuration values for the File Service client

Public constructor for File Service client configuration

This constructor has no parameters.

The timeout for HTTP requests

The number of times to retry a request if it fails

The interval between retries

TrimbleCloud.FileService.Models

Represents the statistics of a file.

The size of decompressed file in bytes. This field is only applicable for fileset.

The count of support files under the main file.

The cumulative size of all the latest versions of the support files in bytes.

The date and time when the support files were last updated.

TrimbleCloud.FileService.Models

The status of the File upload

Unknown status

The file is uploadable

The file has been uploaded

TrimbleCloud.FileService.Models

Represents a file update request. Note: Both ReplaceAcl and UpdateAcl cannot be used in the same request.

Time period when the file object gets automatically removed. Must be at least 1 hour after the current time. Should not exceed 20 years from the current time.

Update the support file link for the file.

Update the metadata for the file.

Update the permissions on the file.

TrimbleCloud.FileService.Models

Represents a request to update file ACL.

Add new roles to the existing permissions on the resource. If an actor already has a permission on the resource and is included in the request again, their existing permissions will be replaced with the new ones specified.

This property is deprecated. Use AddFileAcl instead, which supports file versions restriction to the acl actor.

Add new roles with version support to the existing permissions on the resource. If an actor already has a permission on the resource and is included in the request again, their existing permissions will be replaced with the new ones specified.

The actors to be removed from the permissions.

TrimbleCloud.FileService.Models

Represents a file permissions update request. Note: Both ReplaceAcl and UpdateAcl cannot be used in the same request.

Specifies if permissions are inherited from the parent folder.

Completely replace the existing permissions on the resource. When this field is used, all previous permissions are overwritten by the new ones.

This property is deprecated. Use ReplaceFileAcl instead, which supports file versions restriction to the acl actor.

Completely replace the existing permissions on the resource with file ACL entries that support versions. When this field is used, all previous permissions are overwritten by the new ones.

Add or remove roles to the existing permissions on the resource.

TrimbleCloud.FileService.Models

Represents a file creation request.

Time period when the file object gets automatically removed. Must be at least 1 hour after the current time. Should not exceed 20 years from the current time.

Whether the object consists of a set of multiple files that should be treated as a single file.

Additional information related to the file.

True if the client will split the upload into multiple parts.

The name of the file.

The parent folder identifier to which the file has to be uploaded.

The parent type.

Permissions that are set directly for an actor on the resource itself.

Download HTTP response headers.

Set to false if the download url of the file shouldn’t be expired. Whereas when true download url expiration takes place according to the configured value.

TrimbleCloud.FileService

Gets the default URL duration based on file size. For files larger than 10GB, returns 2 days; otherwise returns 60 minutes.

This method has no parameters.

TrimbleCloud.FileService.Models

Represents a folder in File Service.

The actions that can be performed on the resource by the current user.

The checkout details of the folder, if it is checked out.

The TRN (Trimble Resource Name) of the user/device/application that created this filespace.

True if the entity has been deleted.

The date and time when the filespace was deleted, if applicable.

Additional information related to the folder.

Folder identifier of the parent folder.

The TRN (Trimble Resource Name) of the parent folder.

The path of the folder.

Permissions evaluated for the actors on the resource. It shows the most permissible role applicable for the actor, considering both the direct and inherited permissions.

Permissions inherited from the entire parent hierarchy applicable for the actor.

Permissions that are set directly for an actor on the resource itself.

The TRN (Trimble Resource Name) of the folder.

The size of the folder in bytes.

The unique identifier of the space where the folder is stored.

The TRN (Trimble Resource Name) of the space where the folder is stored.

The statistics of the folder.

The TRN (Trimble Resource Name) of the user/device/application that last updated this filespace.

The folder version.

TrimbleCloud.FileService.Models

Represents a folder creation request.

Additional information related to the folder.

The name of the folder.

The identifier of the parent.

Permissions that are set directly for an actor on the resource itself.

TrimbleCloud.FileService.Models

Create child folder request

List of nested child folders to create within this folder

Metadata associated with the folder

Name of the child folder to create

The permissions for the folder

TrimbleCloud.FileService.Models

Create parent folder request

List of nested child folders to create within this folder

TrimbleCloud.FileService.Models

Request object for listing children of a folder. Either FolderId or Path must be specified, but not both.

The filter criteria to apply to the list. Use FolderListFilterCriteria to filter by resource type.

The folder ID to list children from. Either FolderId or Path must be specified, but not both.

The number of items to return in each page (1-1000). Default is 100.

The token to retrieve the next page of items

The folder path to list children from. Either FolderId or Path must be specified, but not both.

Whether to recursively list children of all subfolders. Default is false.

The field to sort results by

The sort order (asc or desc)

The space ID

TrimbleCloud.FileService.Models

Criteria for filtering a list of files

Gets or sets the type of the Resource to filter by.

Gets or sets the folder status.

Gets or sets the file URL duration.

TrimbleCloud.FileService.Models

Represents the permissions explicitly assigned to a folder.

The list of actors and their roles.

Specifies if permissions are inherited from the parent folder.

TrimbleCloud.FileService.Models

Represents the statistics of a folder.

The date and time when the contents of the folder were last updated.

The count of files directly under the folder.

The count of folders directly under the folder.

The cumulative size of all the latest versions of the support files in bytes.

TrimbleCloud.FileService.Models

Represents a folder update request. Note: Both ReplaceAcl and UpdateAcl cannot be used in the same request.

Update the metadata for the folder.

Update the permissions on the folder.

TrimbleCloud.FileService.Models

Represents a request to update folder ACL.

Add new roles to the existing permissions on the resource. If an actor already has a permission on the resource and is included in the request again, their existing permissions will be replaced with the new ones specified.

The actors to be removed from the permissions.

TrimbleCloud.FileService.Models

Represents a folder permissions update request. Note: Both ReplaceAcl and UpdateAcl cannot be used in the same request.

Specifies if permissions are inherited from the parent folder.

Completely replace the existing permissions on the resource. When this field is used, all previous permissions are overwritten by the new ones.

Add or remove roles to the existing permissions on the resource.

TrimbleCloud.FileService.Models

Query parameters for retrieving job details in File Service.

Optimize internal polling frequency. Effective only if longpoll is true

Performs a long-polling request for the status

TrimbleCloud.FileService.Models

Parameters for getting an object.

The status filter for the object.

Gets query parameters for the request.

Dictionary of query parameters

This method has no parameters.

TrimbleCloud.FileService.Models

Parameters for getting a specific object version.

The status filter for the object.

Gets query parameters for the request.

Dictionary of query parameters

This method has no parameters.

TrimbleCloud.FileService.Models

The query parameters for retrieving upload details.

Optimize internal polling frequency. Effective only if longpoll is true

Performs a long-polling request for the status

Gets or sets the file URL duration.

TrimbleCloud.FileService

HTTP client response implementation for the common Response class

#ctor(requestId,responseMessage) constructor

Section titled “#ctor(requestId,responseMessage) constructor”

Initializes a new instance of the HttpClientResponse class

Name Type Description
requestId System.String The request ID
responseMessage System.Net.Http.HttpResponseMessage The HTTP response message

Gets the content length of the response

Gets a value indicating whether this response represents an error

Gets the response headers as metadata

Gets the HTTP reason phrase

Gets or sets the request ID

Gets the HTTP status code

Disposes the response and underlying resources

This method has no parameters.

Disposes the underlying HTTP response message

Name Type Description
disposing System.Boolean True if called from Dispose(), false if called from finalizer

Returns the string representation of the HTTP response

String representation of the response

This method has no parameters.

TrimbleCloud.FileService

Interface for the Exports API

Create(spaceId,folderId,includeTopLevel) method

Section titled “Create(spaceId,folderId,includeTopLevel) method”

Start a job to download and zip all children of a folder into a single file

A Task that resolves to Guid of the export

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
includeTopLevel System.Boolean

Get an export by ID

A Task that resolves to Response that contains Export data on completion

Name Type Description
spaceId System.Guid The space ID
exportId System.Guid The export ID
urlDuration System.Nullable{System.TimeSpan} The export download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days.

TrimbleCloud.FileService

Interface for the Trimble Cloud Platform File Service Client

Exports API

Files API

Folders API

Jobs API

Object Types API

Objects API

Resources API

Spaces API

TrimbleCloud.FileService

Interface for the Files API

Checking in a file will allow other actors to create a new version or perform other mutation operations

Name Type Description
spaceId System.Guid
fileId System.Guid

CheckInFileWithMinimalResponse(spaceId,fileId) method

Section titled “CheckInFileWithMinimalResponse(spaceId,fileId) method”

Checkin a file with minimal response

Name Type Description
spaceId System.Guid
fileId System.Guid

CheckOutFile(spaceId,fileId,reason,headers) method

Section titled “CheckOutFile(spaceId,fileId,reason,headers) method”

Checking out a file will prevent other actors from creating a new version or other mutation operations

Name Type Description
spaceId System.Guid
fileId System.Guid
reason System.String
headers System.Collections.Generic.IDictionary{System.String,System.String}

CheckOutFileWithMinimalResponse(spaceId,fileId,reason,headers) method

Section titled “CheckOutFileWithMinimalResponse(spaceId,fileId,reason,headers) method”

Checkout a file with minimal response

Name Type Description
spaceId System.Guid
fileId System.Guid
reason System.String
headers System.Collections.Generic.IDictionary{System.String,System.String}

CompleteMultipartUpload(spaceId,uploadId,parts) method

Section titled “CompleteMultipartUpload(spaceId,uploadId,parts) method”

Mark the multipart file upload status to be completed

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
uploadId System.Guid The upload ID
parts System.Collections.Generic.IEnumerable{TrimbleCloud.FileService.Models.FilePart} List of parts that are uploaded

Copy(spaceId,fileId,targetParentId,name,includeSupportFiles,overwriteExisting) method

Section titled “Copy(spaceId,fileId,targetParentId,name,includeSupportFiles,overwriteExisting) method”

Copy a file to a new location within the same space

A Task that resolves to the a Tuple of Response of File data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
targetParentId System.Guid The target parent ID
name System.String The new name of the copied file. If not specified, the file will be copied with its original name
includeSupportFiles System.Boolean Copy support files and links along with the files
overwriteExisting System.Boolean Whether to overwrite an existing resource. If true, the existing resource will have a new version created with the copied content

Copy a file to a new location within the same space

Name Type Description
copyFileRequest TrimbleCloud.FileService.Models.CopyFileRequest

CopyWithMinimalResponse(spaceId,fileId,targetParentId,name,includeSupportFiles,overwriteExisting) method

Section titled “CopyWithMinimalResponse(spaceId,fileId,targetParentId,name,includeSupportFiles,overwriteExisting) method”

Copy a file to a new location within the same space and get minimal response

A Task that resolves to the a Tuple of Response of MinimalFile data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
targetParentId System.Guid The target parent ID
name System.String The new name of the copied file. If not specified, the file will be copied with its original name
includeSupportFiles System.Boolean Copy support files and links along with the file
overwriteExisting System.Boolean Whether to overwrite an existing resource. If true, the existing resource will have a new version created with the copied content

CopyWithMinimalResponse(copyFileRequest) method

Section titled “CopyWithMinimalResponse(copyFileRequest) method”

Copy a file to a new location within the same space and get minimal response

Name Type Description
copyFileRequest TrimbleCloud.FileService.Models.CopyFileRequest

Section titled “CreateFileUpload(spaceId,file,urlDuration,includeLinks) method”

Create a file upload

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
file TrimbleCloud.FileService.Models.FileUploadCreate The information of the file to create
urlDuration System.Nullable{System.TimeSpan} The file upload URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
includeLinks System.Boolean Whether to include the links from the last version during a parent file’s major version change.

Section titled “CreateFileUpload(spaceId,file,headers,urlDuration,includeLinks) method”

Create a file upload with custom headers

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
file TrimbleCloud.FileService.Models.FileUploadCreate The information of the file to create
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
urlDuration System.Nullable{System.TimeSpan} The file upload URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
includeLinks System.Boolean Whether to include the links from the last version during a parent file’s major version change.

Section titled “CreateOrUpdateLinks(spaceId,fileId,fileMajorVersion,links) method”

Create or update support file links of a file

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
fileMajorVersion System.Int32 The major version of the file
links System.Collections.Generic.IDictionary{System.String,TrimbleCloud.FileService.Models.SupportFileLink} The links to create or update as dictionary of key and SupportFileLink

Section titled “CreateOrUpdateLinksWithMinimalResponse(spaceId,fileId,fileMajorVersion,links) method”

Create or update support file links of a file and get minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
fileMajorVersion System.Int32 The major version of the file
links System.Collections.Generic.IDictionary{System.String,TrimbleCloud.FileService.Models.SupportFileLink} The links to create or update as dictionary of key and SupportFileLink

CreatePackageUpload(spaceId,packageUpload,urlDuration) method

Section titled “CreatePackageUpload(spaceId,packageUpload,urlDuration) method”

Create a package upload

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
packageUpload TrimbleCloud.FileService.Models.PackageUploadCreate The information of the package upload to create
urlDuration System.Nullable{System.TimeSpan} The package upload URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes

CreatePackageUpload(spaceId,packageUpload,headers,urlDuration) method

Section titled “CreatePackageUpload(spaceId,packageUpload,headers,urlDuration) method”

Create a package upload with custom headers

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
packageUpload TrimbleCloud.FileService.Models.PackageUploadCreate The information of the package upload to create
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
urlDuration System.Nullable{System.TimeSpan} The package upload URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes

CreateSupportFileUpload(spaceId,supportFile,urlDuration) method

Section titled “CreateSupportFileUpload(spaceId,supportFile,urlDuration) method”

Create a support file upload

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
supportFile TrimbleCloud.FileService.Models.SupportFileUploadCreate The information of the support file to create
urlDuration System.Nullable{System.TimeSpan} The support file’s upload URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes

CreateSupportFileUpload(spaceId,supportFile,headers,urlDuration) method

Section titled “CreateSupportFileUpload(spaceId,supportFile,headers,urlDuration) method”

Create a support file upload with custom headers

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
supportFile TrimbleCloud.FileService.Models.SupportFileUploadCreate The information of the support file to create
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
urlDuration System.Nullable{System.TimeSpan} The support file’s upload URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes

Delete a file

A Task that resolves to possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
permanent System.Boolean Permanently delete the file

Delete(spaceId,fileId,headers,permanent) method

Section titled “Delete(spaceId,fileId,headers,permanent) method”

Delete a file with custom headers

A Task that resolves to possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
permanent System.Boolean Permanently delete the file

Download(spaceId,fileId,stream,chunkSize,maxConcurrentRequests) method

Section titled “Download(spaceId,fileId,stream,chunkSize,maxConcurrentRequests) method”

Downloads a file given the file ID

A Task that resolves to completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
stream System.IO.Stream The stream to write content to
chunkSize System.Int32 The size of the chunks in bytes if provided; otherwise 15MB chunks are used
maxConcurrentRequests System.Int32 The number of concurrent download tasks if provided; otherwise 8 tasks are used

Download(spaceId,path,stream,chunkSize,maxConcurrentRequests) method

Section titled “Download(spaceId,path,stream,chunkSize,maxConcurrentRequests) method”

Downloads a file given the file path

A Task that resolves to completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
stream System.IO.Stream The stream to write content to
chunkSize System.Int32 The size of the chunks in bytes if provided; otherwise 15MB chunks are used
maxConcurrentRequests System.Int32 The number of concurrent download tasks if provided; otherwise 8 tasks are used

Download(spaceId,fileId,stream,urlDuration,transferConfiguration) method

Section titled “Download(spaceId,fileId,stream,urlDuration,transferConfiguration) method”

Downloads a file given the file ID with custom URL duration

A Task that resolves to completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
stream System.IO.Stream The stream to write content to
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
transferConfiguration TrimbleCloud.FileService.Models.TransferFileConfiguration Chunk size and concurrency for the transfer.

Download(spaceId,path,stream,urlDuration,transferConfiguration) method

Section titled “Download(spaceId,path,stream,urlDuration,transferConfiguration) method”

Downloads a file given the file path with custom URL duration

A Task that resolves to completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
stream System.IO.Stream The stream to write content to
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
transferConfiguration TrimbleCloud.FileService.Models.TransferFileConfiguration Chunk size and concurrency for the transfer.

Get(spaceId,fileId,status,urlDuration,responseContentType) method

Section titled “Get(spaceId,fileId,status,urlDuration,responseContentType) method”

Get a file given the file ID

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the file
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
responseContentType System.String Specify the content type of the response. It overrides the file settings for the response content type which is given when creating the file.

Get(spaceId,path,status,urlDuration,responseContentType) method

Section titled “Get(spaceId,path,status,urlDuration,responseContentType) method”

Get a file given the file path

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
status TrimbleCloud.FileService.Models.ResourceStatus The status of the file
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
responseContentType System.String Specify the content type of the response. It overrides the file settings for the response content type which is given when creating the file.

GetUploadDetails(spaceId,uploadId,urlDuration) method

Section titled “GetUploadDetails(spaceId,uploadId,urlDuration) method”

Get details of the upload

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
uploadId System.Guid The upload ID
urlDuration System.Nullable{System.TimeSpan} The file upload URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes

GetUploadDetails(spaceId,uploadId,queryParams) method

Section titled “GetUploadDetails(spaceId,uploadId,queryParams) method”

Get details of the upload

Name Type Description
spaceId System.Guid
uploadId System.Guid
queryParams TrimbleCloud.FileService.Models.GetUploadDetailsQueryParams

GetVersion(spaceId,fileId,versionId,status,urlDuration,responseContentType) method

Section titled “GetVersion(spaceId,fileId,versionId,status,urlDuration,responseContentType) method”

Get file version details given the file ID

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
versionId System.String The version ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the file
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
responseContentType System.String Specify the content type of the response. It overrides the file settings for the response content type which is given when creating the file.

GetVersion(spaceId,path,versionId,status,urlDuration,responseContentType) method

Section titled “GetVersion(spaceId,path,versionId,status,urlDuration,responseContentType) method”

Get file version details given the file path

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
versionId System.String The version ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the file
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
responseContentType System.String Specify the content type of the response. It overrides the file settings for the response content type which is given when creating the file.

GetVersionWithMinimalResponse(spaceId,fileId,versionId,status,urlDuration,responseContentType) method

Section titled “GetVersionWithMinimalResponse(spaceId,fileId,versionId,status,urlDuration,responseContentType) method”

Get file version details given the file ID with minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
versionId System.String The version ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the file
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
responseContentType System.String Specify the content type of the response. It overrides the file settings for the response content type which is given when creating the file.

GetVersionWithMinimalResponse(spaceId,path,versionId,status,urlDuration,responseContentType) method

Section titled “GetVersionWithMinimalResponse(spaceId,path,versionId,status,urlDuration,responseContentType) method”

Get file version details given the file path with minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
versionId System.String The version ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the file
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
responseContentType System.String Specify the content type of the response. It overrides the file settings for the response content type which is given when creating the file.

GetWithMinimalResponse(spaceId,fileId,status,urlDuration,responseContentType) method

Section titled “GetWithMinimalResponse(spaceId,fileId,status,urlDuration,responseContentType) method”

Get a file given the file ID with minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the file
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
responseContentType System.String Specify the content type of the response. It overrides the file settings for the response content type which is given when creating the file.

GetWithMinimalResponse(spaceId,path,status,urlDuration,responseContentType) method

Section titled “GetWithMinimalResponse(spaceId,path,status,urlDuration,responseContentType) method”

Get a file given the file path with minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
status TrimbleCloud.FileService.Models.ResourceStatus The status of the file
urlDuration System.Nullable{System.TimeSpan} The file download URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
responseContentType System.String Specify the content type of the response. It overrides the file settings for the response content type which is given when creating the file.

ListManifestFiles(spaceId,fileId,nextPageToken,maxItems,urlDuration) method

Section titled “ListManifestFiles(spaceId,fileId,nextPageToken,maxItems,urlDuration) method”

Lists all files from inside the unpacked fileset.

Name Type Description
spaceId System.Guid
fileId System.Guid
nextPageToken System.String
maxItems System.Int32
urlDuration System.Nullable{System.TimeSpan}

ListSupportFiles(spaceId,fileId,nextPageToken,maxItems,listFilter) method

Section titled “ListSupportFiles(spaceId,fileId,nextPageToken,maxItems,listFilter) method”

List all support files for a file given the file ID

A Task that resolves to IPage`1 that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list

ListSupportFiles(spaceId,path,nextPageToken,maxItems,listFilter) method

Section titled “ListSupportFiles(spaceId,path,nextPageToken,maxItems,listFilter) method”

List all support files for a file given the file path

A Task that resolves toIPage`1 that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list

ListSupportFilesWithMinimalResponse(spaceId,fileId,nextPageToken,maxItems,listFilter) method

Section titled “ListSupportFilesWithMinimalResponse(spaceId,fileId,nextPageToken,maxItems,listFilter) method”

List all support files for a file given the file ID with minimal response

A Task that resolves to IPage`1 that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list

ListSupportFilesWithMinimalResponse(spaceId,path,nextPageToken,maxItems,listFilter) method

Section titled “ListSupportFilesWithMinimalResponse(spaceId,path,nextPageToken,maxItems,listFilter) method”

List all support files for a file given the file path with minimal response

A Task that resolves toIPage`1 that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list

ListVersions(spaceId,fileId,nextPageToken,maxItems,listFilter) method

Section titled “ListVersions(spaceId,fileId,nextPageToken,maxItems,listFilter) method”

List all versions for a file given the file ID

A Task that resolves to IPage`1 that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list

ListVersions(spaceId,path,nextPageToken,maxItems,listFilter) method

Section titled “ListVersions(spaceId,path,nextPageToken,maxItems,listFilter) method”

List all versions for a file given the file path

A Task that resolves to IPage that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list

ListVersionsWithMinimalResponse(spaceId,fileId,nextPageToken,maxItems,listFilter) method

Section titled “ListVersionsWithMinimalResponse(spaceId,fileId,nextPageToken,maxItems,listFilter) method”

List all versions for a file given the file ID with minimal response

A Task that resolves to IPage`1 that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list

ListVersionsWithMinimalResponse(spaceId,path,nextPageToken,maxItems,listFilter) method

Section titled “ListVersionsWithMinimalResponse(spaceId,path,nextPageToken,maxItems,listFilter) method”

List all versions for a file given the file with minimal response

A Task that resolves to IPage that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The file path
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list

Lock a file

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
reason System.String Reason for locking the file

Lock(spaceId,fileId,headers,reason) method

Section titled “Lock(spaceId,fileId,headers,reason) method”

Lock a file with custom headers

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
reason System.String Reason for locking the file

LockWithMinimalResponse(spaceId,fileId,reason) method

Section titled “LockWithMinimalResponse(spaceId,fileId,reason) method”

Lock a file and get minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
reason System.String Reason for locking the file

LockWithMinimalResponse(spaceId,fileId,headers,reason) method

Section titled “LockWithMinimalResponse(spaceId,fileId,headers,reason) method”

Lock a file and get minimal response with custom headers

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
reason System.String Reason for locking the file

Move(spaceId,fileId,targetParentId,name) method

Section titled “Move(spaceId,fileId,targetParentId,name) method”

Move a file to a new location within the same space

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
targetParentId System.Guid The target parent ID
name System.String The new name of the file. If not specified, the file will be moved with its original name

Move(spaceId,fileId,targetParentId,headers,name) method

Section titled “Move(spaceId,fileId,targetParentId,headers,name) method”

Move a file to a new location within the same space with custom headers

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
targetParentId System.Guid The target parent ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
name System.String The new name of the file. If not specified, the file will be moved with its original name

MoveWithMinimalResponse(spaceId,fileId,targetParentId,name) method

Section titled “MoveWithMinimalResponse(spaceId,fileId,targetParentId,name) method”

Move a file to a new location within the same space and get minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
targetParentId System.Guid The target parent ID
name System.String The new name of the file. If not specified, the file will be moved with its original name

MoveWithMinimalResponse(spaceId,fileId,targetParentId,headers,name) method

Section titled “MoveWithMinimalResponse(spaceId,fileId,targetParentId,headers,name) method”

Move a file to a new location within the same space and get minimal response with custom headers

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
targetParentId System.Guid The target parent ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
name System.String The new name of the file. If not specified, the file will be moved with its original name

PollForMalwareScanCompletion(spaceId,fileId,timeout,interval,callback) method

Section titled “PollForMalwareScanCompletion(spaceId,fileId,timeout,interval,callback) method”

Poll for malware scan completion

A Task that resolves to completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
timeout System.Nullable{System.TimeSpan} The maximum time to listen for the malware scan. Default is 3 minutes
interval System.Nullable{System.TimeSpan} The time interval to poll the malware scan status. Default is 5 seconds
callback System.Action{System.Nullable{TrimbleCloud.FileService.Models.MalwareScanStatus}} The callback to be called after each check

Rename a file with a new name

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
name System.String The new name of the file

Rename(spaceId,fileId,name,headers) method

Section titled “Rename(spaceId,fileId,name,headers) method”

Rename a file with a new name with custom headers

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
name System.String The new name of the file
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers

RenameWithMinimalResponse(spaceId,fileId,name) method

Section titled “RenameWithMinimalResponse(spaceId,fileId,name) method”

Rename a file with a new name and get minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
name System.String The new name of the file

RenameWithMinimalResponse(spaceId,fileId,name,headers) method

Section titled “RenameWithMinimalResponse(spaceId,fileId,name,headers) method”

Rename a file with a new name and get minimal response with custom headers

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
name System.String The new name of the file
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers

Restore(spaceId,fileId,name,targetParentId) method

Section titled “Restore(spaceId,fileId,name,targetParentId) method”

Restore a file and any support files linked to it from the deleted state

A Task that resolves to the a Tuple of Response of File data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
name System.String The new name of the restored file. If not specified, the file will be restored with its original name
targetParentId System.Nullable{System.Guid} The target parent ID to restore the file to. If not specified, the file will be restored to its original location

Restore(spaceId,fileId,headers,name,targetParentId) method

Section titled “Restore(spaceId,fileId,headers,name,targetParentId) method”

Restore a file and any support files linked to it from the deleted state with custom headers

A Task that resolves to the a Tuple of Response of File data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
name System.String The new name of the restored file. If not specified, the file will be restored with its original name
targetParentId System.Nullable{System.Guid} The target parent ID to restore the file to. If not specified, the file will be restored to its original location

RestoreWithMinimalResponse(spaceId,fileId,name,targetParentId) method

Section titled “RestoreWithMinimalResponse(spaceId,fileId,name,targetParentId) method”

Restore a file and any support files linked to it from the deleted state and get minimal response

A Task that resolves to the a Tuple of Response of MinimalFile data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
name System.String The new name of the restored file. If not specified, the file will be restored with its original name
targetParentId System.Nullable{System.Guid} The target parent ID to restore the file to. If not specified, the file will be restored to its original location

RestoreWithMinimalResponse(spaceId,fileId,headers,name,targetParentId) method

Section titled “RestoreWithMinimalResponse(spaceId,fileId,headers,name,targetParentId) method”

Restore a file and any support files linked to it from the deleted state and get minimal response with custom headers

A Task that resolves to the a Tuple of Response of MinimalFile data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers
name System.String The new name of the restored file. If not specified, the file will be restored with its original name
targetParentId System.Nullable{System.Guid} The target parent ID to restore the file to. If not specified, the file will be restored to its original location

Unlock a file

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID

UnlockWithMinimalResponse(spaceId,fileId) method

Section titled “UnlockWithMinimalResponse(spaceId,fileId) method”

Unlock a file and get minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID

Update a file given the file ID

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
file TrimbleCloud.FileService.Models.FileUpdate The file information to update

Update(spaceId,fileId,file,headers) method

Section titled “Update(spaceId,fileId,file,headers) method”

Update a file given the file ID with custom headers

A Task that resolves to Response that contains File data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
file TrimbleCloud.FileService.Models.FileUpdate The file information to update
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers

UpdateWithMinimalResponse(spaceId,fileId,file) method

Section titled “UpdateWithMinimalResponse(spaceId,fileId,file) method”

Update a file given the file ID and get minimal response

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
file TrimbleCloud.FileService.Models.FileUpdate The file information to update

UpdateWithMinimalResponse(spaceId,fileId,file,headers) method

Section titled “UpdateWithMinimalResponse(spaceId,fileId,file,headers) method”

Update a file given the file ID and get minimal response with custom headers

A Task that resolves to Response that contains MinimalFile data on completion

Name Type Description
spaceId System.Guid The space ID
fileId System.Guid The file ID
file TrimbleCloud.FileService.Models.FileUpdate The file information to update
headers System.Collections.Generic.IDictionary{System.String,System.String} Dictionary of custom headers

Upload(request,chunkSize,maxConcurrentRequests) method

Section titled “Upload(request,chunkSize,maxConcurrentRequests) method”

Upload a file

A Task that resolves to completion

Name Type Description
request TrimbleCloud.FileService.Models.UploadRequest The upload request
chunkSize System.Int32 The size of the chunks in bytes if provided; otherwise 15MB chunks are used
maxConcurrentRequests System.Int32 The number of concurrent upload tasks if provided; otherwise 8 tasks are used

Upload(request,chunkSize,maxConcurrentRequests) method

Section titled “Upload(request,chunkSize,maxConcurrentRequests) method”

Upload a package

A Task that resolves to completion

Name Type Description
request TrimbleCloud.FileService.Models.PackageUploadRequest The package upload request
chunkSize System.Int32 The size of the chunks in bytes if provided; otherwise 15MB chunks are used
maxConcurrentRequests System.Int32 The number of concurrent upload tasks if provided; otherwise 8 tasks are used

Upload(uploadDetails,stream,transferConfiguration) method

Section titled “Upload(uploadDetails,stream,transferConfiguration) method”

Upload a file using pre-fetched upload details

A Task that resolves to completion

Name Type Description
uploadDetails TrimbleCloud.FileService.Models.UploadDetails The pre-fetched upload details
stream System.IO.Stream The file stream to upload
transferConfiguration TrimbleCloud.FileService.Models.TransferFileConfiguration Chunk size and concurrency for the transfer.

Upload(uploadDetails,mainFileStream,supportFiles,transferConfiguration) method

Section titled “Upload(uploadDetails,mainFileStream,supportFiles,transferConfiguration) method”

Upload a package using pre-fetched upload details

A Task that resolves to completion

Name Type Description
uploadDetails TrimbleCloud.FileService.Models.UploadDetails The pre-fetched upload details
mainFileStream System.IO.Stream The main file stream to upload
supportFiles System.Collections.Generic.IList{TrimbleCloud.FileService.Models.SupportFileResourceUploadItem} The support files to upload
transferConfiguration TrimbleCloud.FileService.Models.TransferFileConfiguration Chunk size and concurrency for the transfer.

WaitForUpload(spaceId,uploadId,timeout,interval,callback) method

Section titled “WaitForUpload(spaceId,uploadId,timeout,interval,callback) method”

Waits for upload to finish

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
uploadId System.Guid The upload ID
timeout System.Nullable{System.TimeSpan} The maximum time to wait for the upload to finish. Default is 3 minutes
interval System.Nullable{System.TimeSpan} The time interval to poll the upload status. Default is 5 seconds
callback System.Action{TrimbleCloud.FileService.Models.UploadDetails} The callback to be called after each check

WaitForUpload(spaceId,uploadId,urlDuration,timeout,interval,callback) method

Section titled “WaitForUpload(spaceId,uploadId,urlDuration,timeout,interval,callback) method”

Waits for upload to finish with custom URL duration

A Task that resolves to Response that contains UploadDetails data on completion

Name Type Description
spaceId System.Guid The space ID
uploadId System.Guid The upload ID
urlDuration System.Nullable{System.TimeSpan} The upload URL’s validity duration. Minimum value is 5 minutes and maximum value is 7 days. Default = 60 minutes
timeout System.Nullable{System.TimeSpan} The maximum time to wait for the upload to finish. Default is 3 minutes
interval System.Nullable{System.TimeSpan} The time interval to poll the upload status. Default is 5 seconds
callback System.Action{TrimbleCloud.FileService.Models.UploadDetails} The callback to be called after each check

TrimbleCloud.FileService

Interface for the Folders API

Checking in a folder will allow other actors to create a new version or perform other mutation operations

Name Type Description
spaceId System.Guid
folderId System.Guid

CheckInFolderWithMinimalResponse(spaceId,folderId) method

Section titled “CheckInFolderWithMinimalResponse(spaceId,folderId) method”

Checkin a folder with minimal response

Name Type Description
spaceId System.Guid
folderId System.Guid

CheckOutFolder(spaceId,folderId,reason,headers) method

Section titled “CheckOutFolder(spaceId,folderId,reason,headers) method”

Checking out a folder will prevent other actors from creating a new version or other mutation operations

Name Type Description
spaceId System.Guid
folderId System.Guid
reason System.String
headers System.Collections.Generic.IDictionary{System.String,System.String}

CheckOutFolderWithMinimalResponse(spaceId,folderId,reason,headers) method

Section titled “CheckOutFolderWithMinimalResponse(spaceId,folderId,reason,headers) method”

Checkout a folder with minimal response

Name Type Description
spaceId System.Guid
folderId System.Guid
reason System.String
headers System.Collections.Generic.IDictionary{System.String,System.String}

Copy(spaceId,folderId,targetParentId,name,includeSupportFiles,overwriteExisting) method

Section titled “Copy(spaceId,folderId,targetParentId,name,includeSupportFiles,overwriteExisting) method”

Copy a folder to a new location within the same space

A Task that resolves to the a Tuple of Response of Folder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
targetParentId System.Guid The target parent ID
name System.String The new name of the copied folder. If not specified, the folder will be copied with its original name
includeSupportFiles System.Boolean Copy support files and links along with the files
overwriteExisting System.Boolean Whether to overwrite an existing resource. If true, the existing resource will have a new version created with the copied content

Copy a folder and its children to a new location within the same space

Name Type Description
copyFolderRequest TrimbleCloud.FileService.Models.CopyFolderRequest

CopyWithMinimalResponse(spaceId,folderId,targetParentId,name,includeSupportFiles,overwriteExisting) method

Section titled “CopyWithMinimalResponse(spaceId,folderId,targetParentId,name,includeSupportFiles,overwriteExisting) method”

Copy a folder to a new location within the same space and get minimal response

A Task that resolves to the a Tuple of Response of MinimalFolder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
targetParentId System.Guid The target parent ID
name System.String The new name of the copied folder. If not specified, the folder will be copied with its original name
includeSupportFiles System.Boolean Copy support files and links along with the files
overwriteExisting System.Boolean Whether to overwrite an existing resource. If true, the existing resource will have a new version created with the copied content

CopyWithMinimalResponse(copyFolderRequest) method

Section titled “CopyWithMinimalResponse(copyFolderRequest) method”

Copy a folder and its children to a new location within the same space with custom headers

Name Type Description
copyFolderRequest TrimbleCloud.FileService.Models.CopyFolderRequest

Create a folder

A Task that resolves to Response that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
folder TrimbleCloud.FileService.Models.FolderCreate The information of the folder to create

Create folders in batch mode. This allows you to create multiple folders at once, including nested folders.

Name Type Description
spaceId System.Guid
folderRequest TrimbleCloud.FileService.Models.BatchFolderCreate

CreateBatchWithMinimalResponse(spaceId,folderRequest) method

Section titled “CreateBatchWithMinimalResponse(spaceId,folderRequest) method”

Create folders in batch mode with minimal response. This allows you to create multiple folders at once, including nested folders.

Name Type Description
spaceId System.Guid
folderRequest TrimbleCloud.FileService.Models.BatchFolderCreate

CreateWithMinimalResponse(spaceId,folder) method

Section titled “CreateWithMinimalResponse(spaceId,folder) method”

Create a folder and get minimal response

A Task that resolves to Response that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
folder TrimbleCloud.FileService.Models.FolderCreate The information of the folder to create

Delete(spaceId,folderId,recursive,permanent) method

Section titled “Delete(spaceId,folderId,recursive,permanent) method”

Delete a folder

A Task that resolves to possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
recursive System.Boolean Delete descendant folders and files
permanent System.Boolean Permanently delete the folder

Delete(spaceId,folderId,headers,recursive,permanent) method

Section titled “Delete(spaceId,folderId,headers,recursive,permanent) method”

Delete a folder with custom headers

A Task that resolves to possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom HTTP headers to include in the request
recursive System.Boolean Delete descendant folders and files
permanent System.Boolean Permanently delete the folder

Get a folder given the folder ID

A Task that resolves to Response that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

Get a folder given the folder path

A Task that resolves to Response that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The folder path
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

GetVersion(spaceId,folderId,versionId,status) method

Section titled “GetVersion(spaceId,folderId,versionId,status) method”

Get folder version details given the folder ID

A Task that resolves to Response that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
versionId System.Int32 The version ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

GetVersion(spaceId,path,versionId,status) method

Section titled “GetVersion(spaceId,path,versionId,status) method”

Get folder version details given the folder path

A Task that resolves to Response that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The folder path
versionId System.Int32 The version ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

GetVersionWithMinimalResponse(spaceId,folderId,versionId,status) method

Section titled “GetVersionWithMinimalResponse(spaceId,folderId,versionId,status) method”

Get folder version details given the folder ID with minimal response

A Task that resolves to Response that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
versionId System.Int32 The version ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

GetVersionWithMinimalResponse(spaceId,path,versionId,status) method

Section titled “GetVersionWithMinimalResponse(spaceId,path,versionId,status) method”

Get folder version details given the folder path with minimal response

A Task that resolves to Response that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The folder path
versionId System.Int32 The version ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

GetWithMinimalResponse(spaceId,folderId,status) method

Section titled “GetWithMinimalResponse(spaceId,folderId,status) method”

Get a folder given the folder ID with minimal response

A Task that resolves to Response that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

GetWithMinimalResponse(spaceId,path,status) method

Section titled “GetWithMinimalResponse(spaceId,path,status) method”

Get a folder given the folder path with minimal response

A Task that resolves to Response that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The folder path
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

ListChildren(spaceId,folderId,nextPageToken,maxItems,listFilter,sortBy,sortOrder,recursive) method

Section titled “ListChildren(spaceId,folderId,nextPageToken,maxItems,listFilter,sortBy,sortOrder,recursive) method”

List the children of a folder given the folder ID

A Task that resolves to IPage`1 that contains FileOrFolder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list
sortBy System.String
sortOrder System.String
recursive System.Boolean

ListChildren(spaceId,path,nextPageToken,maxItems,listFilter,sortBy,sortOrder,recursive) method

Section titled “ListChildren(spaceId,path,nextPageToken,maxItems,listFilter,sortBy,sortOrder,recursive) method”

List the children of a folder given the folder path

A Task that resolves to IPage`1 that contains FileOrFolder data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The folder path
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
listFilter TrimbleCloud.FileService.Models.ListFilterCriteria The filter to apply to the list
sortBy System.String
sortOrder System.String
recursive System.Boolean

List the children of a folder using a request object. Either FolderId or Path must be specified in the request, but not both.

A Task that resolves to IPage`1 that contains FileOrFolder data on completion

Name Type Description
request TrimbleCloud.FileService.Models.FolderListChildrenRequest The request object containing all parameters for listing children

ListVersions(spaceId,folderId,nextPageToken,maxItems,status) method

Section titled “ListVersions(spaceId,folderId,nextPageToken,maxItems,status) method”

List all versions for a folder in a space given the folder ID

A Task that resolves to IPage`1 that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

ListVersions(spaceId,path,nextPageToken,maxItems,status) method

Section titled “ListVersions(spaceId,path,nextPageToken,maxItems,status) method”

List all versions for a folder in a space given the folder path

A Task that resolves to IPage`1 that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The folder path
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

ListVersionsWithMinimalResponse(spaceId,folderId,nextPageToken,maxItems,status) method

Section titled “ListVersionsWithMinimalResponse(spaceId,folderId,nextPageToken,maxItems,status) method”

List all versions for a folder in a space given the folder ID with minimal response

A Task that resolves to IPage`1 that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

ListVersionsWithMinimalResponse(spaceId,path,nextPageToken,maxItems,status) method

Section titled “ListVersionsWithMinimalResponse(spaceId,path,nextPageToken,maxItems,status) method”

List all versions for a folder in a space given the folder path with minimal response

A Task that resolves to IPage`1 that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
path System.String The folder path
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
status TrimbleCloud.FileService.Models.ResourceStatus The status of the folder

Move(spaceId,folderId,targetParentId,name) method

Section titled “Move(spaceId,folderId,targetParentId,name) method”

Move a folder to a new location within the same space

A Task that resolves to the a Tuple of Response of Folder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
targetParentId System.Guid The target parent ID
name System.String

Move(spaceId,folderId,targetParentId,name,headers) method

Section titled “Move(spaceId,folderId,targetParentId,name,headers) method”

Move a folder to a new location within the same space with custom headers

A Task that resolves to the a Tuple of Response of Folder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
targetParentId System.Guid The target parent ID
name System.Collections.Generic.IDictionary{System.String,System.String}
headers System.String Custom HTTP headers to include in the request

MoveWithMinimalResponse(spaceId,folderId,targetParentId,name) method

Section titled “MoveWithMinimalResponse(spaceId,folderId,targetParentId,name) method”

Move a folder to a new location within the same space and get minimal response

A Task that resolves to the a Tuple of Response of MinimalFolder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
targetParentId System.Guid The target parent ID
name System.String

MoveWithMinimalResponse(spaceId,folderId,targetParentId,name,headers) method

Section titled “MoveWithMinimalResponse(spaceId,folderId,targetParentId,name,headers) method”

Move a folder to a new location within the same space and get minimal response with custom headers

A Task that resolves to the a Tuple of Response of MinimalFolder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
targetParentId System.Guid The target parent ID
name System.Collections.Generic.IDictionary{System.String,System.String}
headers System.String Custom HTTP headers to include in the request

Rename a folder with a new name

A Task that resolves to the a Tuple of Response of Folder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
name System.String The new name of the folder

Rename(spaceId,folderId,name,headers) method

Section titled “Rename(spaceId,folderId,name,headers) method”

Rename a folder with a new name with custom headers

A Task that resolves to the a Tuple of Response of Folder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
name System.String The new name of the folder
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom HTTP headers to include in the request

RenameWithMinimalResponse(spaceId,folderId,name) method

Section titled “RenameWithMinimalResponse(spaceId,folderId,name) method”

Rename a folder with a new name and get minimal response

A Task that resolves to the a Tuple of Response of MinimalFolder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
name System.String The new name of the folder

RenameWithMinimalResponse(spaceId,folderId,name,headers) method

Section titled “RenameWithMinimalResponse(spaceId,folderId,name,headers) method”

Rename a folder with a new name and get minimal response with custom headers

A Task that resolves to the a Tuple of Response of MinimalFolder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
name System.String The new name of the folder
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom HTTP headers to include in the request

Restore(spaceId,folderId,name,targetParentId) method

Section titled “Restore(spaceId,folderId,name,targetParentId) method”

Restore a folder and its children from the deleted state

A Task that resolves to the a Tuple of Response of Folder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
name System.String The new name of the restored folder. If not specified, the folder will be restored with its original name
targetParentId System.Nullable{System.Guid} The target parent ID to restore the folder to. If not specified, the folder will be restored to its original location

Restore(spaceId,folderId,headers,name,targetParentId) method

Section titled “Restore(spaceId,folderId,headers,name,targetParentId) method”

Restore a folder and its children from the deleted state with custom headers

A Task that resolves to the a Tuple of Response of Folder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom HTTP headers to include in the request
name System.String The new name of the restored folder. If not specified, the folder will be restored with its original name
targetParentId System.Nullable{System.Guid} The target parent ID to restore the folder to. If not specified, the folder will be restored to its original location

RestoreWithMinimalResponse(spaceId,folderId,name,targetParentId) method

Section titled “RestoreWithMinimalResponse(spaceId,folderId,name,targetParentId) method”

Restore a folder and its children from the deleted state and get minimal response

A Task that resolves to the a Tuple of Response of MinimalFolder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
name System.String The new name of the restored folder. If not specified, the folder will be restored with its original name
targetParentId System.Nullable{System.Guid} The target parent ID to restore the folder to. If not specified, the folder will be restored to its original location

RestoreWithMinimalResponse(spaceId,folderId,headers,name,targetParentId) method

Section titled “RestoreWithMinimalResponse(spaceId,folderId,headers,name,targetParentId) method”

Restore a folder and its children from the deleted state and get minimal response with custom headers

A Task that resolves to the a Tuple of Response of MinimalFolder data and possible JobId on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom HTTP headers to include in the request
name System.String The new name of the restored folder. If not specified, the folder will be restored with its original name
targetParentId System.Nullable{System.Guid} The target parent ID to restore the folder to. If not specified, the folder will be restored to its original location

Update a folder

A Task that resolves to Response that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
folder TrimbleCloud.FileService.Models.FolderUpdate The folder information to update

Update(spaceId,folderId,folder,headers) method

Section titled “Update(spaceId,folderId,folder,headers) method”

Update a folder with custom headers

A Task that resolves to Response that contains Folder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
folder TrimbleCloud.FileService.Models.FolderUpdate The folder information to update
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom HTTP headers to include in the request

UpdateWithMinimalResponse(spaceId,folderId,folder) method

Section titled “UpdateWithMinimalResponse(spaceId,folderId,folder) method”

Update a folder and get minimal response

A Task that resolves to Response that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
folder TrimbleCloud.FileService.Models.FolderUpdate The folder information to update

UpdateWithMinimalResponse(spaceId,folderId,folder,headers) method

Section titled “UpdateWithMinimalResponse(spaceId,folderId,folder,headers) method”

Update a folder and get minimal response with custom headers

A Task that resolves to Response that contains MinimalFolder data on completion

Name Type Description
spaceId System.Guid The space ID
folderId System.Guid The folder ID
folder TrimbleCloud.FileService.Models.FolderUpdate The folder information to update
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom HTTP headers to include in the request

TrimbleCloud.FileService

Interface for the Jobs API

Get a job given the job id

A Task that resolves to Response that contains Job data on completion

Name Type Description
id System.Guid The job id

Get a job given the job id

Name Type Description
jobId System.Guid
queryParams TrimbleCloud.FileService.Models.GetJobQueryParams

WaitForJob(id,timeout,interval,callback) method

Section titled “WaitForJob(id,timeout,interval,callback) method”

Waits for job to finish

A Task that resolves to Response that contains Job data on completion

Name Type Description
id System.Guid The job id
timeout System.Nullable{System.TimeSpan} The maximum time to wait for the job to finish. Default is 3 minutes
interval System.Nullable{System.TimeSpan} The time interval to poll the job status. Default is 5 seconds
callback System.Action{TrimbleCloud.FileService.Models.Job} The callback function to be called when the job status is polled

TrimbleCloud.FileService

Interface for Object Types API.

Creates a new object type definition.

A Task that resolves to Response that contains ObjectType data on completion

Name Type Description
request TrimbleCloud.FileService.Models.ObjectTypeCreate The object type to create.
Name Description
TrimbleCloud.FileService.TrimbleServiceException Thrown when an API or network error occurs
System.ArgumentNullException Thrown when request is null

Gets an object type by ID.

A Task that resolves to Response that contains ObjectType data on completion

Name Type Description
objectTypeId System.String The object type ID.
Name Description
TrimbleCloud.FileService.TrimbleServiceException Thrown when an API or network error occurs
System.ArgumentException Thrown when objectTypeId is null or empty

TrimbleCloud.FileService

Interface for Objects API. Objects are containers for external resources made accessible through Connect.

Checks in an object by ID.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.

Checks in an object by ID with custom headers.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

CheckinWithMinimalResponse(spaceId,objectId) method

Section titled “CheckinWithMinimalResponse(spaceId,objectId) method”

Checks in an object by ID with minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.

CheckinWithMinimalResponse(spaceId,objectId,headers) method

Section titled “CheckinWithMinimalResponse(spaceId,objectId,headers) method”

Checks in an object by ID with custom headers and minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

Checks out an object by ID.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
reason System.String The reason for checkout.

Checkout(spaceId,objectId,reason,headers) method

Section titled “Checkout(spaceId,objectId,reason,headers) method”

Checks out an object by ID with custom headers.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
reason System.String The reason for checkout.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

CheckoutWithMinimalResponse(spaceId,objectId,reason) method

Section titled “CheckoutWithMinimalResponse(spaceId,objectId,reason) method”

Checks out an object by ID with minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
reason System.String The reason for checkout.

CheckoutWithMinimalResponse(spaceId,objectId,reason,headers) method

Section titled “CheckoutWithMinimalResponse(spaceId,objectId,reason,headers) method”

Checks out an object by ID with custom headers and minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
reason System.String The reason for checkout.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

Creates a new object.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
request TrimbleCloud.FileService.Models.ObjectCreate The create object request.

CreateWithMinimalResponse(spaceId,request) method

Section titled “CreateWithMinimalResponse(spaceId,request) method”

Creates a new object with minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
request TrimbleCloud.FileService.Models.ObjectCreate The create object request.

Deletes an object by ID.

A Task that resolves to Response on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
permanent System.Boolean Whether to permanently delete the object.

Delete(spaceId,objectId,permanent,headers) method

Section titled “Delete(spaceId,objectId,permanent,headers) method”

Deletes an object by ID with custom headers.

A Task that resolves to Response on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
permanent System.Boolean Whether to permanently delete the object.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

Gets an object by ID.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.

Gets an object by ID with parameters.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
parameters TrimbleCloud.FileService.Models.GetObjectParams The get parameters.

Gets an object by path.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.

Gets an object by path with parameters.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.
parameters TrimbleCloud.FileService.Models.GetObjectParams The get parameters.

GetVersion(spaceId,objectId,versionId) method

Section titled “GetVersion(spaceId,objectId,versionId) method”

Gets a specific version of an object by ID.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
versionId System.Int32 The version ID.

GetVersion(spaceId,objectId,versionId,parameters) method

Section titled “GetVersion(spaceId,objectId,versionId,parameters) method”

Gets a specific version of an object by ID with parameters.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
versionId System.Int32 The version ID.
parameters TrimbleCloud.FileService.Models.GetObjectVersionParams The get parameters.

GetVersion(spaceId,objectPath,versionId) method

Section titled “GetVersion(spaceId,objectPath,versionId) method”

Gets a specific version of an object by path.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.
versionId System.Int32 The version ID.

GetVersion(spaceId,objectPath,versionId,parameters) method

Section titled “GetVersion(spaceId,objectPath,versionId,parameters) method”

Gets a specific version of an object by path with parameters.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.
versionId System.Int32 The version ID.
parameters TrimbleCloud.FileService.Models.GetObjectVersionParams The get parameters.

GetWithMinimalResponse(spaceId,objectId) method

Section titled “GetWithMinimalResponse(spaceId,objectId) method”

Gets an object by ID with minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.

GetWithMinimalResponse(spaceId,objectId,parameters) method

Section titled “GetWithMinimalResponse(spaceId,objectId,parameters) method”

Gets an object by ID with parameters and minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
parameters TrimbleCloud.FileService.Models.GetObjectParams The get parameters.

GetWithMinimalResponse(spaceId,objectPath) method

Section titled “GetWithMinimalResponse(spaceId,objectPath) method”

Gets an object by path with minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.

GetWithMinimalResponse(spaceId,objectPath,parameters) method

Section titled “GetWithMinimalResponse(spaceId,objectPath,parameters) method”

Gets an object by path with parameters and minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.
parameters TrimbleCloud.FileService.Models.GetObjectParams The get parameters.

LinkSupportFiles(spaceId,objectId,request) method

Section titled “LinkSupportFiles(spaceId,objectId,request) method”

Links support files to a specific object version and returns the full object entity.

A Task that resolves to Response`1 on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
request TrimbleCloud.FileService.Models.ObjectLink The link request.

LinkSupportFilesWithMinimalResponse(spaceId,objectId,request) method

Section titled “LinkSupportFilesWithMinimalResponse(spaceId,objectId,request) method”

Links support files to an object and returns a minimal object entity.

A Task that resolves to Response`1 on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
request TrimbleCloud.FileService.Models.ObjectLink The link request.

Lists resources (support files) for an object by ID.

A Task that resolves to IPage`1 of File on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.

ListResources(spaceId,objectId,parameters) method

Section titled “ListResources(spaceId,objectId,parameters) method”

Lists resources (support files) for an object by ID with parameters.

A Task that resolves to IPage`1 of File on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
parameters TrimbleCloud.FileService.Models.ListObjectResourcesParams The list parameters.

Lists resources (support files) for an object by path.

A Task that resolves to IPage`1 of File on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.

ListResources(spaceId,objectPath,parameters) method

Section titled “ListResources(spaceId,objectPath,parameters) method”

Lists resources (support files) for an object by path with parameters.

A Task that resolves to IPage`1 of File on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.
parameters TrimbleCloud.FileService.Models.ListObjectResourcesParams The list parameters.

ListResourcesWithMinimalResponse(spaceId,objectId) method

Section titled “ListResourcesWithMinimalResponse(spaceId,objectId) method”

Lists resources (support files) for an object by ID and returns a minimal file response.

A Task that resolves to IPage`1 of MinimalFile on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.

ListResourcesWithMinimalResponse(spaceId,objectId,parameters) method

Section titled “ListResourcesWithMinimalResponse(spaceId,objectId,parameters) method”

Lists resources (support files) for an object by ID with parameters and returns a minimal file response.

A Task that resolves to IPage`1 of MinimalFile on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
parameters TrimbleCloud.FileService.Models.ListObjectResourcesParams The list parameters.

ListResourcesWithMinimalResponse(spaceId,objectPath) method

Section titled “ListResourcesWithMinimalResponse(spaceId,objectPath) method”

Lists resources (support files) for an object by path and returns a minimal file response.

A Task that resolves to IPage`1 of MinimalFile on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.

ListResourcesWithMinimalResponse(spaceId,objectPath,parameters) method

Section titled “ListResourcesWithMinimalResponse(spaceId,objectPath,parameters) method”

Lists resources (support files) for an object by path with parameters and returns a minimal file response.

A Task that resolves to IPage`1 of MinimalFile on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.
parameters TrimbleCloud.FileService.Models.ListObjectResourcesParams The list parameters.

Lists all versions of an object by ID.

A Task that resolves to IPage`1 of ObjectEntity on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.

ListVersions(spaceId,objectId,parameters) method

Section titled “ListVersions(spaceId,objectId,parameters) method”

Lists all versions of an object by ID with parameters.

A Task that resolves to IPage`1 of ObjectEntity on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
parameters TrimbleCloud.FileService.Models.ListObjectVersionsParams The list parameters.

Lists all versions of an object by path.

A Task that resolves to IPage`1 of ObjectEntity on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.

ListVersions(spaceId,objectPath,parameters) method

Section titled “ListVersions(spaceId,objectPath,parameters) method”

Lists all versions of an object by path with parameters.

A Task that resolves to IPage`1 of ObjectEntity on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.
parameters TrimbleCloud.FileService.Models.ListObjectVersionsParams The list parameters.

ListVersionsWithMinimalResponse(spaceId,objectId) method

Section titled “ListVersionsWithMinimalResponse(spaceId,objectId) method”

Lists all versions of an object by ID with minimal response.

A Task that resolves to IPage`1 of MinimalObjectEntity on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.

ListVersionsWithMinimalResponse(spaceId,objectId,parameters) method

Section titled “ListVersionsWithMinimalResponse(spaceId,objectId,parameters) method”

Lists all versions of an object by ID with parameters and minimal response.

A Task that resolves to IPage`1 of MinimalObjectEntity on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
parameters TrimbleCloud.FileService.Models.ListObjectVersionsParams The list parameters.

ListVersionsWithMinimalResponse(spaceId,objectPath) method

Section titled “ListVersionsWithMinimalResponse(spaceId,objectPath) method”

Lists all versions of an object by path with minimal response.

A Task that resolves to IPage`1 of MinimalObjectEntity on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.

ListVersionsWithMinimalResponse(spaceId,objectPath,parameters) method

Section titled “ListVersionsWithMinimalResponse(spaceId,objectPath,parameters) method”

Lists all versions of an object by path with parameters and minimal response.

A Task that resolves to IPage`1 of MinimalObjectEntity on completion

Name Type Description
spaceId System.Guid The space ID.
objectPath System.String The object path.
parameters TrimbleCloud.FileService.Models.ListObjectVersionsParams The list parameters.

Move(spaceId,objectId,targetParentId,name) method

Section titled “Move(spaceId,objectId,targetParentId,name) method”

Moves an object to a new location.

A Task that resolves to Response that contains ObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
targetParentId System.Guid The target parent folder ID.
name System.String The new name (optional).

Move(spaceId,objectId,targetParentId,name,headers) method

Section titled “Move(spaceId,objectId,targetParentId,name,headers) method”

Moves an object to a new location with custom headers.

A Task that resolves to Response that contains ObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
targetParentId System.Guid The target parent folder ID.
name System.String The new name (optional).
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

MoveWithMinimalResponse(spaceId,objectId,targetParentId,name) method

Section titled “MoveWithMinimalResponse(spaceId,objectId,targetParentId,name) method”

Moves an object to a new location with minimal response.

A Task that resolves to Response that contains MinimalObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
targetParentId System.Guid The target parent folder ID.
name System.String The new name (optional).

MoveWithMinimalResponse(spaceId,objectId,targetParentId,name,headers) method

Section titled “MoveWithMinimalResponse(spaceId,objectId,targetParentId,name,headers) method”

Moves an object to a new location with custom headers and minimal response.

A Task that resolves to Response that contains MinimalObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
targetParentId System.Guid The target parent folder ID.
name System.String The new name (optional).
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

Renames an object.

A Task that resolves to Response that contains ObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
name System.String The new name.

Rename(spaceId,objectId,name,headers) method

Section titled “Rename(spaceId,objectId,name,headers) method”

Renames an object with custom headers.

A Task that resolves to Response that contains ObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
name System.String The new name.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

RenameWithMinimalResponse(spaceId,objectId,name) method

Section titled “RenameWithMinimalResponse(spaceId,objectId,name) method”

Renames an object with minimal response.

A Task that resolves to Response that contains MinimalObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
name System.String The new name.

RenameWithMinimalResponse(spaceId,objectId,name,headers) method

Section titled “RenameWithMinimalResponse(spaceId,objectId,name,headers) method”

Renames an object with custom headers and minimal response.

A Task that resolves to Response that contains MinimalObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
name System.String The new name.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

Restore(spaceId,objectId,targetParentId,name) method

Section titled “Restore(spaceId,objectId,targetParentId,name) method”

Restores a deleted object.

A Task that resolves to Response that contains ObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
targetParentId System.Nullable{System.Guid} The target parent folder ID (optional).
name System.String The new name (optional).

Restore(spaceId,objectId,targetParentId,name,headers) method

Section titled “Restore(spaceId,objectId,targetParentId,name,headers) method”

Restores a deleted object with custom headers.

A Task that resolves to Response that contains ObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
targetParentId System.Nullable{System.Guid} The target parent folder ID (optional).
name System.String The new name (optional).
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

RestoreWithMinimalResponse(spaceId,objectId,targetParentId,name) method

Section titled “RestoreWithMinimalResponse(spaceId,objectId,targetParentId,name) method”

Restores a deleted object with minimal response.

A Task that resolves to Response that contains MinimalObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
targetParentId System.Nullable{System.Guid} The target parent folder ID (optional).
name System.String The new name (optional).

RestoreWithMinimalResponse(spaceId,objectId,targetParentId,name,headers) method

Section titled “RestoreWithMinimalResponse(spaceId,objectId,targetParentId,name,headers) method”

Restores a deleted object with custom headers and minimal response.

A Task that resolves to Response that contains MinimalObjectJobResponse data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
targetParentId System.Nullable{System.Guid} The target parent folder ID (optional).
name System.String The new name (optional).
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

Updates an object by ID.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
request TrimbleCloud.FileService.Models.ObjectUpdate The update request.

Update(spaceId,objectId,request,headers) method

Section titled “Update(spaceId,objectId,request,headers) method”

Updates an object by ID with custom headers.

A Task that resolves to Response that contains ObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
request TrimbleCloud.FileService.Models.ObjectUpdate The update request.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

UpdateWithMinimalResponse(spaceId,objectId,request) method

Section titled “UpdateWithMinimalResponse(spaceId,objectId,request) method”

Updates an object by ID with minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
request TrimbleCloud.FileService.Models.ObjectUpdate The update request.

UpdateWithMinimalResponse(spaceId,objectId,request,headers) method

Section titled “UpdateWithMinimalResponse(spaceId,objectId,request,headers) method”

Updates an object by ID with custom headers and minimal response.

A Task that resolves to Response that contains MinimalObjectEntity data on completion

Name Type Description
spaceId System.Guid The space ID.
objectId System.Guid The object ID.
request TrimbleCloud.FileService.Models.ObjectUpdate The update request.
headers System.Collections.Generic.IDictionary{System.String,System.String} Custom headers (e.g., If-Match).

TrimbleCloud.FileService

Defines a page interface in responses.

Name Description
T The type of the items in the page.

Gets the link to the next page.

TrimbleCloud.FileService

Interface for accessing resources in the Trimble Cloud File Service API.

BatchGet(spaceId,resourceIds,status,urlDuration,responseContentType) method

Section titled “BatchGet(spaceId,resourceIds,status,urlDuration,responseContentType) method”

batch gets resources by their IDs or paths

Name Type Description
spaceId System.Guid
resourceIds System.Collections.Generic.IList{System.Guid}
status TrimbleCloud.FileService.Models.ResourceStatus
urlDuration System.Nullable{System.TimeSpan}
responseContentType System.String

BatchGet(spaceId,resourcePaths,status,urlDuration,responseContentType) method

Section titled “BatchGet(spaceId,resourcePaths,status,urlDuration,responseContentType) method”

batch gets resources by their paths

Name Type Description
spaceId System.Guid
resourcePaths System.Collections.Generic.IList{System.String}
status TrimbleCloud.FileService.Models.ResourceStatus
urlDuration System.Nullable{System.TimeSpan}
responseContentType System.String

BatchGetWithMinimalResponse(spaceId,resourceIds,status,urlDuration,responseContentType) method

Section titled “BatchGetWithMinimalResponse(spaceId,resourceIds,status,urlDuration,responseContentType) method”

batch gets resources by their IDs with minimal response

Name Type Description
spaceId System.Guid
resourceIds System.Collections.Generic.IList{System.Guid}
status TrimbleCloud.FileService.Models.ResourceStatus
urlDuration System.Nullable{System.TimeSpan}
responseContentType System.String

BatchGetWithMinimalResponse(spaceId,resourcePaths,status,urlDuration,responseContentType) method

Section titled “BatchGetWithMinimalResponse(spaceId,resourcePaths,status,urlDuration,responseContentType) method”

batch gets resources by their paths with minimal response

Name Type Description
spaceId System.Guid
resourcePaths System.Collections.Generic.IList{System.String}
status TrimbleCloud.FileService.Models.ResourceStatus
urlDuration System.Nullable{System.TimeSpan}
responseContentType System.String

Get(spaceId,resourceId,status,urlDuration,responseContentType) method

Section titled “Get(spaceId,resourceId,status,urlDuration,responseContentType) method”

gets a resource by its ID

Name Type Description
spaceId System.Guid
resourceId System.Guid
status TrimbleCloud.FileService.Models.ResourceStatus
urlDuration System.Nullable{System.TimeSpan}
responseContentType System.String

Get(spaceId,resourcePath,status,urlDuration,responseContentType) method

Section titled “Get(spaceId,resourcePath,status,urlDuration,responseContentType) method”

gets a resource by its path

Name Type Description
spaceId System.Guid
resourcePath System.String
status TrimbleCloud.FileService.Models.ResourceStatus
urlDuration System.Nullable{System.TimeSpan}
responseContentType System.String

GetWithMinimalResponse(spaceId,resourceId,status,urlDuration,responseContentType) method

Section titled “GetWithMinimalResponse(spaceId,resourceId,status,urlDuration,responseContentType) method”

gets a resource by its ID with minimal response

Name Type Description
spaceId System.Guid
resourceId System.Guid
status TrimbleCloud.FileService.Models.ResourceStatus
urlDuration System.Nullable{System.TimeSpan}
responseContentType System.String

GetWithMinimalResponse(spaceId,resourcePath,status,urlDuration,responseContentType) method

Section titled “GetWithMinimalResponse(spaceId,resourcePath,status,urlDuration,responseContentType) method”

gets a resource by its path with minimal response

Name Type Description
spaceId System.Guid
resourcePath System.String
status TrimbleCloud.FileService.Models.ResourceStatus
urlDuration System.Nullable{System.TimeSpan}
responseContentType System.String

TrimbleCloud.FileService

Interface for the Spaces API

Create a space

A Task that resolves to Response that contains Space data on completion

Name Type Description
space TrimbleCloud.FileService.Models.SpaceCreate The information of the space to create

Create a space and get minimal response

A Task that resolves to Response that contains MinimalSpace data on completion

Name Type Description
space TrimbleCloud.FileService.Models.SpaceCreate The information of the space to create

Delete a space given the space ID

A Task that resolves to possible JobId on completion

Name Type Description
id System.Guid The space ID
recursive System.Boolean Delete descendant folders and files
permanent System.Boolean Permanently delete the space

Get a space given the space ID

A Task that resolves to Response that contains Space data on completion

Name Type Description
id System.Guid The space ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the space

Get a space with minimal response given the space ID

A Task that resolves to Response that contains MinimalSpace data on completion

Name Type Description
id System.Guid The space ID
status TrimbleCloud.FileService.Models.ResourceStatus The status of the space

ListChildren(spaceId,nextPageToken,maxItems,includeSupportFiles,listFilter,sortOrder) method

Section titled “ListChildren(spaceId,nextPageToken,maxItems,includeSupportFiles,listFilter,sortOrder) method”

List the children of a space given the space ID

A Task that resolves to IPage`1 that contains FileOrFolder data on completion

Name Type Description
spaceId System.Guid The space ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page
includeSupportFiles System.Boolean
listFilter TrimbleCloud.FileService.Models.SpaceListFilterCriteria The filter to apply to the list
sortOrder System.String

ListPublicResources(spaceId,nextPageToken,maxItems) method

Section titled “ListPublicResources(spaceId,nextPageToken,maxItems) method”

Get list of public resources in space with anonymous access

A Task that resolves to IPage`1 that contains FileOrFolder data on completion

Name Type Description
spaceId System.Guid The space ID
nextPageToken System.String The token to retrieve the next page of items
maxItems System.Int32 The number of items to return in each page

Restore a deleted space, given the space ID, within 30 days of its deletion

A Task that resolves to the a Tuple of Response of Space data and possible JobId on completion

Name Type Description
id System.Guid The space ID

Restore a deleted space given the space ID, within 30 days of its deletion and get minimal response

A Task that resolves to the a Tuple of Response of MinimalSpace data and possible JobId on completion

Name Type Description
id System.Guid The space ID

Update a space given the space ID

A Task that resolves to Response that contains Space data on completion

Name Type Description
id System.Guid The space ID
space TrimbleCloud.FileService.Models.SpaceUpdate The space information to update

UpdateWithMinimalResponse(id,space) method

Section titled “UpdateWithMinimalResponse(id,space) method”

Update a space given the space ID and get minimal response

A Task that resolves to Response that contains MinimalSpace data on completion

Name Type Description
id System.Guid The space ID
space TrimbleCloud.FileService.Models.SpaceUpdate The space information to update

TrimbleCloud.FileService.Models

Represents the actor role mapping for the resources that are inherited.

The TRN (Trimble Resource Name) of the actor (User/Device/Application).

Indicates the source of the inherited permission.

The TRN (Trimble Resource Name) of the resource from which the permission is inherited.

The role assigned to the actor.

List of versions associated with this ACL entry.

TrimbleCloud.FileService.Models

Invalid Folder Item

represents a error code that can be used for programmatic handling of the error

represents a detailed explanation of the error

Path of the invalid folder item

represents the HTTP status code for the error

represents a short, human-readable summary of the problem SERVICE_ERROR, API_ERROR etc.,

represents the type of error that occurred

TrimbleCloud.FileService.Models

api invalid resource item

represents a error code that can be used for programmatic handling of the error

represents a detailed explanation of the error

represents the unique identifier of the resource item

represents the HTTP status code for the error

represents a short, human-readable summary of the problem SERVICE_ERROR, API_ERROR etc.,

represents the type of error that occurred

TrimbleCloud.FileService.Models

Represents a job in File Service.

The date and time when the job was created.

The TRN (Trimble Resource Name) of the user/device/application that created this job.

The unique identifier of the job.

The message of the job.

The TRN (Trimble Resource Name) of the job.

The status of the job.

The type of job.

TrimbleCloud.FileService.Models

The status of the job

Job completed

Job failed

Job queued

Job running

Unknown job status

TrimbleCloud.FileService.Models

The type of job

Copy job

Delete job

Export job

File delete job

File restore job

Folder delete job

Move job

Rename job

Restore job

Unknown job type

Upload job

TrimbleCloud.FileService.Utilities

JSON converter that serializes a string property as a raw JSON object/array instead of a double-encoded JSON string, and deserializes a JSON object/array back into a compact JSON string.

The converter validates the string is valid JSON during serialization.

Reads a JSON object/array token and converts it to a compact JSON string.

This method has no parameters.

Validates the string is valid JSON, then writes it as a raw JSON object/array instead of as a double-encoded string.

This method has no parameters.

Name Description
Newtonsoft.Json.JsonSerializationException Thrown when the string is not valid JSON.

TrimbleCloud.FileService.Models

Base class for list filters

TrimbleCloud.FileService.Models

Criteria for filtering a list of files

Gets or sets the file status.

Gets or sets the file URL duration.

TrimbleCloud.FileService.Models

Parameters for listing object resources (support files).

The token for the next page of results.

The maximum number of items to return per page.

The status filter for resources.

The validity duration for download URLs.

Gets query parameters for the request.

Dictionary of query parameters

This method has no parameters.

TrimbleCloud.FileService.Models

Parameters for listing object versions.

The token for the next page of results.

The maximum number of items to return per page.

The status filter for objects.

Gets query parameters for the request.

Dictionary of query parameters

This method has no parameters.

TrimbleCloud.FileService.Utilities

Query String Formatter

Convert the filter to query string

This method has no parameters.

TrimbleCloud.FileService.Models

Contains the lock details of a file

The date and time when the file was locked.

The TRN (Trimble Resource Name) of the user/device/application that locked this file.

The reason for locking the file.

TrimbleCloud.FileService.Models

Represents the status of a malware scan.

File cannot be scanned

Malware scan clean

Malware scan failed

Malware scan infected

Malware scan queued

Malware scan scanning

Unknown malware scan status

File is unscanned

TrimbleCloud.FileService.Models

A manifest file from a fileset.

The download URL of the file.

MD5 hash of the file.

The path where file is created.

The size of the file in bytes.

TrimbleCloud.FileService.Models

Represents a minimal representation of a file.

The TRN (Trimble Resource Name) of the user/device/application that created this file.

True if the entity has been deleted.

The date and time when the filespace was deleted, if applicable.

The TRN (Trimble Resource Name) of the file.

The unique identifier for the space where the file is stored.

The TRN (Trimble Resource Name) of the space where the file is stored.

The TRN (Trimble Resource Name) of the user/device/application that last updated this file.

The version of the file, represented in a ‘major.minor’ format.

TrimbleCloud.FileService.Models

Represents a minimal representation of a folder.

The TRN (Trimble Resource Name) of the user/device/application that created this filespace.

True if the entity has been deleted.

The date and time when the filespace was deleted, if applicable.

The TRN (Trimble Resource Name) of the folder.

The unique identifier of the space where the folder is stored.

The TRN (Trimble Resource Name) of the space where the folder is stored.

The TRN (Trimble Resource Name) of the user/device/application that last updated this filespace.

The folder version.

TrimbleCloud.FileService.Models

Represents a minimal object entity response. Contains only essential fields for performance optimization.

The TRN (Trimble Resource Name) of the user/device/application that created this object.

True if the entity has been deleted.

The TRN (Trimble Resource Name) of the object.

The unique identifier of the space in which the object is stored.

The TRN (Trimble Resource Name) of the space in which the object is stored.

The TRN (Trimble Resource Name) of the user/device/application that last updated this object.

The version of the object. Whole numbers only (e.g., “1”, “2”, “3”).

TrimbleCloud.FileService.Models

Represents a minimal job response for object operations (move, rename, restore). Contains the job ID and minimal object details for performance optimization.

The job ID for tracking the async operation. Extracted from the Location header in the response.

The object resource with minimal details returned by the operation.

TrimbleCloud.FileService.Models

Represents a minimal representation of a filespace.

The date and time when the filespace was created.

The TRN (Trimble Resource Name) of the user/device/application that created this filespace.

True if the space has been deleted.

The date and time when the filespace was deleted, if applicable.

The unique identifier of the filespace.

The name of the filespace.

The TRN (Trimble Resource Name) of the filespace.

The unique identifier of the root folder.

The TRN (Trimble Resource Name) of the root folder.

The type of the resource.

The date and time when the filespace was last updated.

The TRN (Trimble Resource Name) of the user/device/application that last updated this filespace.

TrimbleCloud.FileService.Models

Represents the minimal File or Folder including Space

The date and time when the children was created.

The TRN (Trimble Resource Name) of the user/device/application that created.

True if the entity has been deleted.

The date and time when the filespace was deleted, if applicable.

The unique identifier of children. Children can be a file or a folder.

The name of the children.

The Resource Trn of the children

The unique identifier for the root

The Root Trn for the space

The unique identifier for the space where the file/folder is stored.

The Space Trn for the space

The type of the children either it can be file or folder.

The date and time when the children was last updated.

The TRN (Trimble Resource Name) of the user/device/application that last updated.

The version of the children, represented in a ‘major.minor’ format.

TrimbleCloud.FileService.Models

Represents the actor role mapping for object resources with version information.

Time when the actor’s access to the resource expires.

The TRN (Trimble Resource Name) of the actor (User/Device/Application).

The role assigned to the actor.

List of versions associated with this ACL entry. For objects, versions are whole numbers (e.g., “1”, “2”, “3”).

TrimbleCloud.FileService.Models

Represents a request to checkin an object. Checking in an object releases the checkout and allows other actors to perform operations.

The object ID.

The space ID.

TrimbleCloud.FileService.Models

Represents a request to checkout an object. Checking out an object prevents other actors from creating a new version or performing mutation operations.

The object ID.

The reason for checkout (optional).

The space ID.

TrimbleCloud.FileService.Models

Represents a request to create an object.

The content variables defined by the object type schema. This is a freeform JSON object that must conform to the schema defined by the object type.

The metadata of the object.

The name of the object.

The ID of the object type definition.

The folder or root ID in which the object resides.

Permissions to be set on the object.

The size of the object in bytes.

TrimbleCloud.FileService.Models

Represents a request to delete an object.

The object ID.

Whether to permanently delete the object.

The space ID.

TrimbleCloud.FileService.Models

Represents an object entity response. Objects are containers for resources stored outside of Connect but made accessible through Connect.

The actions available for this object, as defined by the object type. Actions define how users can interact with the object and its external resources.

The actions that can be performed on the resource by the current user.

Checkout attached to the object.

The content variables defined by the object type schema. This is a freeform JSON object that can contain any structure.

The TRN (Trimble Resource Name) of the user/device/application that created this object.

True if the entity has been deleted.

The date and time when the object was deleted, if applicable.

The support file links.

The metadata of the object.

The name/identifier of the object type.

The ID of the object type definition.

The unique identifier of the parent folder.

The TRN (Trimble Resource Name) of the parent folder.

The parent type.

The path of the object.

Permissions evaluated for the actors on the resource. It shows the most permissible role applicable for the actor, considering both the direct and inherited permissions.

Permissions inherited from the entire parent hierarchy applicable for the actor.

Permissions that are set directly for an actor on the resource itself.

The TRN (Trimble Resource Name) of the object.

The size of the object in bytes.

The unique identifier of the space in which the object is stored.

The TRN (Trimble Resource Name) of the space in which the object is stored.

The statistics of the object.

The TRN (Trimble Resource Name) of the user/device/application that last updated this object.

The version of the object. Whole numbers only (e.g., “1”, “2”, “3”).

TrimbleCloud.FileService.Models

Represents a job response for object operations (move, rename, restore). Contains the job ID for tracking async operations and the resulting object.

List of invalid resources encountered during the operation.

The job ID for tracking the async operation. Extracted from the Location header in the response.

The object resource returned by the operation.

TrimbleCloud.FileService.Models

Represents a request to link support files to an object.

The support file links to create or update. Key is the link name, value is the support file details.

TrimbleCloud.FileService.Models

Represents a request to move an object to a new location.

The new name for the object (optional). If not specified, the object retains its current name.

The object ID.

The space ID.

The target parent folder ID.

TrimbleCloud.FileService.Models

Represents the permissions explicitly assigned to an object.

The list of actors, their roles, and version restrictions.

Specifies if permissions are inherited from the parent folder.

TrimbleCloud.FileService.Models

Represents a request to rename an object.

The new name for the object.

The object ID.

The space ID.

TrimbleCloud.FileService.Models

Represents a request to restore a deleted object.

The new name for the restored object (optional). If not specified, the object retains its original name.

The object ID.

The space ID.

The target parent folder ID (optional). If not specified, the object is restored to its original location.

TrimbleCloud.FileService.Models

Statistics about support files linked to an object.

The total count of support files.

The total size of all support files in bytes.

The date and time when the support files were last updated.

TrimbleCloud.FileService.Models

Represents support file details for linking to an object.

The unique identifier of the support file.

The major version of the object to link the support file to.

TrimbleCloud.FileService.Models

Represents an Object Type definition. Object Types define the schema, actions, and display configuration for objects. They act as blueprints that specify what data fields an object can have, how users can interact with objects, and how objects appear in Connect UI.

Actions configuration defining how users can interact with objects of this type. Actions are objects where each key is an action type and the value is an array of action definitions. Stored as a JSON string. Examples: Connect:download, Connect:actionMenu, Connect:displayComponent

Creation timestamp (ISO 8601 format). This field is required and automatically set by the server.

The TRN (Trimble Resource Name) of the user/application that created this object type. This field is required and automatically set by the server. Format: trn:2:fileservice:{region}:{resourceType}:{uuid}

The human-readable display name for the object type. Between 1-255 characters.

The unique identifier of the object type.

The internal name/identifier for the object type. This is used to reference the object type. Must be between 1-255 characters.

JSON Schema defining the structure and validation for object content. This should be a valid JSON Schema (draft 2020-12 or compatible). Stored as a JSON string. Example: “{"type": "object", "properties": {…}, "required": […]}”

Last update timestamp (ISO 8601 format). Optional - may not be present if the object type has never been updated. Note: Update operations are not currently supported by the API.

The TRN (Trimble Resource Name) of the user/application that last updated this object type. Optional - may not be present if the object type has never been updated. Format: trn:2:fileservice:{region}:{resourceType}:{uuid} Note: Update operations are not currently supported by the API.

TrimbleCloud.FileService.Models

Request to create a new object type definition. Object types define the schema, actions, and display configuration for objects.

Actions configuration for objects of this type as a JSON string. Defines how users can interact with objects (e.g., download, view, custom menu items).

The human-readable display name for the object type.

The internal unique name/identifier for the object type.

JSON Schema defining the structure for object content as a JSON string. This should be a valid JSON Schema (draft 2020-12 or compatible).

TrimbleCloud.FileService.Models

Represents a request to update an object.

The content variables defined by the object type schema.

The support file links.

The metadata of the object.

Update the permissions on the resource.

The size of the object in bytes.

TrimbleCloud.FileService.Models

Represents a request to update object ACL.

Add new roles to the existing permissions on the resource. If an actor already has a permission on the resource and is included in the request again, their existing permissions will be replaced with the new ones specified.

The actors to be removed from the permissions.

TrimbleCloud.FileService.Models

Represents permissions update request for an object. Either ReplaceAcl or UpdateAcl can be set, but not both.

Specifies if permissions are inherited from the parent folder.

Replace the entire ACL with this list of entries. Mutually exclusive with UpdateAcl.

Update specific ACL entries (add or remove actors). Mutually exclusive with ReplaceAcl.

TrimbleCloud.FileService.Models

Represents support file details for updating links on an object.

The unique identifier of the support file.

The major version of the object to link the support file to.

TrimbleCloud.FileService.Models

Contains the download URL of an export.

The URL to download the export from.

TrimbleCloud.FileService.Models

Represents a package upload creation.

Time period when the file object gets automatically removed. Must be at least 1 hour after the current time. Should not exceed 20 years from the current time.

Whether the object consists of a set of multiple files that should be treated as a single file.

Additional information related to the file.

True if the client will split the upload into multiple parts.

The name of the file.

The parent folder identifier to which the file has to be uploaded.

The parent type.

Permissions that are set directly for an actor on the resource itself.

Download HTTP response headers.

True if the download url of the file shouldn’t expire.

The support file resources.

TrimbleCloud.FileService.Models

Represents an upload request.

The file stream.

The space identifier.

The support files.

The upload identifier.

The upload URL.

The upload URL’s validity duration. If not specified, defaults to 60 minutes (or 2 days for files larger than 10GB).

TrimbleCloud.FileService

Defines a page in responses.

Name Description
T Type of the page content items

The items in the page.

Gets the link to the next page.

Returns an enumerator that iterates through the collection.

A an enumerator that can be used to iterate through the collection.

This method has no parameters.

System#Collections#IEnumerable#GetEnumerator() method

Section titled “System#Collections#IEnumerable#GetEnumerator() method”

Returns an enumerator that iterates through the collection.

A an enumerator that can be used to iterate through the collection.

This method has no parameters.

TrimbleCloud.FileService.Models

The type of parent

Parent is a file

Parent is a folder

Parent is an object

Unknown parent type

TrimbleCloud.FileService.Models

Represents the permissions evaluated for the actors on the resource. It shows the most permissible role applicable for the actor, considering both the direct and inherited permissions.

The list of actors, their roles and the source of the inherited permission (if any).

TrimbleCloud.FileService.Models

Represents the permissions inherited from the entire parent hierarchy applicable for the actor.

The list of actors, their roles and the source of the inherited permission.

TrimbleCloud.FileService.Models

The cloud provider

Use AWS as the cloud provider

Use Azure as the cloud provider

Unknown cloud provider

TrimbleCloud.FileService.Models

Represents a resource of type File/Folder

The date and time when the file was created.

The unique identifier of the file.

The name of the file.

The type of the resource.

The date and time when the file was last updated.

TrimbleCloud.FileService.Utilities

Utility class for converting resources in the File Service.

Constructor for ResourceConverter.

Name Type Description
complete System.Boolean

Determines whether this converter can convert the specified object type

This method has no parameters.

Reads JSON and converts it to a ResourceBase object based on the “type” field in the JSON

This method has no parameters.

Writes JSON from the specified value.

This method has no parameters.

TrimbleCloud.FileService.Utilities

converts a JSON array of resources into a list of ResourceBase objects.

Constructor for ResourceListConverter.

Name Type Description
complete System.Boolean

Determines whether this converter can convert the specified object type

This method has no parameters.

Reads JSON and converts to List

This method has no parameters.

Writes JSON from the specified value.

This method has no parameters.

TrimbleCloud.FileService

Exception thrown when a resource is not found

Initializes a new instance of the ResourceNotFoundException class.

This constructor has no parameters.

TrimbleCloud.FileService.Models

Represents the status of a resource.

Active resources

Both active and deleted resources

Deleted resources

Unknown resource status

TrimbleCloud.FileService.Models

The type of resource

Export

File

Folder

Job

Object

Space

Unknown

Upload

TrimbleCloud.FileService

Represents a response.

Returns the content length of the HTTP response.

Indicates whether the status code of the returned response is considered an error code.

Get the HTTP response headers.

Gets the HTTP reason phrase.

Gets the client request id that was sent to the server as tcp-request-id headers.

Gets or sets the response content body.

Gets the HTTP status code.

Frees resources held by this Response instance.

This method has no parameters.

Frees resources held by this Response instance.

Name Type Description
disposing System.Boolean True if called from Dispose(), false if called from finalizer

Creates a new instance of Response`1 with the provided value and HTTP response.

A new instance of Response`1 with the provided value and HTTP response.

Name Type Description
value ``0 The value.
response TrimbleCloud.FileService.Response The HTTP response.
Name Description
T The type of the value.

Returns the string representation of this Response.

The string representation of this Response

This method has no parameters.

TrimbleCloud.FileService

Represents a response.

Name Description
T The type of returned value.

Gets the value returned by the service. Accessing this property will throw if HasData is false.

Gets a value indicating whether the current instance has a valid value of its underlying type.

Get HTTP raw response

This method has no parameters.

Returns the value of this Response`1 object.

Name Type Description
response TrimbleCloud.FileService.Response{`0})~`0 The Response`1 instance.

TrimbleCloud.FileService.Models

The input file information.

The additional information about the upload job. If the upload failed for any reason, the message will contain the error message.

The status of the upload operation.

TrimbleCloud.FileService.Models

Represents the retention period for soft deleted resources in a filespace.

Never delete resources

Delete resources after 1 year

Delete resources after 180 days

Delete resources after 30 days

Unknown retention period

TrimbleCloud.FileService.Models

Represents a filespace in File Service.

The unique identifier of the IAM account.

Flag to allow anonymous access to resources in this space. When enabled, resources with anonymous ACL permissions (AclCustomIdentity(“anonymous”) with LimitedViewer role) can be accessed without authentication.

The actions that can be performed on the resource by the current user.

The date and time when the filespace was created.

The TRN (Trimble Resource Name) of the user/device/application that created this filespace.

True if the space has been deleted.

The date and time when the filespace was deleted, if applicable.

The unique identifier of the filespace.

The name of the filespace.

Permissions evaluated for the actors on the resource. It shows the most permissible role applicable for the actor, considering both the direct and inherited permissions.

Permissions that are set directly for an actor on the resource itself.

The cloud provider of the space.

The TRN (Trimble Resource Name) of the filespace.

The unique identifier of the root folder.

The TRN (Trimble Resource Name) of the root folder.

Duration of soft deleted resources being retained before being permanently removed

The membership boundary configuration for the space. Defines group-based access controls and viewer permissions outside the boundary group.

The statistics of the space.

The storage mode of the space

The date and time when the storage mode was last updated.

The TRN of the user who last updated the storage mode

The type of the resource.

The date and time when the filespace was last updated.

The TRN (Trimble Resource Name) of the user/device/application that last updated this filespace.

TrimbleCloud.FileService.Models

Represents a filespace creation request.

The unique identifier of the IAM account.

Flag to allow anonymous access to resources in this space. When enabled, resources with anonymous ACL permissions (AclCustomIdentity(“anonymous”) with LimitedViewer role) can be accessed without authentication.

The name of the filespace.

Permissions that are set directly for an actor on the resource itself.

The cloud provider where the filespace will be created. Supported values are ‘AWS’ and ‘Azure’. Default: ‘AWS’

Duration of soft deleted resources being retained before being permanently removed. Supported values are ‘ThirtyDays’, ‘SixMonths’, ‘OneYear’, ‘NeverDelete’. Default: ‘ThirtyDays’

The membership boundary configuration for the space. Defines group-based access controls and viewer permissions outside the boundary group.

TrimbleCloud.FileService.Models

Represents the criteria for filtering a list children of space.

Gets or sets the type of the Resource to filter by.

Gets or sets the time to filter the resources based on their last update time

Gets or sets the status of the space.

Gets or sets the duration for which the space URL is valid.

TrimbleCloud.FileService.Models

Represents the membership boundary configuration for a space.

AllowLimitedViewerOutsideBoundaryGroup property

Section titled “AllowLimitedViewerOutsideBoundaryGroup property”

Indicates whether limited viewers outside the boundary group are allowed.

The TRN (Trimble Resource Name) of the group that defines the membership boundary.

TrimbleCloud.FileService.Models

Represents the permissions explicitly assigned to a space.

The list of actors and their roles.

TrimbleCloud.FileService.Models

Represents the statistics of a space.

The date and time when the contents of the space were last updated.

The count of all soft deleted files in the space.

The count of all soft deleted folders in the space.

The sum of sizes of all the soft deleted resources in the space in bytes.

The sum of sizes of all the soft deleted support files in the space in bytes.

The count of all active files in the space.

The count of all active folders in the space.

The sum of sizes of all the active resources in the space in bytes.

The sum of size of all the active support files in the space in bytes.

The total storage used by the space and its contents, including versions, in bytes.

TrimbleCloud.FileService.Models

Represents a space update request.

Update flag to allow anonymous access to resources in this space. When enabled, resources with anonymous ACL permissions (AclCustomIdentity(“anonymous”) with LimitedViewer role) can be accessed without authentication.

Update the name of the space.

Update the permissions on the space.

Update the duration of soft deleted resources being retained before being permanently removed. Supported values are ‘ThirtyDays’, ‘SixMonths’, ‘OneYear’, ‘NeverDelete’. Default: ‘ThirtyDays’

Update the membership boundary configuration for the space. Defines group-based access controls and viewer permissions outside the boundary group.

The storage mode of the space. Supported values are “active” (default - allows all operations) and “read-only” (restricts to read-only operations).

TrimbleCloud.FileService.Models

Represents a request to update space ACL.

Add new roles to the existing permissions on the resource. If an actor already has a permission on the resource and is included in the request again, their existing permissions will be replaced with the new ones specified.

The actors to be removed from the permissions.

TrimbleCloud.FileService.Models

Represents a space permissions update request. Note: Both ReplaceAcl and UpdateAcl cannot be used in the same request.

Completely replace the existing permissions on the resource. When this field is used, all previous permissions are overwritten by the new ones.

Add or remove roles to the existing permissions on the resource.

TrimbleCloud.FileService.Models

Represents support file details.

The download url of the support file.

The unique identifier of the support file.

The TRN (Trimble Resource Name) of the support file.

The version of the support file.

TrimbleCloud.FileService.Models

Represents support file link.

The unique identifier of the support file.

The version of the support file.

TrimbleCloud.FileService.Models

Represents a support file resource for a package upload creation.

Additional information related to the support file.

The name of the support file.

Download HTTP response headers can be set here.

Set to false if the download url of the support file shouldn’t be expired. Whereas when true download url expiration takes place according to the configured value. Default: true

The key of the support file.

TrimbleCloud.FileService.Models

Represents a support file resource details in package upload.

The support file ID.

The TRN (Trimble Resource Name) of the support file.

MD5 hash of the support file.

Additional information related to the support file.

The name of the support file.

Download HTTP response headers.

True if the download url of the support file shouldn’t expire.

The support file size in bytes.

The status of the support file upload.

The key of the support file.

The upload URL and type of upload for the support file.

The support file version.

TrimbleCloud.FileService.Models

Represents a support file upload item.

The key of the support file.

The corresponding support file stream.

TrimbleCloud.FileService.Models

Represents a support file creation request.

Whether the support file should be linked to the parent file

Time period when the file object gets automatically removed. Must be at least 1 hour after the current time. Should not exceed 20 years from the current time.

Additional information related to the file.

True if the client will split the upload into multiple parts.

The name of the file.

The parent folder identifier to which the file has to be uploaded.

Parent major version for support files.

The parent type. Defaults to File for support files linked to a file. Use Object when uploading support files for an object.

Download HTTP response headers.

True if the download url of the file shouldn’t expire.

The key of the support file

TrimbleCloud.FileService.Models

Configuration for chunked file upload and download transfers.

The size of the chunks in bytes. Default is 15MB.

The number of concurrent upload or download tasks. Default is 8.

TrimbleCloud.FileService

Exception for Trimble service API errors

Constructor used by the SDK to create service exceptions with complete error information.

Name Type Description
message System.String Error message
response TrimbleCloud.FileService.Response Response object that led to the exception

Constructor used by the SDK to create service exceptions with complete error information.

This constructor has no parameters.

#ctor(message,response,innerException) constructor

Section titled “#ctor(message,response,innerException) constructor”

Constructor used by the SDK to create service exceptions with complete error information.

Name Type Description
message System.String Error message
response TrimbleCloud.FileService.Response Response object that led to the exception
innerException System.Exception Inner exception if any

Protected constructor for deserialization

Name Type Description
info System.Runtime.Serialization.SerializationInfo Serialization info
context System.Runtime.Serialization.StreamingContext Streaming context

Gets the response, if any, that led to the exception.

Gets the request ID for tracking and support purposes.

Gets the HTTP status code of the response. Returns 0 if response was not received.

Inherit from parent.

This method has no parameters.

Gets the response, if any, that led to the exception.

The response that caused this exception, or null if not available

This method has no parameters.

Returns a string representation of the exception

Formatted error message

This method has no parameters.

TrimbleCloud.FileService.Models

Contains the upload URL and upload type of a file.

The type of the file upload URL.

The URL to upload the file to.

TrimbleCloud.FileService.Models

Represents an upload in File Service.

The date and time when the upload was created.

The TRN (Trimble Resource Name) of the user/device/application that created this upload.

Describes the structure of a file.

The unique identifier of the upload.

MD5 hash of the file.

The TRN (Trimble Resource Name) of the upload.

The input file information.

The file size in bytes.

The support file resources. Note: This field should be used only for package upload.

The date and time when the upload was last updated.

The TRN (Trimble Resource Name) of the user/device/application that last updated this upload.

The file version.

TrimbleCloud.FileService.Models

Represents an upload request.

The space identifier.

The file stream.

The upload identifier.

The upload URL.

The upload URL’s validity duration. If not specified, defaults to 60 minutes (or 2 days for files larger than 10GB).

TrimbleCloud.FileService.Models

The status of the upload operation

The file upload is completed

The file upload is failed

The file is being uploaded

Unknown status

The file is uploadable

TrimbleCloud.FileService.Models

The type of the file upload URL

Multipart upload

Singlepart upload

Unknown type

TrimbleCloud.FileService.Utilities

Converts a TimeSpan to a string in the format “Xm” where X is the number of minutes in the TimeSpan

The string representation of the TimeSpan

Name Type Description
urlDuration System.Nullable{System.TimeSpan} The TimeSpan to convert to a string

Extracts a Guid representing the exportId from a string with the format “/spaces/{spaceId}/exports/{exportId}”.

The extracted exportId if the input is in the correct format and contains a valid Guid; otherwise, null.

Name Type Description
input System.String The input string from which the exportId should be extracted from.

Extracts a Guid representing the jobId from a string with the format “/jobs/{jobId}”.

The extracted Guid if the input is in the correct format and contains a valid Guid; otherwise, null.

Name Type Description
input System.String The input string from which to extract the jobId.

Gets retry policy for HTTP requests

The retry policy

Name Type Description
config TrimbleCloud.FileService.FileServiceClientConfig The configuration values

Converts a dictionary of parameters to a query string

The query string

Name Type Description
parameters System.Collections.Generic.IDictionary{System.String,System.String} The dictionary of parameters to convert to a query string