Skip to main content

ParallelModelClient

ParallelModel TypeScript SDK


Class: ParallelModelClient

Defined in: client.ts:18

Main SDK entry point providing authentication, model management, blob storage, machine learning job clients and pipeline orchestration.

Example​

const client = new ParallelModelClient({
region: "uk1",
clientId: "<client-id>",
clientSecret: "<client-secret>"
});
await client.authenticateAsync();

Constructors​

Constructor​

new ParallelModelClient(options): ParallelModelClient

Defined in: client.ts:74

Creates a ParallelModelClient instance.

Parameters​

options​

DefaultParallelModelAuthenticationOptions

OAuth credentials, region and optional transport configuration.

Returns​

ParallelModelClient

Properties​

blobClient​

readonly blobClient: ParallelModelBlobClient

Defined in: client.ts:26

SDK client for blob operations.


clusterClient​

readonly clusterClient: ParallelModelClusterClient

Defined in: client.ts:46

SDK client for cluster operations.


datasetClient​

readonly datasetClient: ParallelModelDatasetClient

Defined in: client.ts:54

SDK client for dataset operations.


decompositionClient​

readonly decompositionClient: ParallelModelDecompositionClient

Defined in: client.ts:36

SDK client for decomposition operations.


defaultParallelModelAuthentication​

readonly defaultParallelModelAuthentication: DefaultParallelModelAuthentication

Defined in: client.ts:22

Default Parallel Model Authentication value for this contract.


ensembleClient​

readonly ensembleClient: ParallelModelEnsembleClient

Defined in: client.ts:58

SDK client for ensemble operations.


featureExtractionClient​

readonly featureExtractionClient: ParallelModelFeatureExtractionClient

Defined in: client.ts:44

SDK client for feature extraction operations.


featureSelectionClient​

readonly featureSelectionClient: ParallelModelFeatureSelectionClient

Defined in: client.ts:38

SDK client for feature selection operations.


gaussianProcessClient​

readonly gaussianProcessClient: ParallelModelGaussianProcessClient

Defined in: client.ts:62

SDK client for gaussian process operations.


imputeClient​

readonly imputeClient: ParallelModelImputeClient

Defined in: client.ts:40

SDK client for impute operations.


isotonicClient​

readonly isotonicClient: ParallelModelIsotonicClient

Defined in: client.ts:60

SDK client for isotonic operations.


kernelRidgeClient​

readonly kernelRidgeClient: ParallelModelKernelRidgeClient

Defined in: client.ts:68

SDK client for kernel ridge operations.


linearModelClient​

readonly linearModelClient: ParallelModelLinearModelClient

Defined in: client.ts:42

SDK client for linear model operations.


modelClient​

readonly modelClient: ParallelModelModelClient

Defined in: client.ts:24

SDK client for model operations.


modelSelectionClient​

readonly modelSelectionClient: ParallelModelModelSelectionClient

Defined in: client.ts:52

SDK client for model selection operations.


naiveBayesClient​

readonly naiveBayesClient: ParallelModelNaiveBayesClient

Defined in: client.ts:56

SDK client for naive bayes operations.


neighborsClient​

readonly neighborsClient: ParallelModelNeighborsClient

Defined in: client.ts:32

SDK client for neighbors operations.


neuralNetworkClient​

readonly neuralNetworkClient: ParallelModelNeuralNetworkClient

Defined in: client.ts:66

SDK client for neural network operations.


pipelineClient​

readonly pipelineClient: ParallelModelPipelineClient

Defined in: client.ts:30

SDK client for pipeline operations.


predictClient​

readonly predictClient: ParallelModelPredictClient

Defined in: client.ts:28

SDK client for predict operations.


preprocessingClient​

readonly preprocessingClient: ParallelModelPreprocessingClient

Defined in: client.ts:48

SDK client for preprocessing operations.


randomProjectionClient​

readonly randomProjectionClient: ParallelModelRandomProjectionClient

Defined in: client.ts:34

SDK client for random projection operations.


svmClient​

readonly svmClient: ParallelModelSvmClient

Defined in: client.ts:50

SDK client for svm operations.


transport​

readonly transport: Transport

Defined in: client.ts:20

Shared HTTP transport and authentication context.


treeClient​

readonly treeClient: ParallelModelTreeClient

Defined in: client.ts:64

SDK client for tree operations.

Accessors​

region​

