TrimbleCloud.DataOcean3
TrimbleCloud.DataOcean3
Section titled “TrimbleCloud.DataOcean3”Contents
Section titled “Contents”- AclApplicationIdentity
- AclDeviceIdentity
- AclIdentity
- AclPermission
- AclUserIdentity
- DataOceanClient
- DataOceanExtensions
- Directory
- DirectoryCreate
- DirectoryPage
- DirectoryResponse
- DirectoryUpdate
- File
- FileCopy
- FileCreate
- FileMalwareStatus
- FileNotReadyException
- FileStatus
- IDataOceanClient
- IDataOceanConfiguration
- IDirectoriesAPI
- Copy(id,directory)
- Copy(path,directory)
- Create(directory)
- Delete(id,recursive)
- Delete(path,recursive)
- Delete(id)
- Delete(path)
- DeleteRecursively(id)
- DeleteRecursively(path)
- GetDirectoriesList(parentId)
- GetDirectoriesList(path)
- GetFilesList(parentId,urlDuration)
- GetFilesList(path,urlDuration)
- Read(id)
- Read(path)
- Update(id,directory)
- Update(path,directory)
- IFilesAPI
- Copy(id,file)
- Copy(path,file)
- Create(file,urlDuration)
- Delete(id)
- Delete(path)
- Download(stream,id,version,region,concurrentRequests)
- Download(stream,path,version,region,concurrentRequests)
- GetFilesetManifest(id,version)
- GetFilesetManifest(path,version)
- GetVersionsList(id,urlDuration)
- GetVersionsList(path,urlDuration)
- Read(id,version,region,urlDuration)
- Read(path,version,region,urlDuration)
- RequestScan(id,version)
- RequestScan(path,version)
- SearchFiles(query,next_page_token)
- Update(id,file)
- Update(path,file)
- Upload(id,stream,version,concurrentRequests)
- Upload(path,stream,version,concurrentRequests)
- IJobsAPI
- StatusCodeException
AclApplicationIdentity type
Section titled “AclApplicationIdentity type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
#ctor(applicationId) constructor
Section titled “#ctor(applicationId) constructor”Summary
Section titled “Summary”Creates an application identity.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| applicationId | System.Guid | The application id. |
AclDeviceIdentity type
Section titled “AclDeviceIdentity type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
#ctor(deviceId,applicationId) constructor
Section titled “#ctor(deviceId,applicationId) constructor”Summary
Section titled “Summary”Creates a device identity.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| deviceId | System.Guid | The device id; otherwise, AclIdentity.ALL to represent any device. |
| applicationId | System.Guid | The application id; otherwise AclIdentity.ALL to represent any application. |
AclIdentity type
Section titled “AclIdentity type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
ALL constants
Section titled “ALL constants”Summary
Section titled “Summary”Use ALL to represent cases where any client is allowed. For example, new AclUserIdentity(userID, AclIdentity.ALL) will allow a particular user from any application.
AclPermission type
Section titled “AclPermission type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
ReadOnly constants
Section titled “ReadOnly constants”Summary
Section titled “Summary”Read-only permission
ReadWrite constants
Section titled “ReadWrite constants”Summary
Section titled “Summary”Read and write permission. For files, write permission allows users to create new versions of the file.
ReadWriteDelete constants
Section titled “ReadWriteDelete constants”Summary
Section titled “Summary”Read, write, and delete permission.
AclUserIdentity type
Section titled “AclUserIdentity type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
#ctor(userId,applicationId) constructor
Section titled “#ctor(userId,applicationId) constructor”Summary
Section titled “Summary”Creates a user identity.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| userId | System.Guid | The user id; otherwise, AclIdentity.ALL to represent any user. |
| applicationId | System.Guid | The application id; otherwise AclIdentity.ALL to represent any application. |
DataOceanClient type
Section titled “DataOceanClient type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3
Summary
Section titled “Summary”A client for the Trimble Cloud Platform Data Ocean
Example
Section titled “Example”const TOKEN = "...";const BASE_URL = "https://cloud.stage.api.trimblecloud.com/dataocean/api/3.0";var tokenProvider = new FixedTokenProvider(TOKEN);var httpClientProvider = new BearerTokenHttpClientProvider(tokenProvider, new Uri(BASE_URL, UriKind.Absolute));var dataOceanClient = new DataOceanClient(httpClientProvider);var directories = await dataOceanClient.Directories.GetDirectoriesList().GetItems();var files = await dataOceanClient.Directories.GetFilesList().GetItems();var file = await dataOceanClient.Files.Create(new File() { ... });using (var stream = File.OpenRead("helloworld.txt")){ await dataOceanClient.Files.Upload(file.id, stream);}#ctor(clientProvider,productName) constructor
Section titled “#ctor(clientProvider,productName) constructor”Summary
Section titled “Summary”Public constructor for a Data Ocean client
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| clientProvider | Trimble.ID.IHttpClientProvider | A provider of a pre-configured HttpClient used for API calls made by this client |
| productName | System.String | The product name of the consuming application |
Configuration constants
Section titled “Configuration constants”Directories property
Section titled “Directories property”Summary
Section titled “Summary”Directories API
Files property
Section titled “Files property”Summary
Section titled “Summary”Files API
Jobs property
Section titled “Jobs property”Summary
Section titled “Summary”Jobs API
Dispose() method
Section titled “Dispose() method”Summary
Section titled “Summary”Inherit from parent.
Parameters
Section titled “Parameters”This method has no parameters.
DataOceanExtensions type
Section titled “DataOceanExtensions type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3
Summary
Section titled “Summary”A client for the Trimble Cloud Platform Data Ocean
Example
Section titled “Example” // Setup const TOKEN = "..."; const BASE_URL = "https://cloud.stage.api.trimblecloud.com/dataocean/api/3.0"; var tokenProvider = new FixedTokenProvider(TOKEN); services.AddDataOcean(tokenProvider, BASE_URL); // Usage public class UseDataOcean(IDirectoriesAPI directoriesAPI, IFilesAPI filesAPI) { private IDirectoriesAPI _directoriesAPI;
public UseDataOcean(IDirectoriesAPI directoriesAPI, IFilesAPI filesAPI) { _directoriesAPI = directoriesAPI; _filesAPI = filesAPI; } public async Task DoWork() { var directories = await _directoriesAPI.GetDirectoriesList().GetItems(); var files = await _directoriesAPI.GetFilesList().GetItems(); var file = await _filesAPI.Create(new File() { ... }); using (var stream = File.OpenRead("helloworld.txt")) { await _filesAPI.Upload(file.id, stream); } } }AddDataOcean(services,tokenProvider,baseAddress,configuration,logger,productName) method
Section titled “AddDataOcean(services,tokenProvider,baseAddress,configuration,logger,productName) method”Summary
Section titled “Summary”Adds Data Ocean services.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| services | Microsoft.Extensions.DependencyInjection.IServiceCollection | The service collection to add Data Ocean to. |
| tokenProvider | Trimble.ID.ITokenProvider | The token provider. |
| baseAddress | System.Uri | The base address for the service. |
| configuration | TrimbleCloud.DataOcean3.Utilities.IDataOceanConfiguration | The optional Data Ocean configuration. |
| logger | TrimbleCloud.Common.Logging.ILogger | The optional Data Ocean logger. |
| productName | System.String | The product name of the consuming application |
ReformatApiCloudv1Address(baseAddress) method
Section titled “ReformatApiCloudv1Address(baseAddress) method”Summary
Section titled “Summary”Reformats the base address if we detect it is from API Cloud v1.0
Returns
Section titled “Returns”The unmodified or modified uri.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| baseAddress | System.Uri | The base address. |
Directory type
Section titled “Directory type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
Summary
Section titled “Summary”Represents a directory in the data ocean.
Acl property
Section titled “Acl property”Summary
Section titled “Summary”Gets or sets the access control list (ACL) for the directory.
ApplicationId property
Section titled “ApplicationId property”Summary
Section titled “Summary”Gets or sets the application identifier associated with the directory.
ContentSize property
Section titled “ContentSize property”Summary
Section titled “Summary”Gets or sets the size of the content in the directory.
ContentUpdatedAt property
Section titled “ContentUpdatedAt property”Summary
Section titled “Summary”Gets or sets the date and time when the content of the directory was last updated.
CreatedAt property
Section titled “CreatedAt property”Summary
Section titled “Summary”Gets or sets the date and time when the directory was created.
Id property
Section titled “Id property”Summary
Section titled “Summary”Gets or sets the unique identifier of the directory.
Metadata property
Section titled “Metadata property”Summary
Section titled “Summary”Gets or sets the metadata associated with the directory.
OwnerId property
Section titled “OwnerId property”Summary
Section titled “Summary”Gets or sets the owner identifier of the directory.
Path property
Section titled “Path property”Summary
Section titled “Summary”Gets or sets the path of the directory.
UpdatedAt property
Section titled “UpdatedAt property”Summary
Section titled “Summary”Gets or sets the date and time when the directory was last updated.
DirectoryCreate type
Section titled “DirectoryCreate type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
Summary
Section titled “Summary”Represents a directory creation request.
Acl property
Section titled “Acl property”Summary
Section titled “Summary”Gets or sets the access control list (ACL) for the directory.
Metadata property
Section titled “Metadata property”Summary
Section titled “Summary”Gets or sets the metadata associated with the directory.
Path property
Section titled “Path property”Summary
Section titled “Summary”Gets or sets the path of the directory.
DirectoryPage type
Section titled “DirectoryPage type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
Summary
Section titled “Summary”Represents a page of directories.
Directories property
Section titled “Directories property”Summary
Section titled “Summary”Gets or sets the list of directories.
NextPageToken property
Section titled “NextPageToken property”Summary
Section titled “Summary”Gets or sets the token for the next page.
DirectoryResponse type
Section titled “DirectoryResponse type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
Summary
Section titled “Summary”Represents a response containing directory information.
Directory property
Section titled “Directory property”Summary
Section titled “Summary”Gets or sets the directory information.
JobId property
Section titled “JobId property”Summary
Section titled “Summary”Gets or sets the job ID associated with the directory response.
DirectoryUpdate type
Section titled “DirectoryUpdate type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
Summary
Section titled “Summary”Represents a directory update in the data ocean.
Acl property
Section titled “Acl property”Summary
Section titled “Summary”Gets or sets the access control list (ACL) for the directory.
Metadata property
Section titled “Metadata property”Summary
Section titled “Summary”Gets or sets the metadata for the directory update. The type of the metadata is dynamic, allowing for flexibility in the data structure.
Path property
Section titled “Path property”Summary
Section titled “Summary”Gets or sets the path of the directory update.
File type
Section titled “File type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
Summary
Section titled “Summary”Represents a file.
Acl property
Section titled “Acl property”Summary
Section titled “Summary”Gets or sets the access control list (ACL) of the file.
ApplicationId property
Section titled “ApplicationId property”Summary
Section titled “Summary”Gets or sets the application identifier associated with the file.
CreatedAt property
Section titled “CreatedAt property”Summary
Section titled “Summary”Gets or sets the date and time when the file was created.
Download property
Section titled “Download property”Summary
Section titled “Summary”Gets or sets the download information of the file.
ExpiresAt property
Section titled “ExpiresAt property”Summary
Section titled “Summary”Gets or sets the expiration date and time of the file.
Fileset property
Section titled “Fileset property”Summary
Section titled “Summary”Gets or sets a value indicating whether the file is part of a fileset.
FirstVersionCreatedAt property
Section titled “FirstVersionCreatedAt property”Summary
Section titled “Summary”Gets or sets the date and time when the first version of the file was created.
Id property
Section titled “Id property”Summary
Section titled “Summary”Gets or sets the unique identifier of the file.
LastScannedAt property
Section titled “LastScannedAt property”Summary
Section titled “Summary”Gets or sets the date and time when the file was last scanned for malware.
MalwareStatus property
Section titled “MalwareStatus property”Summary
Section titled “Summary”Gets or sets the malware status of the file.
MasterId property
Section titled “MasterId property”Summary
Section titled “Summary”Gets or sets the master identifier of the file.
Md5 property
Section titled “Md5 property”Summary
Section titled “Summary”Gets or sets the MD5 hash of the file.
Metadata property
Section titled “Metadata property”Summary
Section titled “Summary”Gets or sets the metadata of the file.
Multipart property
Section titled “Multipart property”Summary
Section titled “Summary”Gets or sets a value indicating whether the file is multipart.
OwnerId property
Section titled “OwnerId property”Summary
Section titled “Summary”Gets or sets the owner identifier of the file.
Path property
Section titled “Path property”Summary
Section titled “Summary”Gets or sets the path of the file.
PathTemplate property
Section titled “PathTemplate property”Summary
Section titled “Summary”Gets or sets the path template of the file.
RegionPreferences property
Section titled “RegionPreferences property”Summary
Section titled “Summary”Gets or sets the region preferences for the file.
Regions property
Section titled “Regions property”Summary
Section titled “Summary”Gets or sets the regions associated with the file.
RestrictedAccess property
Section titled “RestrictedAccess property”Summary
Section titled “Summary”Gets or sets a value indicating whether the file has restricted access.
Size property
Section titled “Size property”Summary
Section titled “Summary”Gets or sets the size of the file in bytes.
Status property
Section titled “Status property”Summary
Section titled “Summary”Gets or sets the status of the file.
UpdatedAt property
Section titled “UpdatedAt property”Summary
Section titled “Summary”Gets or sets the date and time when the file was last updated.
Upload property
Section titled “Upload property”Summary
Section titled “Summary”Gets or sets the upload information of the file.
Version property
Section titled “Version property”Summary
Section titled “Summary”Gets or sets the version of the file.
FileCopy type
Section titled “FileCopy type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
Summary
Section titled “Summary”Represents a file copy operation.
ExpiresAt property
Section titled “ExpiresAt property”Summary
Section titled “Summary”Gets or sets the expiration date and time of the file.
Metadata property
Section titled “Metadata property”Summary
Section titled “Summary”Gets or sets the metadata associated with the file.
Path property
Section titled “Path property”Summary
Section titled “Summary”Gets or sets the path of the file.
Regions property
Section titled “Regions property”Summary
Section titled “Summary”Gets or sets the regions where the file is available.
RestrictedAccess property
Section titled “RestrictedAccess property”Summary
Section titled “Summary”Gets or sets a value indicating whether the file has restricted access.
FileCreate type
Section titled “FileCreate type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
Summary
Section titled “Summary”Represents the information required to create a file.
Acl property
Section titled “Acl property”Summary
Section titled “Summary”Gets or sets the access control list (ACL) of the file.
ExpiresAt property
Section titled “ExpiresAt property”Summary
Section titled “Summary”Gets or sets the expiration date and time of the file.
Fileset property
Section titled “Fileset property”Summary
Section titled “Summary”Gets or sets a value indicating whether the file is part of a fileset.
MasterId property
Section titled “MasterId property”Summary
Section titled “Summary”Gets or sets the master ID of the file.
Metadata property
Section titled “Metadata property”Summary
Section titled “Summary”Gets or sets the metadata associated with the file.
Multipart property
Section titled “Multipart property”Summary
Section titled “Summary”Gets or sets a value indicating whether the file is multipart.
Path property
Section titled “Path property”Summary
Section titled “Summary”Gets or sets the path of the file.
PathTemplate property
Section titled “PathTemplate property”Summary
Section titled “Summary”Gets or sets the path template of the file.
Regions property
Section titled “Regions property”Summary
Section titled “Summary”Gets or sets the regions associated with the file.
RestrictedAccess property
Section titled “RestrictedAccess property”Summary
Section titled “Summary”Gets or sets a value indicating whether the file has restricted access.
FileMalwareStatus type
Section titled “FileMalwareStatus type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
CannotScan constants
Section titled “CannotScan constants”Summary
Section titled “Summary”File cannot be scanned automatically due to its size
Clean constants
Section titled “Clean constants”Summary
Section titled “Summary”File has been scanned and no issues were detected
Deleting constants
Section titled “Deleting constants”Summary
Section titled “Summary”File has been scanned and has been found to contain malware
ScanFailed constants
Section titled “ScanFailed constants”Summary
Section titled “Summary”File scan was attempted but could not be completed
Unscanned constants
Section titled “Unscanned constants”Summary
Section titled “Summary”File has not been scanned yet
FileNotReadyException type
Section titled “FileNotReadyException type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Exceptions
FileState property
Section titled “FileState property”Summary
Section titled “Summary”Current state of file.
FileStatus type
Section titled “FileStatus type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Model
ArchiveProcessing constants
Section titled “ArchiveProcessing constants”Summary
Section titled “Summary”Archive has been uploaded and is now being processed
ArchiveProcessingFailed constants
Section titled “ArchiveProcessingFailed constants”Summary
Section titled “Summary”Archive processing failed, e.g. if it’s a bad zip file
Available constants
Section titled “Available constants”Summary
Section titled “Summary”File is available
Deleting constants
Section titled “Deleting constants”Summary
Section titled “Summary”File content is in the process of being deleted
Finalizing constants
Section titled “Finalizing constants”Summary
Section titled “Summary”File is completing a multi-part assemble request or is in the process of being copied
UploadFailed constants
Section titled “UploadFailed constants”Summary
Section titled “Summary”File is not accessible due to a failure during upload
Uploadable constants
Section titled “Uploadable constants”Summary
Section titled “Summary”File is awaiting an upload
IDataOceanClient type
Section titled “IDataOceanClient type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3
Summary
Section titled “Summary”Interface for the Trimble Cloud Platform Data Ocean
Directories property
Section titled “Directories property”Summary
Section titled “Summary”Directories API
Returns
Section titled “Returns”Files property
Section titled “Files property”Summary
Section titled “Summary”Files API
Returns
Section titled “Returns”Jobs property
Section titled “Jobs property”Summary
Section titled “Summary”Jobs API
Returns
Section titled “Returns”IDataOceanConfiguration type
Section titled “IDataOceanConfiguration type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Utilities
ChunkSize property
Section titled “ChunkSize property”Summary
Section titled “Summary”Download and upload chunk size.
HttpTimeout property
Section titled “HttpTimeout property”Summary
Section titled “Summary”Timeout used for Http calls.
MaxConcurrentRequests property
Section titled “MaxConcurrentRequests property”Summary
Section titled “Summary”The maximum number of concurrent requests allowed.
PageLimit property
Section titled “PageLimit property”Summary
Section titled “Summary”Page size to retrieve.
Retries property
Section titled “Retries property”Summary
Section titled “Summary”Number of retries for HTTP calls with a retry-able response.
RetryInterval property
Section titled “RetryInterval property”Summary
Section titled “Summary”Time to wait between retries.
IDirectoriesAPI type
Section titled “IDirectoriesAPI type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3
Copy(id,directory) method
Section titled “Copy(id,directory) method”Summary
Section titled “Summary”Copies a directory
Returns
Section titled “Returns”A Task that resolves to a JobResponseBrief on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The directory ID |
| directory | TrimbleCloud.DataOcean3.Model.DirectoryCreate | The directory information to copy |
Copy(path,directory) method
Section titled “Copy(path,directory) method”Summary
Section titled “Summary”Copies a file
Returns
Section titled “Returns”A Task that resolves to a JobResponseBrief on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The directory path |
| directory | TrimbleCloud.DataOcean3.Model.DirectoryCreate | The directory information to copy |
Create(directory) method
Section titled “Create(directory) method”Summary
Section titled “Summary”Create a directory
Returns
Section titled “Returns”A Task that resolves to the created Directory on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| directory | TrimbleCloud.DataOcean3.Model.DirectoryCreate | The information of the directory to create |
Delete(id,recursive) method
Section titled “Delete(id,recursive) method”Summary
Section titled “Summary”Delete a directory given the directory ID
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The directory ID |
| recursive | System.Boolean | Delete descendant files and directories |
Remarks
Section titled “Remarks”This method has been deprecated. Use Delete(Guid id) or DeleteRecursively(Guid id) instead.
Delete(path,recursive) method
Section titled “Delete(path,recursive) method”Summary
Section titled “Summary”Delete a directory given the directory path
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The directory path |
| recursive | System.Boolean | Delete descendant files and directories |
Remarks
Section titled “Remarks”This method has been deprecated. Use Delete(string path) or DeleteRecursively(string path) instead.
Delete(id) method
Section titled “Delete(id) method”Summary
Section titled “Summary”Delete an empty directory given the directory ID
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The directory ID |
Remarks
Section titled “Remarks”Use DeleteRecursively(Guid id) to delete a non-empty directory
Delete(path) method
Section titled “Delete(path) method”Summary
Section titled “Summary”Delete an empty directory given the directory path
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The directory path |
Remarks
Section titled “Remarks”Use DeleteRecursively(string path) to delete a non-empty directory
DeleteRecursively(id) method
Section titled “DeleteRecursively(id) method”Summary
Section titled “Summary”Delete a directory given the directory ID
Returns
Section titled “Returns”A Task that resolves to a JobResponseBrief on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The directory ID |
DeleteRecursively(path) method
Section titled “DeleteRecursively(path) method”Summary
Section titled “Summary”Delete a directory given the directory path
Returns
Section titled “Returns”A Task that resolves to a JobResponseBrief on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The directory path |
GetDirectoriesList(parentId) method
Section titled “GetDirectoriesList(parentId) method”Summary
Section titled “Summary”Get a list of directories in the given parent directory
Returns
Section titled “Returns”An asynchronous list of directories
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| parentId | System.Guid | The ID of the parent directory |
GetDirectoriesList(path) method
Section titled “GetDirectoriesList(path) method”Summary
Section titled “Summary”Get a list of directories in the given parent directory
Returns
Section titled “Returns”An asynchronous list of directories
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The optional path of the parent directory, root directory is used if this parameter is omitted or null |
GetFilesList(parentId,urlDuration) method
Section titled “GetFilesList(parentId,urlDuration) method”Summary
Section titled “Summary”Get a list of directories in the given parent directory
Returns
Section titled “Returns”An asynchronous list of directories
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| parentId | System.Guid | The ID of the parent directory |
| urlDuration | System.Nullable{System.TimeSpan} | The duration of time for which the file download/upload URL for the file will be valid if provided between 5 minutes and 30 days. Default is 1 hour. |
GetFilesList(path,urlDuration) method
Section titled “GetFilesList(path,urlDuration) method”Summary
Section titled “Summary”Get a list of directories in the given parent directory
Returns
Section titled “Returns”An asynchronous list of directories
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The optional path of the parent directory, root directory is used if this parameter is omitted or null |
| urlDuration | System.Nullable{System.TimeSpan} | The duration of time for which the file download/upload URL for the file will be valid if provided between 5 minutes and 30 days. Default is 1 hour. |
Read(id) method
Section titled “Read(id) method”Summary
Section titled “Summary”Get a directory given the directory ID
Returns
Section titled “Returns”A Task that resolves to the Directory on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The directory ID |
Read(path) method
Section titled “Read(path) method”Summary
Section titled “Summary”Get a directory given the directory path
Returns
Section titled “Returns”A Task that resolves to the Directory on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The optional path of the directory, root directory is used if this parameter is omitted or null |
Update(id,directory) method
Section titled “Update(id,directory) method”Summary
Section titled “Summary”Update a directory given the directory ID
Returns
Section titled “Returns”A Task that resolves to a ValueTuple of Directory Directory and possible JobId Guid on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The directory ID |
| directory | TrimbleCloud.DataOcean3.Model.DirectoryUpdate | DirectoryUpdate |
Update(path,directory) method
Section titled “Update(path,directory) method”Summary
Section titled “Summary”Update a directory given the directory path
Returns
Section titled “Returns”A Task that resolves to the a Tuple of Directory and possible JobId Guid on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | |
| directory | TrimbleCloud.DataOcean3.Model.DirectoryUpdate | DirectoryUpdate |
IFilesAPI type
Section titled “IFilesAPI type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3
Copy(id,file) method
Section titled “Copy(id,file) method”Summary
Section titled “Summary”Copies a file
Returns
Section titled “Returns”A Task that resolves to the copied File on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The file ID |
| file | TrimbleCloud.DataOcean3.Model.FileCopy | The file information to copy |
Copy(path,file) method
Section titled “Copy(path,file) method”Summary
Section titled “Summary”Copies a file
Returns
Section titled “Returns”A Task that resolves to the copied File on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The file path |
| file | TrimbleCloud.DataOcean3.Model.FileCopy | The file information to copy |
Create(file,urlDuration) method
Section titled “Create(file,urlDuration) method”Summary
Section titled “Summary”Create a file or a new version of a file if it already exists
Returns
Section titled “Returns”A Task that resolves to the created File on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| file | TrimbleCloud.DataOcean3.Model.FileCreate | The information of the file to create |
| urlDuration | System.Nullable{System.TimeSpan} | The duration of time for which the file download/upload URL for the file will be valid if provided between 5 minutes and 30 days. Default is 1 hour. |
Delete(id) method
Section titled “Delete(id) method”Summary
Section titled “Summary”Delete a file given the file ID
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The file ID |
Delete(path) method
Section titled “Delete(path) method”Summary
Section titled “Summary”Delete a file given the file path
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The file path |
Download(stream,id,version,region,concurrentRequests) method
Section titled “Download(stream,id,version,region,concurrentRequests) method”Summary
Section titled “Summary”Downloads a file given the file ID
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| stream | System.IO.Stream | The stream to write content to |
| id | System.Guid | The file ID |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
| region | System.String | The specific region if provided; otherwise the default region will be used |
| concurrentRequests | System.Int32 | The number of concurrent download tasks if provided; otherwise 8 tasks are used |
Exceptions
Section titled “Exceptions”| Name | Description |
|---|---|
| TrimbleCloud.DataOcean3.Exceptions.FileNotReadyException | Thrown if the file is not in the Available state |
Download(stream,path,version,region,concurrentRequests) method
Section titled “Download(stream,path,version,region,concurrentRequests) method”Summary
Section titled “Summary”Downloads a file given the file path
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| stream | System.IO.Stream | The stream to write content to |
| path | System.String | The file path |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
| region | System.String | The specific region if provided; otherwise the default region will be used |
| concurrentRequests | System.Int32 | The number of concurrent download tasks if provided; otherwise 8 tasks are used |
Exceptions
Section titled “Exceptions”| Name | Description |
|---|---|
| TrimbleCloud.DataOcean3.Exceptions.FileNotReadyException | Thrown if the file is not in the Available state |
GetFilesetManifest(id,version) method
Section titled “GetFilesetManifest(id,version) method”Summary
Section titled “Summary”Get a fileset manifest given the file ID
Returns
Section titled “Returns”An asynchronous list of files in the fileset
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The file ID |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
GetFilesetManifest(path,version) method
Section titled “GetFilesetManifest(path,version) method”Summary
Section titled “Summary”Get a fileset manifest given the file path
Returns
Section titled “Returns”An asynchronous list of files in the fileset
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The file path |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
GetVersionsList(id,urlDuration) method
Section titled “GetVersionsList(id,urlDuration) method”Summary
Section titled “Summary”Get a list of versions for a file given the file ID
Returns
Section titled “Returns”An asynchronous list of files versions
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The file ID |
| urlDuration | System.Nullable{System.TimeSpan} | The duration of time for which the file download/upload URL for the file will be valid if provided between 5 minutes and 30 days. Default is 1 hour. |
GetVersionsList(path,urlDuration) method
Section titled “GetVersionsList(path,urlDuration) method”Summary
Section titled “Summary”Get a list of versions for a file given the file path
Returns
Section titled “Returns”An asynchronous list of files versions
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The file path |
| urlDuration | System.Nullable{System.TimeSpan} | The duration of time for which the file download/upload URL for the file will be valid if provided between 5 minutes and 30 days. Default is 1 hour. |
Read(id,version,region,urlDuration) method
Section titled “Read(id,version,region,urlDuration) method”Summary
Section titled “Summary”Get a file given the file ID
Returns
Section titled “Returns”A Task that resolves to the file on completion or null if the file does not exist
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The file ID |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
| region | System.String | The specific region if provided; otherwise the default region will be used |
| urlDuration | System.Nullable{System.TimeSpan} | The duration of time for which the file download/upload URL for the file will be valid if provided between 5 minutes and 30 days. Default is 1 hour. |
Read(path,version,region,urlDuration) method
Section titled “Read(path,version,region,urlDuration) method”Summary
Section titled “Summary”Get a file given the file path
Returns
Section titled “Returns”A Task that resolves to the file on completion or null if the file does not exist
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The path of the file |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
| region | System.String | The specific region if provided; otherwise the default region will be used |
| urlDuration | System.Nullable{System.TimeSpan} | The duration of time for which the file download/upload URL for the file will be valid if provided between 5 minutes and 30 days. Default is 1 hour. |
RequestScan(id,version) method
Section titled “RequestScan(id,version) method”Summary
Section titled “Summary”Requests a file to be scanned
Returns
Section titled “Returns”A Task that resolves to the File on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The file ID |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
RequestScan(path,version) method
Section titled “RequestScan(path,version) method”Summary
Section titled “Summary”Requests a file to be scanned
Returns
Section titled “Returns”A Task that resolves to the File on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The file path |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
SearchFiles(query,next_page_token) method
Section titled “SearchFiles(query,next_page_token) method”Summary
Section titled “Summary”Get a list of files found by next page token
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| query | TrimbleCloud.DataOcean3.Model.SearchQuery | The information to search |
| next_page_token | System.String | The token provided by search |
Update(id,file) method
Section titled “Update(id,file) method”Summary
Section titled “Summary”Update a file given the file ID
Returns
Section titled “Returns”A Task that resolves to the updated File on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The file ID |
| file | TrimbleCloud.DataOcean3.Model.FileUpdate | The file information to update |
Update(path,file) method
Section titled “Update(path,file) method”Summary
Section titled “Summary”Update a file given the file path
Returns
Section titled “Returns”A Task that resolves to the updated File on completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The file path |
| file | TrimbleCloud.DataOcean3.Model.FileUpdate | The file information to update |
Upload(id,stream,version,concurrentRequests) method
Section titled “Upload(id,stream,version,concurrentRequests) method”Summary
Section titled “Summary”Uploads a file given the file ID and Stream
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The file ID |
| stream | System.IO.Stream | The file Stream |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
| concurrentRequests | System.Int32 | The number of concurrent upload tasks if provided; otherwise 8 tasks are used |
Upload(path,stream,version,concurrentRequests) method
Section titled “Upload(path,stream,version,concurrentRequests) method”Summary
Section titled “Summary”Uploads a file given the file path and Stream
Returns
Section titled “Returns”A Task that resolves to completion
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| path | System.String | The file path |
| stream | System.IO.Stream | The file Stream |
| version | System.Nullable{System.Int32} | The file version if provided; otherwise the current version is used if null |
| concurrentRequests | System.Int32 | The number of concurrent upload tasks if provided; otherwise 8 tasks are used |
IJobsAPI type
Section titled “IJobsAPI type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3
Read(id) method
Section titled “Read(id) method”Summary
Section titled “Summary”Get a job given the job id
Returns
Section titled “Returns”A Task that resolves to the job on completion or null if the job does not exist
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The id of the job |
WaitForJob(id,timeout,timeDelay,callback) method
Section titled “WaitForJob(id,timeout,timeDelay,callback) method”Summary
Section titled “Summary”Waits for job to finish and returns job’s status
Returns
Section titled “Returns”A Task that resolves to the job on completion or null if the job does not exist. TimeoutException after a set time of polling.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| id | System.Guid | The id of the job |
| timeout | System.Nullable{System.TimeSpan} | Time limit for job to finish before Timeout Exception. |
| timeDelay | System.Nullable{System.TimeSpan} | Time delay before the function calls the Job api, timeDelay has a minimum of 1 second. |
| callback | System.Action{TrimbleCloud.DataOcean3.Model.Job} | Callback function which is called after every Job api call, the function must be void |
StatusCodeException type
Section titled “StatusCodeException type”Namespace
Section titled “Namespace”TrimbleCloud.DataOcean3.Exceptions
StatusCode property
Section titled “StatusCode property”Summary
Section titled “Summary”Status code returned from Data Ocean