teraslice-client-js / ex / default
Class: default
Extends
Constructors
new default()
new default(
config
,exId
):default
Parameters
Parameter | Type |
---|---|
config | ClientConfig |
exId | string |
Returns
Overrides
Source
Properties
_config
protected
readonly
_config:ClientConfig
Inherited from
Source
Methods
changeWorkers()
changeWorkers(
action
,workerNum
,requestOptions
):Promise
<string
|ChangeWorkerResponse
>
Parameters
Parameter | Type |
---|---|
action | ChangeWorkerQueryParams |
workerNum | number |
requestOptions | Partial <default > |
Returns
Promise
<string
| ChangeWorkerResponse
>
Source
config()
config(
requestOptions
):Promise
<ExecutionConfig
>
Parameters
Parameter | Type |
---|---|
requestOptions | Partial <default > |
Returns
Promise
<ExecutionConfig
>
Source
controller()
controller(
requestOptions
):Promise
<ExecutionList
>
Parameters
Parameter | Type |
---|---|
requestOptions | Partial <default > |
Returns
Promise
<ExecutionList
>
Source
delete()
delete<
T
>(endpoint
,options
?):Promise
<T
>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
endpoint | string |
options ? | Partial <default > |
Returns
Promise
<T
>
Inherited from
Source
errors()
errors(
options
?):Promise
<ErrorRecord
[]>
Parameters
Parameter | Type |
---|---|
options ? | SearchQuery |
Returns
Promise
<ErrorRecord
[]>
Source
get()
get<
T
>(endpoint
,options
?):Promise
<T
>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
endpoint | string |
options ? | Partial <default > |
Returns
Promise
<T
>
Inherited from
Source
id()
id():
string
Returns
string
Source
makeOptions()
protected
makeOptions(searchParams
,options
):Partial
<default
>
Parameters
Parameter | Type |
---|---|
searchParams | undefined | Record <string , any > |
options | Partial <default > |
Returns
Partial
<default
>
Inherited from
Source
parse()
protected
parse(results
):any
Parameters
Parameter | Type |
---|---|
results | unknown |
Returns
any
Inherited from
Source
pause()
pause(
query
?,searchOptions
?):Promise
<ApiPausedResponse
>
Parameters
Parameter | Type |
---|---|
query ? | SearchQuery |
searchOptions ? | Partial <default > |
Returns
Promise
<ApiPausedResponse
>
Source
post()
post<
T
>(endpoint
,data
?,options
?):Promise
<T
>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
endpoint | string |
data ? | unknown |
options ? | Partial <default > |
Returns
Promise
<T
>
Inherited from
Source
put()
put<
T
>(endpoint
,data
,options
?):Promise
<T
>
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
endpoint | string |
data | unknown |
options ? | Partial <default > |
Returns
Promise
<T
>
Inherited from
Source
recover()
recover(
query
,searchOptions
):Promise
<default
>
Parameters
Parameter | Type |
---|---|
query | RecoverQuery |
searchOptions | Partial <default > |
Returns
Promise
<default
>
Source
resume()
resume(
query
?,searchOptions
?):Promise
<ApiResumeResponse
>
Parameters
Parameter | Type |
---|---|
query ? | SearchQuery |
searchOptions ? | Partial <default > |
Returns
Promise
<ApiResumeResponse
>
Source
slicer()
slicer(
requestOptions
):Promise
<ExecutionList
>
Parameters
Parameter | Type |
---|---|
requestOptions | Partial <default > |
Returns
Promise
<ExecutionList
>
Source
status()
status(
requestOptions
?):Promise
<"pending"
|"scheduling"
|"initializing"
|"running"
|"recovering"
|"failing"
|"paused"
|"stopping"
|"completed"
|"stopped"
|"rejected"
|"failed"
|"terminated"
>
Parameters
Parameter | Type |
---|---|
requestOptions ? | Partial <default > |
Returns
Promise
<"pending"
| "scheduling"
| "initializing"
| "running"
| "recovering"
| "failing"
| "paused"
| "stopping"
| "completed"
| "stopped"
| "rejected"
| "failed"
| "terminated"
>
Source
stop()
stop(
query
?,searchOptions
?):Promise
<ApiStoppedResponse
>
Parameters
Parameter | Type |
---|---|
query ? | StopQuery |
searchOptions ? | Partial <default > |
Returns
Promise
<ApiStoppedResponse
>
Source
waitForStatus()
waitForStatus(
target
,intervalMs
,timeoutMs
,requestOptions
):Promise
<"pending"
|"scheduling"
|"initializing"
|"running"
|"recovering"
|"failing"
|"paused"
|"stopping"
|"completed"
|"stopped"
|"rejected"
|"failed"
|"terminated"
>
Parameters
Parameter | Type | Default value |
---|---|---|
target | "pending" | "scheduling" | "initializing" | "running" | "recovering" | "failing" | "paused" | "stopping" | "completed" | "stopped" | "rejected" | "failed" | "terminated" | undefined |
intervalMs | number | 1000 |
timeoutMs | number | 0 |
requestOptions | Partial <default > | {} |
Returns
Promise
<"pending"
| "scheduling"
| "initializing"
| "running"
| "recovering"
| "failing"
| "paused"
| "stopping"
| "completed"
| "stopped"
| "rejected"
| "failed"
| "terminated"
>
Source
workers()
workers(
requestOptions
):Promise
<WorkerNode
[]>
Parameters
Parameter | Type |
---|---|
requestOptions | Partial <default > |
Returns
Promise
<WorkerNode
[]>