teraslice-client-js / jobs / default
Class: default
Extends
Constructors
new default()
new default(
config
):default
Parameters
Parameter | Type |
---|---|
config | ClientConfig |
Returns
Overrides
Source
Properties
_config
protected
readonly
_config:ClientConfig
Inherited from
Source
Methods
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
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
list()
list(
query
?,searchOptions
?):Promise
<JobConfig
[]>
Parameters
Parameter | Type |
---|---|
query ? | JobSearchParams |
searchOptions ? | Partial <default > |
Returns
Promise
<JobConfig
[]>
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
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
submit()
submit(
jobSpec
,shouldNotStart
?):Promise
<default
>
Parameters
Parameter | Type |
---|---|
jobSpec | JobConfigParams |
shouldNotStart ? | boolean |
Returns
Promise
<default
>
Source
wrap()
wrap(
jobId
):default
Wraps the job_id with convenience functions for accessing the state on the server.
Parameters
Parameter | Type |
---|---|
jobId | string |