|
|
|
@@ -38,6 +38,8 @@ import { JobDefinitionUpdateRequest } from '../model/jobDefinitionUpdateRequest'
|
|
|
|
|
import { JobRun } from '../model/jobRun';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { JobRunLogs } from '../model/jobRunLogs';
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { RegistryHealth } from '../model/registryHealth';
|
|
|
|
|
|
|
|
|
|
// @ts-ignore
|
|
|
|
|
import { BASE_PATH, COLLECTION_FORMATS } from '../variables';
|
|
|
|
@@ -856,6 +858,110 @@ export class BackgroundJobsService extends BaseService {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Registry Health
|
|
|
|
|
* @endpoint get /api/background-jobs/registry-health
|
|
|
|
|
* @param secureFgpAcc
|
|
|
|
|
* @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 getBackgroundJobsRegistryHealth(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'body',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<RegistryHealth>;
|
|
|
|
|
public getBackgroundJobsRegistryHealth(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'response',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpResponse<RegistryHealth>>;
|
|
|
|
|
public getBackgroundJobsRegistryHealth(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe?: 'events',
|
|
|
|
|
reportProgress?: boolean,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<HttpEvent<RegistryHealth>>;
|
|
|
|
|
public getBackgroundJobsRegistryHealth(
|
|
|
|
|
secureFgpAcc?: string,
|
|
|
|
|
observe: any = 'body',
|
|
|
|
|
reportProgress: boolean = false,
|
|
|
|
|
options?: {
|
|
|
|
|
httpHeaderAccept?: 'application/json';
|
|
|
|
|
context?: HttpContext;
|
|
|
|
|
transferCache?: boolean;
|
|
|
|
|
},
|
|
|
|
|
): Observable<any> {
|
|
|
|
|
let localVarHeaders = this.defaultHeaders;
|
|
|
|
|
|
|
|
|
|
// authentication (HTTPBearer) required
|
|
|
|
|
localVarHeaders = this.configuration.addCredentialToHeaders(
|
|
|
|
|
'HTTPBearer',
|
|
|
|
|
'Authorization',
|
|
|
|
|
localVarHeaders,
|
|
|
|
|
'Bearer ',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const localVarHttpHeaderAcceptSelected: string | undefined =
|
|
|
|
|
options?.httpHeaderAccept ??
|
|
|
|
|
this.configuration.selectHeaderAccept(['application/json']);
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
|
|
|
localVarHeaders = localVarHeaders.set(
|
|
|
|
|
'Accept',
|
|
|
|
|
localVarHttpHeaderAcceptSelected,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localVarHttpContext: HttpContext =
|
|
|
|
|
options?.context ?? new HttpContext();
|
|
|
|
|
|
|
|
|
|
const localVarTransferCache: boolean = options?.transferCache ?? true;
|
|
|
|
|
|
|
|
|
|
let responseType_: 'text' | 'json' | 'blob' = 'json';
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected) {
|
|
|
|
|
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
|
|
|
responseType_ = 'text';
|
|
|
|
|
} else if (
|
|
|
|
|
this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)
|
|
|
|
|
) {
|
|
|
|
|
responseType_ = 'json';
|
|
|
|
|
} else {
|
|
|
|
|
responseType_ = 'blob';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let localVarPath = `/api/background-jobs/registry-health`;
|
|
|
|
|
const { basePath, withCredentials } = this.configuration;
|
|
|
|
|
return this.httpClient.request<RegistryHealth>(
|
|
|
|
|
'get',
|
|
|
|
|
`${basePath}${localVarPath}`,
|
|
|
|
|
{
|
|
|
|
|
context: localVarHttpContext,
|
|
|
|
|
responseType: <any>responseType_,
|
|
|
|
|
...(withCredentials ? { withCredentials } : {}),
|
|
|
|
|
headers: localVarHeaders,
|
|
|
|
|
observe: observe,
|
|
|
|
|
...(localVarTransferCache !== undefined
|
|
|
|
|
? { transferCache: localVarTransferCache }
|
|
|
|
|
: {}),
|
|
|
|
|
reportProgress: reportProgress,
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Run Task
|
|
|
|
|
* @endpoint post /api/background-jobs/tasks/{task_id}/run
|
|
|
|
|