Interface IOneComputePlatformClient
Defines the client interface to the One Compute Platform.
Inherited Members
Namespace: DNVGL.One.Compute.Core.PlatformClient
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IOneComputePlatformClient : IJobSchedulingClient
Methods
View SourceCreateBlobUris(string, IEnumerable<string>)
Creates the BLOB uris for the given blobs.
Declaration
IEnumerable<Uri> CreateBlobUris(string containerName, IEnumerable<string> blobPaths)
Parameters
Type | Name | Description |
---|---|---|
string | containerName | Name of the container. |
IEnumerable<string> | blobPaths | The BLOB paths. |
Returns
Type | Description |
---|---|
IEnumerable<Uri> | A set of URIs for the |
CreateBlobUrisAsync(string, IEnumerable<string>)
Creates the BLOB uris for the given blobs.
Declaration
Task<IEnumerable<Uri>> CreateBlobUrisAsync(string containerName, IEnumerable<string> blobPaths)
Parameters
Type | Name | Description |
---|---|---|
string | containerName | Name of the container. |
IEnumerable<string> | blobPaths | The BLOB paths. |
Returns
Type | Description |
---|---|
Task<IEnumerable<Uri>> | A set of URIs for the |
DeleteJob(string)
Deletes a job.
Declaration
void DeleteJob(string jobId)
Parameters
Type | Name | Description |
---|---|---|
string | jobId | The job id. |
DeleteJobAsync(string)
Deletes a job.
Declaration
Task DeleteJobAsync(string jobId)
Parameters
Type | Name | Description |
---|---|---|
string | jobId | The job id. |
Returns
Type | Description |
---|---|
Task | The delete task. |
Remarks
The returned task ends when the job has been deleted with the backend services.
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Could not delete job. Status code = " + response.StatusCode. |
GetContainerUri(string, int?)
Gets the container URI to the given container.
Declaration
Uri GetContainerUri(string containerName, int? days = null)
Parameters
Type | Name | Description |
---|---|---|
string | containerName | Name of the container. |
int? | days | Number of days until the container (shared access signature) URI expires. |
Returns
Type | Description |
---|---|
Uri | URI to the container including shared access signature, null if the container is not found. |
GetContainerUriAsync(string, int?)
Gets the container URI to the given container.
Declaration
Task<Uri> GetContainerUriAsync(string containerName, int? days = null)
Parameters
Type | Name | Description |
---|---|---|
string | containerName | Name of the container. |
int? | days | Number of days until the container (shared access signature) URI expires. |
Returns
Type | Description |
---|---|
Task<Uri> | URI to the container including shared access signature, null if the container is not found. |
GetContainerUriReadOnly(string, int?)
Gets the container URI to the given container, with read-only access permissions only.
Declaration
Uri GetContainerUriReadOnly(string containerName, int? days = null)
Parameters
Type | Name | Description |
---|---|---|
string | containerName | Name of the container. |
int? | days | Number of days until the container (shared access signature) URI expires. |
Returns
Type | Description |
---|---|
Uri | Read-only URI to the container including shared access signature, null if the container is not found. |
GetContainerUriReadOnlyAsync(string, int?)
Gets the container URI to the given container, with read-only access permissions only.
Declaration
Task<Uri> GetContainerUriReadOnlyAsync(string containerName, int? days = null)
Parameters
Type | Name | Description |
---|---|---|
string | containerName | Name of the container. |
int? | days | Number of days until the container (shared access signature) URI expires. |
Returns
Type | Description |
---|---|
Task<Uri> | Read-only URI to the container including shared access signature, null if the container is not found. |
GetContainers()
Gets the containers the user has access to.
Declaration
IEnumerable<string> GetContainers()
Returns
Type | Description |
---|---|
IEnumerable<string> | Names of containers the user has access to. |
GetContainersAsync()
Gets the containers the user has access to.
Declaration
Task<IEnumerable<string>> GetContainersAsync()
Returns
Type | Description |
---|---|
Task<IEnumerable<string>> | Names of containers the user has access to. |
GetWorkItemStorageContainerUri(string, string, string)
Gets the work item storage container URI with access (SAS) token.
Declaration
Uri GetWorkItemStorageContainerUri(string jobId, string workUnitId, string containerName)
Parameters
Type | Name | Description |
---|---|---|
string | jobId | The job identifier. |
string | workUnitId | The work unit identifier. |
string | containerName | Name of the container. |
Returns
Type | Description |
---|---|
Uri | A container URI with a valid SAS token. |
GetWorkItemStorageContainerUriAsync(string, string, string)
Gets the work item storage container URI with access (SAS) token.
Declaration
Task<Uri> GetWorkItemStorageContainerUriAsync(string jobId, string workUnitId, string containerName)
Parameters
Type | Name | Description |
---|---|---|
string | jobId | The job identifier. |
string | workUnitId | The work unit identifier. |
string | containerName | Name of the container. |
Returns
Type | Description |
---|---|
Task<Uri> | A container URI with a valid SAS token. |
GetWorkItemStorageInfo(string, string)
Gets storage information for all work items in the given job.
Declaration
IEnumerable<WorkItemStorageInfo> GetWorkItemStorageInfo(string jobId, string containerName)
Parameters
Type | Name | Description |
---|---|---|
string | jobId | The job identifier. |
string | containerName | Name of the container. |
Returns
Type | Description |
---|---|
IEnumerable<WorkItemStorageInfo> | A collection of WorkItemStorageInfo, one for each work unit in the job, containing container URIs with a valid SAS tokens. |
Remarks
The returned storage information contains storage container URIs, with access (SAS) token to access the storage container that contains the result files from the work item. Only work items that have uploaded results to Result Lake will be listed.
GetWorkItemStorageInfoAsync(string, string)
Gets storage information for all work items in the given job.
Declaration
Task<IEnumerable<WorkItemStorageInfo>> GetWorkItemStorageInfoAsync(string jobId, string containerName)
Parameters
Type | Name | Description |
---|---|---|
string | jobId | The job identifier. |
string | containerName | Name of the container. |
Returns
Type | Description |
---|---|
Task<IEnumerable<WorkItemStorageInfo>> | A collection of WorkItemStorageInfo, one for each work unit in the job, containing container URIs with a valid SAS tokens. |
Remarks
The returned storage information contains storage container URIs, with access (SAS) token to access the storage container that contains the result files from the work item. Only work items that have uploaded results to Result Lake will be listed.