Skip to main content

ParallelModelClusterClient

ParallelModel TypeScript SDK


Class: ParallelModelClusterClient

Defined in: jobs.ts:296

Client for submitting Cluster jobs and accessing their lifecycle operations and artifacts.

Remarks​

Train-only overloads take a training and output key. Train/test overloads also require a test key.

Extends​

Constructors​

Constructor​

new ParallelModelClusterClient(transport): ParallelModelClusterClient

Defined in: jobs.ts:306

Creates a ParallelModelClusterClient instance.

Parameters​

transport​

Transport

Shared HTTP transport and authentication context.

Returns​

ParallelModelClusterClient

Overrides​

ArtifactJobClient.constructor

Properties​

dataset​

readonly dataset: boolean = false

Defined in: jobs.ts:24

Whether to use dataset-specific result and artifact routes.

Inherited from​

ArtifactJobClient.dataset


eventType​

readonly eventType: string

Defined in: jobs.ts:24

Artifact event identifier; defaults to the job client's configured event type when applicable.

Inherited from​

ArtifactJobClient.eventType


module​

readonly module: string

Defined in: jobs.ts:24

API module or pipeline module identifier.

Inherited from​

ArtifactJobClient.module


typed​

readonly typed: boolean = false

Defined in: jobs.ts:24

Whether selected lifecycle responses receive additional decoding.

Inherited from​

ArtifactJobClient.typed

Methods​

cancelAsync()​

cancelAsync(modelId, jobId, computeSize, timeout?, signal?): Promise<unknown>

Defined in: jobs.ts:40

Requests cancellation of a remote job.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

computeSize​

string

Compute-size identifier used in the job request header.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<unknown>

The job cancellation response data.

Inherited from​

ArtifactJobClient.cancelAsync


downloadBytesAsync()​

downloadBytesAsync(modelId, jobId, blobId, computeSize, inputEncryptionKey, timeout?, signal?): Promise<Uint8Array<ArrayBuffer>>

Defined in: jobs.ts:78

Downloads a stored artifact or blob as a Uint8Array.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

blobId​

string

UUID of the stored blob.

computeSize​

string

Compute-size identifier used in the job request header.

inputEncryptionKey​

string

Base64-encoded 32-byte key for the input blob or job artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<Uint8Array<ArrayBuffer>>

The downloaded file contents as bytes.

Inherited from​

ArtifactJobClient.downloadBytesAsync


downloadToStreamAsync()​

downloadToStreamAsync(modelId, jobId, blobId, destination, computeSize, inputEncryptionKey, timeout?, signal?): Promise<void>

Defined in: jobs.ts:92

Streams a job artifact to a writable stream without closing the destination.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

blobId​

string

UUID of the stored blob.

destination​

WritableStream<Uint8Array<ArrayBufferLike>>

Writable stream receiving the downloaded bytes without being closed by the SDK.

computeSize​

string

Compute-size identifier used in the job request header.

inputEncryptionKey​

string

Base64-encoded 32-byte key for the input blob or job artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<void>

A promise that resolves when the stream transfer completes.

Inherited from​

ArtifactJobClient.downloadToStreamAsync


extractAsync()​

extractAsync(modelId, jobId, fileName, computeSize, inputEncryptionKey, outputEncryptionKey, eventType?, timeout?, signal?): Promise<ParallelModelClusterJobExtractResponseModel>

Defined in: jobs.ts:133

Extracts a file from a job artifact into a separately accessible blob.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

fileName​

string

File name or artifact name, depending on the operation.

computeSize​

string

Compute-size identifier used in the job request header.

inputEncryptionKey​

string

Base64-encoded 32-byte key for the input blob or job artifact.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

eventType?​

string = ...

Artifact event identifier; defaults to the job client's configured event type when applicable.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<ParallelModelClusterJobExtractResponseModel>

The artifact extraction response data.

Inherited from​

ArtifactJobClient.extractAsync


logAsync()​

logAsync(modelId, jobId, computeSize, timeout?, signal?): Promise<ParallelModelClusterJobLogResponseModel[]>

Defined in: jobs.ts:62

Retrieves logs emitted by the remote job.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

computeSize​

string

Compute-size identifier used in the job request header.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<ParallelModelClusterJobLogResponseModel[]>

The job log response data.

Inherited from​

ArtifactJobClient.logAsync


resultAsync()​

resultAsync(modelId, jobId, computeSize, inputEncryptionKey, eventType?, fileName?, timeout?, signal?): Promise<unknown>

Defined in: jobs.ts:118

Retrieves the result of a remote job.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

computeSize​

string

Compute-size identifier used in the job request header.

inputEncryptionKey​

string

Base64-encoded 32-byte key for the input blob or job artifact.

