Show / Hide Table of Contents

Interface IOneComputePlatformClient

Defines the client interface to the One Compute Platform.

Inherited Members
IJobSchedulingClient.SubmitJobAsync(Job, CancellationToken)
IJobSchedulingClient.SubmitJob(Job)
IJobSchedulingClient.CancelJobAsync(string)
IJobSchedulingClient.CancelJob(string)
IJobSchedulingClient.GetJobsAsync()
IJobSchedulingClient.GetJobs()
IJobSchedulingClient.GetJobStatusAsync(string)
IJobSchedulingClient.GetJobStatus(string)
IJobSchedulingClient.GetWorkItemInfoAsync(string)
IJobSchedulingClient.GetWorkItemInfo(string)
IJobSchedulingClient.GetJobPropertiesAsync()
IJobSchedulingClient.GetJobPropertiesInSegmentsAsync(string)
IJobSchedulingClient.GetJobProperties()
IJobSchedulingClient.GetJobPropertiesInSegments(string)
IJobSchedulingClient.GetJobPropertiesAsync(string)
IJobSchedulingClient.GetJobProperties(string)
IJobSchedulingClient.GetWorkItemPropertiesAsync(string)
IJobSchedulingClient.GetWorkItemProperties(string)
IJobSchedulingClient.GetWorkItemPropertiesAsync(string, string)
IJobSchedulingClient.GetWorkItemProperties(string, string)
IJobSchedulingClient.GetWorkItemInfoAsync(string, string)
IJobSchedulingClient.GetWorkItemInfo(string, string)
IJobSchedulingClient.GetWorkItemResultsAsync(string)
IJobSchedulingClient.GetWorkItemResults(string)
IJobSchedulingClient.GetWorkItemResultAsync(string, string)
IJobSchedulingClient.GetWorkItemResult(string, string)
Namespace: DNVGL.One.Compute.Core.PlatformClient
Assembly: DNVGL.One.Compute.Core.dll
Syntax
public interface IOneComputePlatformClient : IJobSchedulingClient

Methods

View Source

CreateBlobUris(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 blobPaths.

View Source

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 blobPaths.

View Source

DeleteJob(string)

Deletes a job.

Declaration
void DeleteJob(string jobId)
Parameters
Type Name Description
string jobId

The job id.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

View Source

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.

  • View Source
In this article
Back to top Copyright © DNV AS. All rights reserved.