Get Signature​

get region(): string

Defined in: client.ts:96

Configured ParallelModel region.

Returns​

string

Methods​

authenticateAsync()​

authenticateAsync(signal?): Promise<string>

Defined in: client.ts:103

Obtains an OAuth access token, reusing the cached token when valid.

Parameters​

signal?​

AbortSignal

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

Returns​

Promise<string>

The OAuth bearer access token.


deleteAsync()​

deleteAsync<T>(endpoint, query?, headers?, timeout?, signal?): Promise<ParallelModelResponse<T>>

Defined in: client.ts:180

Sends an HTTP DELETE request.

Type Parameters​

T​

T = unknown

Type of the decoded response or algorithm parameter object, as specified by the signature.

Parameters​

endpoint​

string

Relative API endpoint path.

query?​

Query

Optional query-string parameters appended to the endpoint.

headers?​

HeadersInit

HTTP headers associated with the request or response.

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<ParallelModelResponse<T>>

The decoded HTTP response envelope.


getAsync()​

getAsync<T>(endpoint, query?, headers?, timeout?, signal?): Promise<ParallelModelResponse<T>>

Defined in: client.ts:142

Retrieves a resource with an HTTP GET request.

Type Parameters​

T​

T = unknown

Type of the decoded response or algorithm parameter object, as specified by the signature.

Parameters​

endpoint​

string

Relative API endpoint path.

query?​

Query

Optional query-string parameters appended to the endpoint.

headers?​

HeadersInit

HTTP headers associated with the request or response.

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<ParallelModelResponse<T>>

The decoded HTTP response envelope.


postAsync()​

postAsync<T>(endpoint, payload?, query?, headers?, timeout?, signal?): Promise<ParallelModelResponse<T>>

Defined in: client.ts:155

Sends an HTTP POST request to the core API.

Type Parameters​

T​

T = unknown

Type of the decoded response or algorithm parameter object, as specified by the signature.

Parameters​

endpoint​

string

Relative API endpoint path.

payload?​

unknown

Request data serialized as JSON unless it is FormData.

query?​

Query

Optional query-string parameters appended to the endpoint.

headers?​

HeadersInit

HTTP headers associated with the request or response.

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<ParallelModelResponse<T>>

The decoded HTTP response envelope.


putAsync()​

putAsync<T>(endpoint, payload?, query?, headers?, timeout?, signal?): Promise<ParallelModelResponse<T>>

Defined in: client.ts:168

Sends an HTTP PUT request to the core API.

Type Parameters​

T​

T = unknown

Type of the decoded response or algorithm parameter object, as specified by the signature.

Parameters​

endpoint​

string

Relative API endpoint path.

payload?​

unknown

Request data serialized as JSON unless it is FormData.

query?​

Query

Optional query-string parameters appended to the endpoint.

headers?​

HeadersInit

HTTP headers associated with the request or response.

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<ParallelModelResponse<T>>

The decoded HTTP response envelope.


sendAsync()​

sendAsync<T>(method, endpoint, payload?, query?, headers?, timeout?, signal?): Promise<ParallelModelResponse<T>>

Defined in: client.ts:117

Sends an authenticated request to the core API and returns the decoded response envelope.

Type Parameters​

T​

T = unknown

Type of the decoded response or algorithm parameter object, as specified by the signature.

Parameters​

method​

string

HTTP method used for the request.

endpoint​

string

Relative API endpoint path.

payload?​

unknown

Request data serialized as JSON unless it is FormData.

query?​

Query

Optional query-string parameters appended to the endpoint.

headers?​

HeadersInit

HTTP headers associated with the request or response.

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<ParallelModelResponse<T>>

The decoded HTTP response envelope.


sendAuthApiAsync()​

sendAuthApiAsync<T>(method, endpoint, payload?, query?, timeout?, signal?): Promise<ParallelModelResponse<T>>

Defined in: client.ts:130

Sends an authenticated request to the authentication API and returns the decoded response envelope.

Type Parameters​

T​

T = unknown

Type of the decoded response or algorithm parameter object, as specified by the signature.

Parameters​

method​

string

HTTP method used for the request.

endpoint​

string

Relative API endpoint path.

payload?​

unknown

Request data serialized as JSON unless it is FormData.

query?​

Query

Optional query-string parameters appended to the endpoint.

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<ParallelModelResponse<T>>

The decoded HTTP response envelope.