2024-02-22 08:30:51 +00:00
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
2022-03-15 13:46:26 +00:00
|
|
|
/**
|
|
|
|
* pipelines
|
|
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
|
|
*
|
|
|
|
* OpenAPI spec version: 999.0
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* NOTE: This class is auto generated by the swagger code generator program.
|
|
|
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
|
|
* Do not edit the class manually.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/member-ordering */
|
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
import { HTTP } from "../../app.constants";
|
|
|
|
import { SmApiRequestsService } from "./api-requests.service";
|
|
|
|
|
|
|
|
import { Inject, Injectable, Optional } from "@angular/core";
|
|
|
|
import {
|
|
|
|
HttpClient,
|
|
|
|
HttpHeaders,
|
|
|
|
HttpParams,
|
|
|
|
HttpResponse,
|
|
|
|
HttpEvent,
|
|
|
|
} from "@angular/common/http";
|
|
|
|
import { CustomHttpUrlEncodingCodec } from "../encoder";
|
|
|
|
|
|
|
|
import { Observable } from "rxjs";
|
|
|
|
|
|
|
|
import { PipelinesStartPipelineRequest } from "../model/pipelines/pipelinesStartPipelineRequest";
|
|
|
|
import { PipelinesStartPipelineResponse } from "../model/pipelines/pipelinesStartPipelineResponse";
|
|
|
|
|
|
|
|
import { BASE_PATH, COLLECTION_FORMATS } from "../variables";
|
|
|
|
import { Configuration } from "../configuration";
|
|
|
|
import { PipelinesDeleteRunsRequest } from "~/business-logic/model/pipelines/pipelinesDeleteRunsRequest";
|
|
|
|
import { PipelinesDeleteRunsResponse } from "~/business-logic/model/pipelines/pipelinesDeleteRunsResponse";
|
2024-02-22 08:29:44 +00:00
|
|
|
import {
|
|
|
|
PipelinesCreateRequest,
|
|
|
|
PipelinesCreateResponse,
|
|
|
|
PipelinesCreateStepsRequest,
|
2024-02-22 08:41:14 +00:00
|
|
|
PipelinesCreateStepsResponse, pipelinesSettingsModel,
|
2024-02-22 08:29:44 +00:00
|
|
|
PipelinesGetByIdRequest,
|
|
|
|
PipelinesGetByIdResponse,
|
|
|
|
PipelinesUpdateRequest,
|
|
|
|
PipelinesUpdateResponse,
|
2024-02-27 13:03:10 +00:00
|
|
|
PipelinesCompileRequest,
|
|
|
|
PipelinesRunRequest,
|
2024-02-28 17:35:38 +00:00
|
|
|
PipelinesUpdateStepsRequest,
|
2024-02-22 08:29:44 +00:00
|
|
|
} from "../model/pipelines/models";
|
2022-03-15 13:46:26 +00:00
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
@Injectable()
|
|
|
|
export class ApiPipelinesService {
|
|
|
|
protected basePath = HTTP.API_BASE_URL;
|
|
|
|
public defaultHeaders = new HttpHeaders();
|
|
|
|
public configuration = new Configuration();
|
|
|
|
|
|
|
|
constructor(
|
|
|
|
protected apiRequest: SmApiRequestsService,
|
|
|
|
@Optional() @Inject(BASE_PATH) basePath: string,
|
|
|
|
@Optional() configuration: Configuration
|
|
|
|
) {
|
|
|
|
if (basePath) {
|
|
|
|
this.basePath = basePath;
|
|
|
|
}
|
|
|
|
if (configuration) {
|
|
|
|
this.configuration = configuration;
|
|
|
|
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param consumes string[] mime-types
|
|
|
|
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
|
|
*/
|
|
|
|
private canConsumeForm(consumes: string[]): boolean {
|
|
|
|
const form = "multipart/form-data";
|
|
|
|
for (const consume of consumes) {
|
|
|
|
if (form === consume) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Delete pipeline runs
|
|
|
|
* @param request request body
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
*/
|
|
|
|
public pipelinesDeleteRuns(
|
|
|
|
request: PipelinesDeleteRunsRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesDeleteRuns."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
2022-03-15 13:46:26 +00:00
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
2022-03-15 13:46:26 +00:00
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
|
|
|
}
|
2022-03-15 13:46:26 +00:00
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
return this.apiRequest.post<PipelinesDeleteRunsResponse>(
|
|
|
|
`${this.basePath}/pipelines.delete_runs`,
|
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Start a pipeline
|
|
|
|
* @param request request body
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
*/
|
|
|
|
public pipelinesStartPipeline(
|
|
|
|
request: PipelinesStartPipelineRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesStartPipeline."
|
|
|
|
);
|
|
|
|
}
|
2022-03-15 13:46:26 +00:00
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
2022-03-15 13:46:26 +00:00
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
2022-03-15 13:46:26 +00:00
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
2022-03-15 13:46:26 +00:00
|
|
|
}
|
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
return this.apiRequest.post<PipelinesStartPipelineResponse>(
|
|
|
|
`${this.basePath}/pipelines.start_pipeline`,
|
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Create a new pipeline
|
|
|
|
* @param request request body
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
*/
|
|
|
|
public pipelinesCreate(
|
|
|
|
request: PipelinesCreateRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesCreate."
|
|
|
|
);
|
2022-03-15 13:46:26 +00:00
|
|
|
}
|
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
2023-08-02 12:35:38 +00:00
|
|
|
}
|
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
2022-03-15 13:46:26 +00:00
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
2022-03-15 13:46:26 +00:00
|
|
|
}
|
|
|
|
|
2024-02-12 15:26:36 +00:00
|
|
|
return this.apiRequest.post<PipelinesCreateResponse>(
|
2024-02-22 08:29:44 +00:00
|
|
|
`${this.basePath}/pipelines.create_pipeline`,
|
2024-02-12 15:26:36 +00:00
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2024-02-14 19:57:39 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Create a new pipeline step
|
|
|
|
* @param request request body
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
*/
|
|
|
|
|
|
|
|
public pipelinesCreateStep(
|
|
|
|
request: PipelinesCreateStepsRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesCreate."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.apiRequest.post<PipelinesCreateStepsResponse>(
|
2024-02-22 08:29:44 +00:00
|
|
|
`${this.basePath}/pipelines.create_step`,
|
2024-02-14 19:57:39 +00:00
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2024-02-28 17:35:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Update pipeline step
|
|
|
|
* @param request request body
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
*/
|
|
|
|
|
|
|
|
public pipelinesUpdateStep(
|
|
|
|
request: PipelinesUpdateStepsRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesUpdateStep."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.apiRequest.post<any>(
|
|
|
|
`${this.basePath}/pipelines.update_node`,
|
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-02-22 08:30:51 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Create a new pipeline step
|
|
|
|
* @param request request body
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
*/
|
|
|
|
|
|
|
|
public pipelinesSettingCall(
|
|
|
|
request: pipelinesSettingsModel,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesCreate."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.apiRequest.post<pipelinesSettingsModel>(
|
|
|
|
`${this.basePath}/pipelines.settings`,
|
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2024-02-14 19:57:39 +00:00
|
|
|
|
2024-02-22 08:29:44 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* Update pipeline information
|
|
|
|
* @param request request body
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
*/
|
|
|
|
public pipelinesUpdate(
|
|
|
|
request: PipelinesUpdateRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
2024-02-27 13:03:10 +00:00
|
|
|
"Required parameter request was null or undefined when calling pipelinesUpdate."
|
2024-02-22 08:29:44 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.apiRequest.post<PipelinesUpdateResponse>(
|
|
|
|
`${this.basePath}/pipelines.update_pipeline`,
|
|
|
|
{...request, pipeline_id: request.id},
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-02-27 13:03:10 +00:00
|
|
|
|
|
|
|
public pipelinesCompile(
|
|
|
|
request: PipelinesCompileRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesCompile."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.apiRequest.post<unknown>(
|
|
|
|
`${this.basePath}/pipelines.compile`,
|
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public pipelinesRun(
|
|
|
|
request: PipelinesRunRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesRun."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.apiRequest.post<unknown>(
|
|
|
|
`${this.basePath}/pipelines.run`,
|
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-02-22 08:29:44 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param request request body
|
|
|
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
|
|
* @param reportProgress flag to report request and response progress.
|
|
|
|
*/
|
|
|
|
public pipelinesGetById(
|
|
|
|
request: PipelinesGetByIdRequest,
|
|
|
|
options?: any,
|
|
|
|
observe: any = "body",
|
|
|
|
reportProgress: boolean = false
|
|
|
|
): Observable<any> {
|
|
|
|
if (request === null || request === undefined) {
|
|
|
|
throw new Error(
|
|
|
|
"Required parameter request was null or undefined when calling pipelinesGetById."
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
let headers = this.defaultHeaders;
|
|
|
|
if (options && options.async_enable) {
|
|
|
|
headers = headers.set(this.configuration.asyncHeader, "1");
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Accept header
|
|
|
|
const httpHeaderAccepts: string[] = ["application/json"];
|
|
|
|
const httpHeaderAcceptSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
|
|
if (httpHeaderAcceptSelected != undefined) {
|
|
|
|
headers = headers.set("Accept", httpHeaderAcceptSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
// to determine the Content-Type header
|
|
|
|
const consumes: string[] = [];
|
|
|
|
const httpContentTypeSelected: string | undefined =
|
|
|
|
this.configuration.selectHeaderContentType(consumes);
|
|
|
|
if (httpContentTypeSelected != undefined) {
|
|
|
|
headers = headers.set("Content-Type", httpContentTypeSelected);
|
|
|
|
}
|
|
|
|
|
|
|
|
return this.apiRequest.post<PipelinesGetByIdResponse>(
|
|
|
|
`${this.basePath}/pipelines.get_by_id`,
|
|
|
|
request,
|
|
|
|
{
|
|
|
|
withCredentials: this.configuration.withCredentials,
|
|
|
|
headers: headers,
|
|
|
|
observe: observe,
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|
2022-03-15 13:46:26 +00:00
|
|
|
}
|