API client: draw-only option for Automático
This commit is contained in:
+11
-1
@@ -3177,7 +3177,7 @@
|
|||||||
},
|
},
|
||||||
"/ingest/pipelines/{pipeline_id}/draft": {
|
"/ingest/pipelines/{pipeline_id}/draft": {
|
||||||
"post": {
|
"post": {
|
||||||
"description": "Autom\u00e1tico: starts the `draft` job, which draws the whole pipeline from its saved\nsources (the only nodes it may hold), saves it as a new version and runs it; follow it\nat /runs/{run_id}.",
|
"description": "Autom\u00e1tico: starts the `draft` job, which draws the whole pipeline from its saved\nsources (the only nodes it may hold), saves it as a new version and runs it (`run`\nfalse: drawn and saved only); follow it at /runs/{run_id}.",
|
||||||
"operationId": "start_draft",
|
"operationId": "start_draft",
|
||||||
"parameters": [
|
"parameters": [
|
||||||
{
|
{
|
||||||
@@ -3190,6 +3190,16 @@
|
|||||||
"title": "Pipeline Id",
|
"title": "Pipeline Id",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "run",
|
||||||
|
"required": false,
|
||||||
|
"schema": {
|
||||||
|
"default": true,
|
||||||
|
"title": "Run",
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import { RequestBuilder } from '../../request-builder';
|
|||||||
|
|
||||||
export interface StartDraft$Params {
|
export interface StartDraft$Params {
|
||||||
pipeline_id: string;
|
pipeline_id: string;
|
||||||
|
run?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function startDraft(http: HttpClient, rootUrl: string, params: StartDraft$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
export function startDraft(http: HttpClient, rootUrl: string, params: StartDraft$Params, context?: HttpContext): Observable<StrictHttpResponse<{
|
||||||
@@ -18,6 +19,7 @@ export function startDraft(http: HttpClient, rootUrl: string, params: StartDraft
|
|||||||
const rb = new RequestBuilder(rootUrl, startDraft.PATH, 'post');
|
const rb = new RequestBuilder(rootUrl, startDraft.PATH, 'post');
|
||||||
if (params) {
|
if (params) {
|
||||||
rb.path('pipeline_id', params.pipeline_id, {});
|
rb.path('pipeline_id', params.pipeline_id, {});
|
||||||
|
rb.query('run', params.run, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
return http.request(
|
return http.request(
|
||||||
|
|||||||
Reference in New Issue
Block a user