ParallelModelClient
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
readonlyblobClient:ParallelModelBlobClient
Defined in: client.ts:26
SDK client for blob operations.
clusterClient
readonlyclusterClient:ParallelModelClusterClient
Defined in: client.ts:46
SDK client for cluster operations.
datasetClient
readonlydatasetClient:ParallelModelDatasetClient
Defined in: client.ts:54
SDK client for dataset operations.
decompositionClient
readonlydecompositionClient:ParallelModelDecompositionClient
Defined in: client.ts:36
SDK client for decomposition operations.
defaultParallelModelAuthentication
readonlydefaultParallelModelAuthentication:DefaultParallelModelAuthentication
Defined in: client.ts:22
Default Parallel Model Authentication value for this contract.
ensembleClient
readonlyensembleClient:ParallelModelEnsembleClient
Defined in: client.ts:58
SDK client for ensemble operations.
featureExtractionClient
readonlyfeatureExtractionClient:ParallelModelFeatureExtractionClient
Defined in: client.ts:44
SDK client for feature extraction operations.
featureSelectionClient
readonlyfeatureSelectionClient:ParallelModelFeatureSelectionClient
Defined in: client.ts:38
SDK client for feature selection operations.
gaussianProcessClient
readonlygaussianProcessClient:ParallelModelGaussianProcessClient
Defined in: client.ts:62
SDK client for gaussian process operations.
imputeClient
readonlyimputeClient:ParallelModelImputeClient
Defined in: client.ts:40
SDK client for impute operations.
isotonicClient
readonlyisotonicClient:ParallelModelIsotonicClient
Defined in: client.ts:60
SDK client for isotonic operations.
kernelRidgeClient
readonlykernelRidgeClient:ParallelModelKernelRidgeClient
Defined in: client.ts:68
SDK client for kernel ridge operations.
linearModelClient
readonlylinearModelClient:ParallelModelLinearModelClient
Defined in: client.ts:42
SDK client for linear model operations.
modelClient
readonlymodelClient:ParallelModelModelClient
Defined in: client.ts:24
SDK client for model operations.
modelSelectionClient
readonlymodelSelectionClient:ParallelModelModelSelectionClient
Defined in: client.ts:52
SDK client for model selection operations.
naiveBayesClient
readonlynaiveBayesClient:ParallelModelNaiveBayesClient
Defined in: client.ts:56
SDK client for naive bayes operations.
neighborsClient
readonlyneighborsClient:ParallelModelNeighborsClient
Defined in: client.ts:32
SDK client for neighbors operations.
neuralNetworkClient
readonlyneuralNetworkClient:ParallelModelNeuralNetworkClient
Defined in: client.ts:66
SDK client for neural network operations.
pipelineClient
readonlypipelineClient:ParallelModelPipelineClient
Defined in: client.ts:30
SDK client for pipeline operations.
predictClient
readonlypredictClient:ParallelModelPredictClient
Defined in: client.ts:28
SDK client for predict operations.
preprocessingClient
readonlypreprocessingClient:ParallelModelPreprocessingClient
Defined in: client.ts:48
SDK client for preprocessing operations.
randomProjectionClient
readonlyrandomProjectionClient:ParallelModelRandomProjectionClient
Defined in: client.ts:34
SDK client for random projection operations.
svmClient
readonlysvmClient:ParallelModelSvmClient
Defined in: client.ts:50
SDK client for svm operations.
transport
readonlytransport:Transport
Defined in: client.ts:20
Shared HTTP transport and authentication context.
treeClient
readonlytreeClient: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?
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?
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?
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?
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?
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?
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.