Client: run outputs
This commit is contained in:
@@ -1408,6 +1408,18 @@
|
|||||||
"title": "Job",
|
"title": "Job",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"outputs": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"additionalProperties": true,
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"title": "Outputs"
|
||||||
|
},
|
||||||
"progress": {
|
"progress": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
@@ -3875,6 +3887,16 @@
|
|||||||
"title": "Run Id",
|
"title": "Run Id",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "outputs",
|
||||||
|
"required": false,
|
||||||
|
"schema": {
|
||||||
|
"default": false,
|
||||||
|
"title": "Outputs",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|||||||
@@ -11,12 +11,14 @@ import { Run } from '../../models/run';
|
|||||||
|
|
||||||
export interface RunStatus$Params {
|
export interface RunStatus$Params {
|
||||||
run_id: string;
|
run_id: string;
|
||||||
|
outputs?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<Run>> {
|
export function runStatus(http: HttpClient, rootUrl: string, params: RunStatus$Params, context?: HttpContext): Observable<StrictHttpResponse<Run>> {
|
||||||
const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get');
|
const rb = new RequestBuilder(rootUrl, runStatus.PATH, 'get');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('run_id', params.run_id, {});
|
rb.path('run_id', params.run_id, {});
|
||||||
|
rb.query('outputs', params.outputs, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
return http.request(
|
return http.request(
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ export interface Run {
|
|||||||
id: string;
|
id: string;
|
||||||
info: Array<string>;
|
info: Array<string>;
|
||||||
job: string;
|
job: string;
|
||||||
|
outputs?: ({
|
||||||
|
[key: string]: any;
|
||||||
|
} | null);
|
||||||
progress: (Progress | null);
|
progress: (Progress | null);
|
||||||
started: (number | null);
|
started: (number | null);
|
||||||
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
state: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelling' | 'cancelled';
|
||||||
|
|||||||
Reference in New Issue
Block a user