eventType?​

string = ...

Artifact event identifier; defaults to the job client's configured event type when applicable.

fileName?​

string = 'result.json'

File name or artifact name, depending on the operation.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<unknown>

The decoded job result response data.

Inherited from​

ArtifactJobClient.resultAsync


sendAsync()​

Submits a Cluster job using the supplied request, compute size and encryption keys.

Param​

modelId

UUID of the ParallelModel model that owns the resource.

Param​

request

Typed request payload for the operation.

Param​

computeSize

Compute-size identifier used in the job request header.

Param​

trainEncryptionKey

Base64-encoded 32-byte key for the training dataset.

Param​

secondKey

Test key for train/test requests, otherwise the output key.

Param​

outputOrTimeout

Output key for train/test requests, otherwise the request timeout.

Param​

timeoutOrSignal

Request timeout for train/test requests, otherwise an abort signal.

Param​

signal

Optional abort signal used to cancel local waiting or HTTP requests.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<AgglomerativeClusteringJobSendResponseModel>

Defined in: jobs.ts:321

Submits a Agglomerative Clustering job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

AgglomerativeClusteringJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<AgglomerativeClusteringJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<DBSCANJobSendResponseModel>

Defined in: jobs.ts:335

Submits a DBSCAN job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

DBSCANJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<DBSCANJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<HDBSCANJobSendResponseModel>

Defined in: jobs.ts:349

Submits a HDBSCAN job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

HDBSCANJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<HDBSCANJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<OPTICSJobSendResponseModel>

Defined in: jobs.ts:363

Submits a OPTICS job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

OPTICSJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<OPTICSJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<SpectralClusteringJobSendResponseModel>

Defined in: jobs.ts:377

Submits a Spectral Clustering job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

SpectralClusteringJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<SpectralClusteringJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, testEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<AffinityPropagationJobSendResponseModel>

Defined in: jobs.ts:392

Submits a Affinity Propagation job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

AffinityPropagationJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

testEncryptionKey​

string

Base64-encoded 32-byte key for the test dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<AffinityPropagationJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, testEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<BirchJobSendResponseModel>

Defined in: jobs.ts:407

Submits a Birch job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

BirchJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

testEncryptionKey​

string

Base64-encoded 32-byte key for the test dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<BirchJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, testEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<BisectingKMeansJobSendResponseModel>

Defined in: jobs.ts:422

Submits a Bisecting K Means job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

BisectingKMeansJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

testEncryptionKey​

string

Base64-encoded 32-byte key for the test dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<BisectingKMeansJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, testEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<KMeansJobSendResponseModel>

Defined in: jobs.ts:437

Submits a K Means job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

KMeansJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

testEncryptionKey​

string

Base64-encoded 32-byte key for the test dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<KMeansJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, testEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<MeanShiftJobSendResponseModel>

Defined in: jobs.ts:452

Submits a Mean Shift job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

MeanShiftJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

testEncryptionKey​

string

Base64-encoded 32-byte key for the test dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<MeanShiftJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.

Call Signature​

sendAsync(modelId, request, computeSize, trainEncryptionKey, testEncryptionKey, outputEncryptionKey, timeout?, signal?): Promise<MiniBatchKMeansJobSendResponseModel>

Defined in: jobs.ts:467

Submits a Mini Batch K Means job using the supplied request, compute size and encryption keys.

Parameters​
modelId​

string

UUID of the ParallelModel model that owns the resource.

request​

MiniBatchKMeansJobSendRequestModel

Typed request payload for the operation.

computeSize​

string

Compute-size identifier used in the job request header.

trainEncryptionKey​

string

Base64-encoded 32-byte key for the training dataset.

testEncryptionKey​

string

Base64-encoded 32-byte key for the test dataset.

outputEncryptionKey​

string

Base64-encoded 32-byte key for the output artifact.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<MiniBatchKMeansJobSendResponseModel>

Decoded job submission response; this does not wait for job completion.


statusAsync()​

statusAsync(modelId, jobId, computeSize, timeout?, signal?): Promise<ParallelModelClusterJobStatusResponseModel>

Defined in: jobs.ts:51

Retrieves the current status of a remote job.

Parameters​

modelId​

string

UUID of the ParallelModel model that owns the resource.

jobId​

string

UUID of the remote job.

computeSize​

string

Compute-size identifier used in the job request header.

timeout?​

number

HTTP request timeout in milliseconds; omit to use the transport default.

signal?​

AbortSignal

Optional abort signal used to cancel local waiting or HTTP requests.

Returns​

Promise<ParallelModelClusterJobStatusResponseModel>

The job status response data.

Inherited from​

ArtifactJobClient.statusAsync