@product-live/api-sdk 2.4.1 → 2.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DataFactoryFileApi.md +182 -0
- package/JobApi.md +333 -0
- package/JobExecutionApi.md +185 -0
- package/README.md +80 -0
- package/TaskApi.md +375 -0
- package/TaskExecutionApi.md +130 -0
- package/VariableApi.md +315 -0
- package/apis/DataFactoryFileApi.ts +252 -133
- package/apis/JobApi.ts +412 -208
- package/apis/JobExecutionApi.ts +237 -121
- package/apis/TaskApi.ts +458 -213
- package/apis/TaskExecutionApi.ts +174 -90
- package/apis/VariableApi.ts +418 -149
- package/apis/baseapi.ts +37 -0
- package/apis/exception.ts +15 -0
- package/auth/auth.ts +107 -0
- package/configuration.ts +82 -0
- package/dist/apis/DataFactoryFileApi.d.ts +14 -19
- package/dist/apis/DataFactoryFileApi.js +340 -103
- package/dist/apis/DataFactoryFileApi.js.map +1 -1
- package/dist/apis/JobApi.d.ts +19 -31
- package/dist/apis/JobApi.js +524 -171
- package/dist/apis/JobApi.js.map +1 -1
- package/dist/apis/JobExecutionApi.d.ts +14 -18
- package/dist/apis/JobExecutionApi.js +320 -88
- package/dist/apis/JobExecutionApi.js.map +1 -1
- package/dist/apis/TaskApi.d.ts +22 -34
- package/dist/apis/TaskApi.js +584 -171
- package/dist/apis/TaskApi.js.map +1 -1
- package/dist/apis/TaskExecutionApi.d.ts +11 -13
- package/dist/apis/TaskExecutionApi.js +242 -62
- package/dist/apis/TaskExecutionApi.js.map +1 -1
- package/dist/apis/VariableApi.d.ts +20 -24
- package/dist/apis/VariableApi.js +508 -119
- package/dist/apis/VariableApi.js.map +1 -1
- package/dist/apis/baseapi.d.ts +18 -0
- package/dist/apis/baseapi.js +46 -0
- package/dist/apis/baseapi.js.map +1 -0
- package/dist/apis/exception.d.ts +10 -0
- package/dist/apis/exception.js +32 -0
- package/dist/apis/exception.js.map +1 -0
- package/dist/auth/auth.d.ts +42 -0
- package/dist/auth/auth.js +45 -0
- package/dist/auth/auth.js.map +1 -0
- package/dist/configuration.d.ts +18 -0
- package/dist/configuration.js +22 -0
- package/dist/configuration.js.map +1 -0
- package/dist/http/http.d.ts +82 -0
- package/dist/http/http.js +229 -0
- package/dist/http/http.js.map +1 -0
- package/dist/http/isomorphic-fetch.d.ts +5 -0
- package/dist/http/isomorphic-fetch.js +34 -0
- package/dist/http/isomorphic-fetch.js.map +1 -0
- package/dist/index.d.ts +10 -3
- package/dist/index.js +17 -3
- package/dist/index.js.map +1 -1
- package/dist/middleware.d.ts +16 -0
- package/dist/middleware.js +18 -0
- package/dist/middleware.js.map +1 -0
- package/dist/models/CreateJobDto.d.ts +27 -24
- package/dist/models/CreateJobDto.js +77 -62
- package/dist/models/CreateJobDto.js.map +1 -1
- package/dist/models/CreateJobExecutionDto.d.ts +18 -9
- package/dist/models/CreateJobExecutionDto.js +29 -38
- package/dist/models/CreateJobExecutionDto.js.map +1 -1
- package/dist/models/CreateTaskDto.d.ts +20 -10
- package/dist/models/CreateTaskDto.js +41 -42
- package/dist/models/CreateTaskDto.js.map +1 -1
- package/dist/models/CreateVariableDto.d.ts +21 -16
- package/dist/models/CreateVariableDto.js +41 -46
- package/dist/models/CreateVariableDto.js.map +1 -1
- package/dist/models/FileDto.d.ts +22 -11
- package/dist/models/FileDto.js +47 -45
- package/dist/models/FileDto.js.map +1 -1
- package/dist/models/FindVariablesRequest.d.ts +24 -0
- package/dist/models/FindVariablesRequest.js +46 -0
- package/dist/models/FindVariablesRequest.js.map +1 -0
- package/dist/models/GetFiles200Response.d.ts +21 -0
- package/dist/models/GetFiles200Response.js +34 -0
- package/dist/models/GetFiles200Response.js.map +1 -0
- package/dist/models/GetJobExecutionById400Response.d.ts +17 -0
- package/dist/models/GetJobExecutionById400Response.js +22 -0
- package/dist/models/GetJobExecutionById400Response.js.map +1 -0
- package/dist/models/GetJobExecutions200Response.d.ts +21 -0
- package/dist/models/GetJobExecutions200Response.js +34 -0
- package/dist/models/GetJobExecutions200Response.js.map +1 -0
- package/dist/models/GetJobs200Response.d.ts +21 -0
- package/dist/models/GetJobs200Response.js +34 -0
- package/dist/models/GetJobs200Response.js.map +1 -0
- package/dist/models/GetTasks200Response.d.ts +21 -0
- package/dist/models/GetTasks200Response.js +34 -0
- package/dist/models/GetTasks200Response.js.map +1 -0
- package/dist/models/GetVariables200Response.d.ts +21 -0
- package/dist/models/GetVariables200Response.js +34 -0
- package/dist/models/GetVariables200Response.js.map +1 -0
- package/dist/models/HighOrderQuery.d.ts +20 -0
- package/dist/models/HighOrderQuery.js +28 -0
- package/dist/models/HighOrderQuery.js.map +1 -0
- package/dist/models/JobDto.d.ts +32 -28
- package/dist/models/JobDto.js +101 -74
- package/dist/models/JobDto.js.map +1 -1
- package/dist/models/JobExecutionDto.d.ts +28 -33
- package/dist/models/JobExecutionDto.js +83 -77
- package/dist/models/JobExecutionDto.js.map +1 -1
- package/dist/models/LowOrderQuery.d.ts +22 -0
- package/dist/models/LowOrderQuery.js +40 -0
- package/dist/models/LowOrderQuery.js.map +1 -0
- package/dist/models/LowOrderQueryValue.d.ts +16 -0
- package/dist/models/LowOrderQueryValue.js +15 -0
- package/dist/models/LowOrderQueryValue.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +34 -0
- package/dist/models/ObjectSerializer.js +313 -0
- package/dist/models/ObjectSerializer.js.map +1 -0
- package/dist/models/PatchTaskExecutionDto.d.ts +19 -13
- package/dist/models/PatchTaskExecutionDto.js +29 -40
- package/dist/models/PatchTaskExecutionDto.js.map +1 -1
- package/dist/models/Query.d.ts +18 -0
- package/dist/models/Query.js +22 -0
- package/dist/models/Query.js.map +1 -0
- package/dist/models/TaskDto.d.ts +25 -14
- package/dist/models/TaskDto.js +65 -54
- package/dist/models/TaskDto.js.map +1 -1
- package/dist/models/TaskExecutionDto.d.ts +25 -21
- package/dist/models/TaskExecutionDto.js +59 -58
- package/dist/models/TaskExecutionDto.js.map +1 -1
- package/dist/models/UpdateJobDto.d.ts +28 -25
- package/dist/models/UpdateJobDto.js +83 -65
- package/dist/models/UpdateJobDto.js.map +1 -1
- package/dist/models/UpdateTaskDto.d.ts +21 -11
- package/dist/models/UpdateTaskDto.js +47 -45
- package/dist/models/UpdateTaskDto.js.map +1 -1
- package/dist/models/UpdateVariableDto.d.ts +22 -17
- package/dist/models/UpdateVariableDto.js +47 -49
- package/dist/models/UpdateVariableDto.js.map +1 -1
- package/dist/models/VariableDto.d.ts +26 -20
- package/dist/models/VariableDto.js +65 -58
- package/dist/models/VariableDto.js.map +1 -1
- package/dist/models/all.d.ts +25 -0
- package/dist/models/all.js +42 -0
- package/dist/models/all.js.map +1 -0
- package/dist/rxjsStub.d.ts +10 -0
- package/dist/rxjsStub.js +33 -0
- package/dist/rxjsStub.js.map +1 -0
- package/dist/servers.d.ts +17 -0
- package/dist/servers.js +32 -0
- package/dist/servers.js.map +1 -0
- package/dist/types/ObjectParamAPI.d.ts +160 -0
- package/dist/types/ObjectParamAPI.js +129 -0
- package/dist/types/ObjectParamAPI.js.map +1 -0
- package/dist/types/ObservableAPI.d.ts +89 -0
- package/dist/types/ObservableAPI.js +642 -0
- package/dist/types/ObservableAPI.js.map +1 -0
- package/dist/types/PromiseAPI.d.ts +76 -0
- package/dist/types/PromiseAPI.js +148 -0
- package/dist/types/PromiseAPI.js.map +1 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.js +29 -0
- package/dist/util.js.map +1 -0
- package/git_push.sh +51 -0
- package/http/http.ts +229 -0
- package/http/isomorphic-fetch.ts +32 -0
- package/index.ts +12 -5
- package/middleware.ts +66 -0
- package/models/CreateJobDto.ts +88 -144
- package/models/CreateJobExecutionDto.ts +29 -71
- package/models/CreateTaskDto.ts +43 -82
- package/models/CreateVariableDto.ts +46 -92
- package/models/FileDto.ts +53 -91
- package/models/FindVariablesRequest.ts +70 -0
- package/models/GetFiles200Response.ts +53 -0
- package/models/GetJobExecutionById400Response.ts +35 -0
- package/models/GetJobExecutions200Response.ts +53 -0
- package/models/GetJobs200Response.ts +53 -0
- package/models/GetTasks200Response.ts +53 -0
- package/models/GetVariables200Response.ts +53 -0
- package/models/HighOrderQuery.ts +46 -0
- package/models/JobDto.ts +117 -180
- package/models/JobExecutionDto.ts +95 -165
- package/models/LowOrderQuery.ts +60 -0
- package/models/LowOrderQueryValue.ts +29 -0
- package/models/ObjectSerializer.ts +324 -0
- package/models/PatchTaskExecutionDto.ts +36 -78
- package/models/Query.ts +38 -0
- package/models/TaskDto.ts +74 -118
- package/models/TaskExecutionDto.ts +68 -123
- package/models/UpdateJobDto.ts +95 -153
- package/models/UpdateTaskDto.ts +50 -91
- package/models/UpdateVariableDto.ts +53 -101
- package/models/VariableDto.ts +75 -128
- package/models/all.ts +25 -0
- package/package.json +35 -10
- package/rxjsStub.ts +27 -0
- package/servers.ts +55 -0
- package/types/ObjectParamAPI.ts +580 -0
- package/types/ObservableAPI.ts +701 -0
- package/types/PromiseAPI.ts +370 -0
- package/util.ts +37 -0
- package/apis/index.ts +0 -8
- package/dist/apis/index.d.ts +0 -6
- package/dist/apis/index.js +0 -23
- package/dist/apis/index.js.map +0 -1
- package/dist/models/FileControllerGetFiles200Response.d.ts +0 -14
- package/dist/models/FileControllerGetFiles200Response.js +0 -43
- package/dist/models/FileControllerGetFiles200Response.js.map +0 -1
- package/dist/models/JobControllerList200Response.d.ts +0 -14
- package/dist/models/JobControllerList200Response.js +0 -43
- package/dist/models/JobControllerList200Response.js.map +0 -1
- package/dist/models/JobDtoPeriodicityInner.d.ts +0 -8
- package/dist/models/JobDtoPeriodicityInner.js +0 -37
- package/dist/models/JobDtoPeriodicityInner.js.map +0 -1
- package/dist/models/JobDtoTasksInner.d.ts +0 -14
- package/dist/models/JobDtoTasksInner.js +0 -45
- package/dist/models/JobDtoTasksInner.js.map +0 -1
- package/dist/models/JobDtoTitleLocal.d.ts +0 -8
- package/dist/models/JobDtoTitleLocal.js +0 -37
- package/dist/models/JobDtoTitleLocal.js.map +0 -1
- package/dist/models/JobExecutionControllerGetOne400Response.d.ts +0 -7
- package/dist/models/JobExecutionControllerGetOne400Response.js +0 -35
- package/dist/models/JobExecutionControllerGetOne400Response.js.map +0 -1
- package/dist/models/JobExecutionControllerList200Response.d.ts +0 -14
- package/dist/models/JobExecutionControllerList200Response.js +0 -43
- package/dist/models/JobExecutionControllerList200Response.js.map +0 -1
- package/dist/models/JobExecutionDtoInfo.d.ts +0 -7
- package/dist/models/JobExecutionDtoInfo.js +0 -35
- package/dist/models/JobExecutionDtoInfo.js.map +0 -1
- package/dist/models/TaskControllerList200Response.d.ts +0 -14
- package/dist/models/TaskControllerList200Response.js +0 -43
- package/dist/models/TaskControllerList200Response.js.map +0 -1
- package/dist/models/TaskDtoInputKeysInner.d.ts +0 -8
- package/dist/models/TaskDtoInputKeysInner.js +0 -37
- package/dist/models/TaskDtoInputKeysInner.js.map +0 -1
- package/dist/models/VariableControllerList200Response.d.ts +0 -14
- package/dist/models/VariableControllerList200Response.js +0 -43
- package/dist/models/VariableControllerList200Response.js.map +0 -1
- package/dist/models/index.d.ts +0 -20
- package/dist/models/index.js +0 -37
- package/dist/models/index.js.map +0 -1
- package/dist/runtime.d.ts +0 -154
- package/dist/runtime.js +0 -306
- package/dist/runtime.js.map +0 -1
- package/models/ExecuteJob400Response.ts +0 -65
- package/models/ExecuteJobDto.ts +0 -97
- package/models/ExecuteJobDtoInfo.ts +0 -65
- package/models/ExecuteJobDtoJob.ts +0 -81
- package/models/FileControllerGetFiles200Response.ts +0 -98
- package/models/FileCreatedDto.ts +0 -111
- package/models/JobControllerList200Response.ts +0 -98
- package/models/JobDtoPeriodicitiesInner.ts +0 -73
- package/models/JobDtoPeriodicityInner.ts +0 -73
- package/models/JobDtoProject.ts +0 -73
- package/models/JobDtoTasksInner.ts +0 -105
- package/models/JobDtoTitleLocal.ts +0 -73
- package/models/JobExecutionControllerGetOne400Response.ts +0 -65
- package/models/JobExecutionControllerList200Response.ts +0 -98
- package/models/JobExecutionDtoEventsInner.ts +0 -89
- package/models/JobExecutionDtoInfo.ts +0 -65
- package/models/JobExecutionDtoJob.ts +0 -81
- package/models/TaskControllerList200Response.ts +0 -98
- package/models/TaskDtoInputKeysInner.ts +0 -73
- package/models/TaskInstanceDto.ts +0 -143
- package/models/TaskInstanceUpdateDto.ts +0 -107
- package/models/VariableControllerList200Response.ts +0 -98
- package/models/index.ts +0 -22
- package/runtime.ts +0 -425
package/apis/JobExecutionApi.ts
CHANGED
|
@@ -1,173 +1,289 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import
|
|
17
|
-
import type {
|
|
18
|
-
CreateJobExecutionDto,
|
|
19
|
-
JobExecutionControllerGetOne400Response,
|
|
20
|
-
JobExecutionControllerList200Response,
|
|
21
|
-
JobExecutionDto,
|
|
22
|
-
} from '../models';
|
|
23
|
-
import {
|
|
24
|
-
CreateJobExecutionDtoFromJSON,
|
|
25
|
-
CreateJobExecutionDtoToJSON,
|
|
26
|
-
JobExecutionControllerGetOne400ResponseFromJSON,
|
|
27
|
-
JobExecutionControllerGetOne400ResponseToJSON,
|
|
28
|
-
JobExecutionControllerList200ResponseFromJSON,
|
|
29
|
-
JobExecutionControllerList200ResponseToJSON,
|
|
30
|
-
JobExecutionDtoFromJSON,
|
|
31
|
-
JobExecutionDtoToJSON,
|
|
32
|
-
} from '../models';
|
|
33
|
-
|
|
34
|
-
export interface JobExecutionControllerCreateRequest {
|
|
35
|
-
createJobExecutionDto: CreateJobExecutionDto;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface JobExecutionControllerGetOneRequest {
|
|
39
|
-
id: string;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface JobExecutionControllerListRequest {
|
|
43
|
-
size?: number;
|
|
44
|
-
page?: number;
|
|
45
|
-
}
|
|
1
|
+
// TODO: better import syntax?
|
|
2
|
+
import {BaseAPIRequestFactory, RequiredError, COLLECTION_FORMATS} from './baseapi';
|
|
3
|
+
import {Configuration} from '../configuration';
|
|
4
|
+
import {RequestContext, HttpMethod, ResponseContext, HttpFile} from '../http/http';
|
|
5
|
+
import * as FormData from "form-data";
|
|
6
|
+
import { URLSearchParams } from 'url';
|
|
7
|
+
import {ObjectSerializer} from '../models/ObjectSerializer';
|
|
8
|
+
import {ApiException} from './exception';
|
|
9
|
+
import {canConsumeForm, isCodeInRange} from '../util';
|
|
10
|
+
import {SecurityAuthentication} from '../auth/auth';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import { CreateJobExecutionDto } from '../models/CreateJobExecutionDto';
|
|
14
|
+
import { GetJobExecutionById400Response } from '../models/GetJobExecutionById400Response';
|
|
15
|
+
import { GetJobExecutions200Response } from '../models/GetJobExecutions200Response';
|
|
16
|
+
import { JobExecutionDto } from '../models/JobExecutionDto';
|
|
46
17
|
|
|
47
18
|
/**
|
|
48
|
-
*
|
|
19
|
+
* no description
|
|
49
20
|
*/
|
|
50
|
-
export class
|
|
21
|
+
export class JobExecutionApiRequestFactory extends BaseAPIRequestFactory {
|
|
51
22
|
|
|
52
23
|
/**
|
|
53
24
|
* (Experimental) - Create a Job execution
|
|
25
|
+
* @param createJobExecutionDto
|
|
54
26
|
*/
|
|
55
|
-
async
|
|
56
|
-
|
|
57
|
-
|
|
27
|
+
public async createJobExecution(createJobExecutionDto: CreateJobExecutionDto, _options?: Configuration): Promise<RequestContext> {
|
|
28
|
+
let _config = _options || this.configuration;
|
|
29
|
+
|
|
30
|
+
// verify required parameter 'createJobExecutionDto' is not null or undefined
|
|
31
|
+
if (createJobExecutionDto === null || createJobExecutionDto === undefined) {
|
|
32
|
+
throw new RequiredError("JobExecutionApi", "createJobExecution", "createJobExecutionDto");
|
|
58
33
|
}
|
|
59
34
|
|
|
60
|
-
const queryParameters: any = {};
|
|
61
35
|
|
|
62
|
-
|
|
36
|
+
// Path Params
|
|
37
|
+
const localVarPath = '/v1/data_factory/job_executions';
|
|
63
38
|
|
|
64
|
-
|
|
39
|
+
// Make Request Context
|
|
40
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.POST);
|
|
41
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
65
42
|
|
|
66
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
67
|
-
queryParameters["api_key"] = this.configuration.apiKey("api_key"); // ApiKeyAuthQuery authentication
|
|
68
|
-
}
|
|
69
43
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
44
|
+
// Body Params
|
|
45
|
+
const contentType = ObjectSerializer.getPreferredMediaType([
|
|
46
|
+
"application/json"
|
|
47
|
+
]);
|
|
48
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
49
|
+
const serializedBody = ObjectSerializer.stringify(
|
|
50
|
+
ObjectSerializer.serialize(createJobExecutionDto, "CreateJobExecutionDto", ""),
|
|
51
|
+
contentType
|
|
52
|
+
);
|
|
53
|
+
requestContext.setBody(serializedBody);
|
|
73
54
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
55
|
+
let authMethod: SecurityAuthentication | undefined;
|
|
56
|
+
// Apply auth methods
|
|
57
|
+
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
58
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
59
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
60
|
+
}
|
|
61
|
+
// Apply auth methods
|
|
62
|
+
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
63
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
64
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
68
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
69
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
70
|
+
}
|
|
81
71
|
|
|
82
|
-
return
|
|
72
|
+
return requestContext;
|
|
83
73
|
}
|
|
84
74
|
|
|
85
75
|
/**
|
|
86
|
-
* (Experimental) -
|
|
76
|
+
* (Experimental) - Get a Job execution by id
|
|
77
|
+
* @param id
|
|
87
78
|
*/
|
|
88
|
-
async
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
public async getJobExecutionById(id: string, _options?: Configuration): Promise<RequestContext> {
|
|
80
|
+
let _config = _options || this.configuration;
|
|
81
|
+
|
|
82
|
+
// verify required parameter 'id' is not null or undefined
|
|
83
|
+
if (id === null || id === undefined) {
|
|
84
|
+
throw new RequiredError("JobExecutionApi", "getJobExecutionById", "id");
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
// Path Params
|
|
89
|
+
const localVarPath = '/v1/data_factory/job_executions/{id}'
|
|
90
|
+
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
|
|
91
|
+
|
|
92
|
+
// Make Request Context
|
|
93
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
94
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
let authMethod: SecurityAuthentication | undefined;
|
|
98
|
+
// Apply auth methods
|
|
99
|
+
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
100
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
101
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
102
|
+
}
|
|
103
|
+
// Apply auth methods
|
|
104
|
+
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
105
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
106
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
110
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
111
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return requestContext;
|
|
91
115
|
}
|
|
92
116
|
|
|
93
117
|
/**
|
|
94
|
-
* (Experimental) - Get a Job execution
|
|
118
|
+
* (Experimental) - Get a list of Job execution
|
|
119
|
+
* @param size
|
|
120
|
+
* @param page
|
|
95
121
|
*/
|
|
96
|
-
async
|
|
97
|
-
|
|
98
|
-
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling jobExecutionControllerGetOne.');
|
|
99
|
-
}
|
|
122
|
+
public async getJobExecutions(size?: number, page?: number, _options?: Configuration): Promise<RequestContext> {
|
|
123
|
+
let _config = _options || this.configuration;
|
|
100
124
|
|
|
101
|
-
const queryParameters: any = {};
|
|
102
125
|
|
|
103
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
104
126
|
|
|
105
|
-
|
|
106
|
-
|
|
127
|
+
// Path Params
|
|
128
|
+
const localVarPath = '/v1/data_factory/job_executions';
|
|
129
|
+
|
|
130
|
+
// Make Request Context
|
|
131
|
+
const requestContext = _config.baseServer.makeRequestContext(localVarPath, HttpMethod.GET);
|
|
132
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8")
|
|
133
|
+
|
|
134
|
+
// Query Params
|
|
135
|
+
if (size !== undefined) {
|
|
136
|
+
requestContext.setQueryParam("size", ObjectSerializer.serialize(size, "number", ""));
|
|
107
137
|
}
|
|
108
138
|
|
|
109
|
-
|
|
110
|
-
|
|
139
|
+
// Query Params
|
|
140
|
+
if (page !== undefined) {
|
|
141
|
+
requestContext.setQueryParam("page", ObjectSerializer.serialize(page, "number", ""));
|
|
111
142
|
}
|
|
112
143
|
|
|
113
|
-
const response = await this.request({
|
|
114
|
-
path: `/v1/data_factory/job_executions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
|
115
|
-
method: 'GET',
|
|
116
|
-
headers: headerParameters,
|
|
117
|
-
query: queryParameters,
|
|
118
|
-
}, initOverrides);
|
|
119
144
|
|
|
120
|
-
|
|
121
|
-
|
|
145
|
+
let authMethod: SecurityAuthentication | undefined;
|
|
146
|
+
// Apply auth methods
|
|
147
|
+
authMethod = _config.authMethods["ApiKeyAuthQuery"]
|
|
148
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
149
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
150
|
+
}
|
|
151
|
+
// Apply auth methods
|
|
152
|
+
authMethod = _config.authMethods["ApiKeyAuthHeader"]
|
|
153
|
+
if (authMethod?.applySecurityAuthentication) {
|
|
154
|
+
await authMethod?.applySecurityAuthentication(requestContext);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const defaultAuth: SecurityAuthentication | undefined = _options?.authMethods?.default || this.configuration?.authMethods?.default
|
|
158
|
+
if (defaultAuth?.applySecurityAuthentication) {
|
|
159
|
+
await defaultAuth?.applySecurityAuthentication(requestContext);
|
|
160
|
+
}
|
|
122
161
|
|
|
123
|
-
|
|
124
|
-
* (Experimental) - Get a Job execution by id
|
|
125
|
-
*/
|
|
126
|
-
async jobExecutionControllerGetOne(requestParameters: JobExecutionControllerGetOneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<JobExecutionDto> {
|
|
127
|
-
const response = await this.jobExecutionControllerGetOneRaw(requestParameters, initOverrides);
|
|
128
|
-
return await response.value();
|
|
162
|
+
return requestContext;
|
|
129
163
|
}
|
|
130
164
|
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export class JobExecutionApiResponseProcessor {
|
|
168
|
+
|
|
131
169
|
/**
|
|
132
|
-
*
|
|
170
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
171
|
+
* to the expected objects
|
|
172
|
+
*
|
|
173
|
+
* @params response Response returned by the server for a request to createJobExecution
|
|
174
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
133
175
|
*/
|
|
134
|
-
|
|
135
|
-
const
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
176
|
+
public async createJobExecution(response: ResponseContext): Promise<JobExecutionDto > {
|
|
177
|
+
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
178
|
+
if (isCodeInRange("201", response.httpStatusCode)) {
|
|
179
|
+
const body: JobExecutionDto = ObjectSerializer.deserialize(
|
|
180
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
181
|
+
"JobExecutionDto", ""
|
|
182
|
+
) as JobExecutionDto;
|
|
183
|
+
return body;
|
|
184
|
+
}
|
|
185
|
+
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
186
|
+
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
187
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
188
|
+
"GetJobExecutionById400Response", ""
|
|
189
|
+
) as GetJobExecutionById400Response;
|
|
190
|
+
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
191
|
+
}
|
|
192
|
+
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
193
|
+
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
139
194
|
}
|
|
140
195
|
|
|
141
|
-
|
|
142
|
-
|
|
196
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
197
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
198
|
+
const body: JobExecutionDto = ObjectSerializer.deserialize(
|
|
199
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
200
|
+
"JobExecutionDto", ""
|
|
201
|
+
) as JobExecutionDto;
|
|
202
|
+
return body;
|
|
143
203
|
}
|
|
144
204
|
|
|
145
|
-
|
|
205
|
+
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
206
|
+
}
|
|
146
207
|
|
|
147
|
-
|
|
148
|
-
|
|
208
|
+
/**
|
|
209
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
210
|
+
* to the expected objects
|
|
211
|
+
*
|
|
212
|
+
* @params response Response returned by the server for a request to getJobExecutionById
|
|
213
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
214
|
+
*/
|
|
215
|
+
public async getJobExecutionById(response: ResponseContext): Promise<JobExecutionDto > {
|
|
216
|
+
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
217
|
+
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
218
|
+
const body: JobExecutionDto = ObjectSerializer.deserialize(
|
|
219
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
220
|
+
"JobExecutionDto", ""
|
|
221
|
+
) as JobExecutionDto;
|
|
222
|
+
return body;
|
|
149
223
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
224
|
+
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
225
|
+
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
226
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
227
|
+
"GetJobExecutionById400Response", ""
|
|
228
|
+
) as GetJobExecutionById400Response;
|
|
229
|
+
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
230
|
+
}
|
|
231
|
+
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
232
|
+
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
233
|
+
}
|
|
234
|
+
if (isCodeInRange("404", response.httpStatusCode)) {
|
|
235
|
+
throw new ApiException<undefined>(response.httpStatusCode, "Not found", undefined, response.headers);
|
|
153
236
|
}
|
|
154
237
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
238
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
239
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
240
|
+
const body: JobExecutionDto = ObjectSerializer.deserialize(
|
|
241
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
242
|
+
"JobExecutionDto", ""
|
|
243
|
+
) as JobExecutionDto;
|
|
244
|
+
return body;
|
|
245
|
+
}
|
|
161
246
|
|
|
162
|
-
|
|
247
|
+
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
163
248
|
}
|
|
164
249
|
|
|
165
250
|
/**
|
|
166
|
-
*
|
|
251
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
252
|
+
* to the expected objects
|
|
253
|
+
*
|
|
254
|
+
* @params response Response returned by the server for a request to getJobExecutions
|
|
255
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
167
256
|
*/
|
|
168
|
-
|
|
169
|
-
const
|
|
170
|
-
|
|
257
|
+
public async getJobExecutions(response: ResponseContext): Promise<GetJobExecutions200Response > {
|
|
258
|
+
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
259
|
+
if (isCodeInRange("200", response.httpStatusCode)) {
|
|
260
|
+
const body: GetJobExecutions200Response = ObjectSerializer.deserialize(
|
|
261
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
262
|
+
"GetJobExecutions200Response", ""
|
|
263
|
+
) as GetJobExecutions200Response;
|
|
264
|
+
return body;
|
|
265
|
+
}
|
|
266
|
+
if (isCodeInRange("400", response.httpStatusCode)) {
|
|
267
|
+
const body: GetJobExecutionById400Response = ObjectSerializer.deserialize(
|
|
268
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
269
|
+
"GetJobExecutionById400Response", ""
|
|
270
|
+
) as GetJobExecutionById400Response;
|
|
271
|
+
throw new ApiException<GetJobExecutionById400Response>(response.httpStatusCode, "Bad Request - Malformed syntax", body, response.headers);
|
|
272
|
+
}
|
|
273
|
+
if (isCodeInRange("401", response.httpStatusCode)) {
|
|
274
|
+
throw new ApiException<undefined>(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
278
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
279
|
+
const body: GetJobExecutions200Response = ObjectSerializer.deserialize(
|
|
280
|
+
ObjectSerializer.parse(await response.body.text(), contentType),
|
|
281
|
+
"GetJobExecutions200Response", ""
|
|
282
|
+
) as GetJobExecutions200Response;
|
|
283
|
+
return body;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
throw new ApiException<string | Buffer | undefined>(response.httpStatusCode, "Unknown API Status Code!", await response.getBodyAsAny(), response.headers);
|
|
171
287
|
}
|
|
172
288
|
|
|
173
289
|
}
|