@gooddata/api-client-tiger 11.10.0-alpha.5 → 11.10.0-alpha.6
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/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/actions.d.ts.map +1 -1
- package/esm/actions.js +2 -2
- package/esm/actions.js.map +1 -1
- package/esm/api-client-tiger.d.ts +52852 -62434
- package/esm/api-endpoints/actions/index.d.ts +2 -0
- package/esm/api-endpoints/actions/index.d.ts.map +1 -0
- package/esm/api-endpoints/actions/index.js +4 -0
- package/esm/api-endpoints/actions/index.js.map +1 -0
- package/esm/api-endpoints/authActions/index.d.ts +2 -0
- package/esm/api-endpoints/authActions/index.d.ts.map +1 -0
- package/esm/api-endpoints/authActions/index.js +4 -0
- package/esm/api-endpoints/authActions/index.js.map +1 -0
- package/esm/api-endpoints/automation/index.d.ts +2 -0
- package/esm/api-endpoints/automation/index.d.ts.map +1 -0
- package/esm/api-endpoints/automation/index.js +4 -0
- package/esm/api-endpoints/automation/index.js.map +1 -0
- package/esm/api-endpoints/entitiesObjects/index.d.ts +33 -0
- package/esm/api-endpoints/entitiesObjects/index.d.ts.map +1 -0
- package/esm/api-endpoints/entitiesObjects/index.js +66 -0
- package/esm/api-endpoints/entitiesObjects/index.js.map +1 -0
- package/esm/api-endpoints/execution/index.d.ts +3 -0
- package/esm/api-endpoints/execution/index.d.ts.map +1 -0
- package/esm/api-endpoints/execution/index.js +6 -0
- package/esm/api-endpoints/execution/index.js.map +1 -0
- package/esm/api-endpoints/explain/index.d.ts +2 -0
- package/esm/api-endpoints/explain/index.d.ts.map +1 -0
- package/esm/api-endpoints/explain/index.js +4 -0
- package/esm/api-endpoints/explain/index.js.map +1 -0
- package/esm/api-endpoints/export/index.d.ts +2 -0
- package/esm/api-endpoints/export/index.d.ts.map +1 -0
- package/esm/api-endpoints/export/index.js +4 -0
- package/esm/api-endpoints/export/index.js.map +1 -0
- package/esm/api-endpoints/genAI/index.d.ts +2 -0
- package/esm/api-endpoints/genAI/index.d.ts.map +1 -0
- package/esm/api-endpoints/genAI/index.js +4 -0
- package/esm/api-endpoints/genAI/index.js.map +1 -0
- package/esm/api-endpoints/labelElements/index.d.ts +2 -0
- package/esm/api-endpoints/labelElements/index.d.ts.map +1 -0
- package/esm/api-endpoints/labelElements/index.js +4 -0
- package/esm/api-endpoints/labelElements/index.js.map +1 -0
- package/esm/api-endpoints/layout/index.d.ts +2 -0
- package/esm/api-endpoints/layout/index.d.ts.map +1 -0
- package/esm/api-endpoints/layout/index.js +4 -0
- package/esm/api-endpoints/layout/index.js.map +1 -0
- package/esm/api-endpoints/profile/index.d.ts +3 -0
- package/esm/api-endpoints/profile/index.d.ts.map +1 -0
- package/esm/api-endpoints/profile/index.js +3 -0
- package/esm/api-endpoints/profile/index.js.map +1 -0
- package/esm/api-endpoints/result/index.d.ts +2 -0
- package/esm/api-endpoints/result/index.d.ts.map +1 -0
- package/esm/api-endpoints/result/index.js +4 -0
- package/esm/api-endpoints/result/index.js.map +1 -0
- package/esm/api-endpoints/scanModel/index.d.ts +2 -0
- package/esm/api-endpoints/scanModel/index.d.ts.map +1 -0
- package/esm/api-endpoints/scanModel/index.js +4 -0
- package/esm/api-endpoints/scanModel/index.js.map +1 -0
- package/esm/api-endpoints/smartFunctions/index.d.ts +2 -0
- package/esm/api-endpoints/smartFunctions/index.d.ts.map +1 -0
- package/esm/api-endpoints/smartFunctions/index.js +4 -0
- package/esm/api-endpoints/smartFunctions/index.js.map +1 -0
- package/esm/api-endpoints/userManagement/index.d.ts +2 -0
- package/esm/api-endpoints/userManagement/index.d.ts.map +1 -0
- package/esm/api-endpoints/userManagement/index.js +4 -0
- package/esm/api-endpoints/userManagement/index.js.map +1 -0
- package/esm/api-endpoints/validDescendants/index.d.ts +2 -0
- package/esm/api-endpoints/validDescendants/index.d.ts.map +1 -0
- package/esm/api-endpoints/validDescendants/index.js +4 -0
- package/esm/api-endpoints/validDescendants/index.js.map +1 -0
- package/esm/api-endpoints/validObjects/index.d.ts +2 -0
- package/esm/api-endpoints/validObjects/index.d.ts.map +1 -0
- package/esm/api-endpoints/validObjects/index.js +4 -0
- package/esm/api-endpoints/validObjects/index.js.map +1 -0
- package/esm/authActions.d.ts.map +1 -1
- package/esm/authActions.js +2 -2
- package/esm/authActions.js.map +1 -1
- package/esm/client.d.ts +26 -2
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +21 -1
- package/esm/client.js.map +1 -1
- package/esm/entitiesObjects.d.ts.map +1 -1
- package/esm/entitiesObjects.js +2 -2
- package/esm/entitiesObjects.js.map +1 -1
- package/esm/gd-tiger-model/typeGuards.d.ts.map +1 -1
- package/esm/gd-tiger-model/typeGuards.js +8 -11
- package/esm/gd-tiger-model/typeGuards.js.map +1 -1
- package/esm/generated/afm-rest-api/api.d.ts +2527 -3252
- package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.js +3700 -4690
- package/esm/generated/afm-rest-api/api.js.map +1 -1
- package/esm/generated/afm-rest-api/base.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/base.js +13 -1
- package/esm/generated/afm-rest-api/base.js.map +1 -1
- package/esm/generated/afm-rest-api/configuration.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/configuration.js +13 -1
- package/esm/generated/afm-rest-api/configuration.js.map +1 -1
- package/esm/generated/auth-json-api/api.d.ts +283 -395
- package/esm/generated/auth-json-api/api.d.ts.map +1 -1
- package/esm/generated/auth-json-api/api.js +703 -880
- package/esm/generated/auth-json-api/api.js.map +1 -1
- package/esm/generated/auth-json-api/base.d.ts.map +1 -1
- package/esm/generated/auth-json-api/base.js +13 -1
- package/esm/generated/auth-json-api/base.js.map +1 -1
- package/esm/generated/auth-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/auth-json-api/configuration.js +13 -1
- package/esm/generated/auth-json-api/configuration.js.map +1 -1
- package/esm/generated/auth-json-api/template.d.ts +102 -0
- package/esm/generated/auth-json-api/template.d.ts.map +1 -0
- package/esm/generated/auth-json-api/template.js +154 -0
- package/esm/generated/auth-json-api/template.js.map +1 -0
- package/esm/generated/automation-json-api/api.d.ts +347 -757
- package/esm/generated/automation-json-api/api.d.ts.map +1 -1
- package/esm/generated/automation-json-api/api.js +768 -1251
- package/esm/generated/automation-json-api/api.js.map +1 -1
- package/esm/generated/automation-json-api/base.d.ts.map +1 -1
- package/esm/generated/automation-json-api/base.js +13 -1
- package/esm/generated/automation-json-api/base.js.map +1 -1
- package/esm/generated/automation-json-api/common.d.ts.map +1 -1
- package/esm/generated/automation-json-api/common.js +13 -1
- package/esm/generated/automation-json-api/common.js.map +1 -1
- package/esm/generated/automation-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/automation-json-api/configuration.js +13 -1
- package/esm/generated/automation-json-api/configuration.js.map +1 -1
- package/esm/generated/automation-json-api/index.d.ts.map +1 -1
- package/esm/generated/automation-json-api/index.js +1 -1
- package/esm/generated/automation-json-api/index.js.map +1 -1
- package/esm/generated/export-json-api/api.d.ts +662 -1134
- package/esm/generated/export-json-api/api.d.ts.map +1 -1
- package/esm/generated/export-json-api/api.js +1556 -2181
- package/esm/generated/export-json-api/api.js.map +1 -1
- package/esm/generated/export-json-api/base.d.ts.map +1 -1
- package/esm/generated/export-json-api/base.js +13 -1
- package/esm/generated/export-json-api/base.js.map +1 -1
- package/esm/generated/export-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/export-json-api/configuration.js +13 -1
- package/esm/generated/export-json-api/configuration.js.map +1 -1
- package/esm/generated/metadata-json-api/api.d.ts +35920 -44004
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +54041 -65836
- package/esm/generated/metadata-json-api/api.js.map +1 -1
- package/esm/generated/metadata-json-api/base.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/base.js +13 -1
- package/esm/generated/metadata-json-api/base.js.map +1 -1
- package/esm/generated/metadata-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/configuration.js +13 -1
- package/esm/generated/metadata-json-api/configuration.js.map +1 -1
- package/esm/generated/metadata-json-api/openapi-spec.json +10318 -10318
- package/esm/generated/result-json-api/api.d.ts +290 -524
- package/esm/generated/result-json-api/api.d.ts.map +1 -1
- package/esm/generated/result-json-api/api.js +784 -1135
- package/esm/generated/result-json-api/api.js.map +1 -1
- package/esm/generated/result-json-api/base.d.ts.map +1 -1
- package/esm/generated/result-json-api/base.js +13 -1
- package/esm/generated/result-json-api/base.js.map +1 -1
- package/esm/generated/result-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/result-json-api/configuration.js +13 -1
- package/esm/generated/result-json-api/configuration.js.map +1 -1
- package/esm/generated/scan-json-api/api.d.ts +243 -441
- package/esm/generated/scan-json-api/api.d.ts.map +1 -1
- package/esm/generated/scan-json-api/api.js +655 -922
- package/esm/generated/scan-json-api/api.js.map +1 -1
- package/esm/generated/scan-json-api/base.d.ts.map +1 -1
- package/esm/generated/scan-json-api/base.js +13 -1
- package/esm/generated/scan-json-api/base.js.map +1 -1
- package/esm/generated/scan-json-api/configuration.d.ts.map +1 -1
- package/esm/generated/scan-json-api/configuration.js +13 -1
- package/esm/generated/scan-json-api/configuration.js.map +1 -1
- package/esm/generated/scan-json-api/openapi-spec.json +1 -1
- package/esm/index.d.ts +4 -5
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +0 -5
- package/esm/index.js.map +1 -1
- package/esm/metadataUtilities.d.ts +21 -4
- package/esm/metadataUtilities.d.ts.map +1 -1
- package/esm/metadataUtilities.js +83 -12
- package/esm/metadataUtilities.js.map +1 -1
- package/esm/organizationUtilities.d.ts +9 -18
- package/esm/organizationUtilities.d.ts.map +1 -1
- package/esm/organizationUtilities.js +1 -17
- package/esm/organizationUtilities.js.map +1 -1
- package/esm/profile.d.ts +34 -0
- package/esm/profile.d.ts.map +1 -1
- package/esm/profile.js +26 -20
- package/esm/profile.js.map +1 -1
- package/esm/scanModel.d.ts.map +1 -1
- package/esm/scanModel.js +2 -2
- package/esm/scanModel.js.map +1 -1
- package/esm/userManagement.d.ts.map +1 -1
- package/esm/userManagement.js +2 -2
- package/esm/userManagement.js.map +1 -1
- package/package.json +25 -6
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* OpenAPI definition
|
|
4
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: v0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
2
13
|
import globalAxios from "axios";
|
|
3
14
|
// Some imports not used depending on template conditions, we also need prettier-ignore so that the import does not get split and ts-ignore still works
|
|
4
15
|
// prettier-ignore
|
|
@@ -8,478 +19,342 @@ import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, creat
|
|
|
8
19
|
// prettier-ignore
|
|
9
20
|
// @ts-ignore
|
|
10
21
|
import { BASE_PATH, BaseAPI } from './base.js';
|
|
11
|
-
|
|
12
|
-
COUNT: "COUNT",
|
|
13
|
-
COUNT_NULL: "COUNT_NULL",
|
|
14
|
-
COUNT_UNIQUE: "COUNT_UNIQUE",
|
|
15
|
-
AVG: "AVG",
|
|
16
|
-
STDDEV: "STDDEV",
|
|
17
|
-
MIN: "MIN",
|
|
18
|
-
MAX: "MAX",
|
|
19
|
-
PERCENTILE_25: "PERCENTILE_25",
|
|
20
|
-
PERCENTILE_50: "PERCENTILE_50",
|
|
21
|
-
PERCENTILE_75: "PERCENTILE_75",
|
|
22
|
-
};
|
|
23
|
-
export const ColumnStatisticsRequestStatisticsEnum = {
|
|
24
|
-
COUNT: "COUNT",
|
|
25
|
-
COUNT_NULL: "COUNT_NULL",
|
|
26
|
-
COUNT_UNIQUE: "COUNT_UNIQUE",
|
|
27
|
-
AVG: "AVG",
|
|
28
|
-
STDDEV: "STDDEV",
|
|
29
|
-
MIN: "MIN",
|
|
30
|
-
MAX: "MAX",
|
|
31
|
-
PERCENTILE_25: "PERCENTILE_25",
|
|
32
|
-
PERCENTILE_50: "PERCENTILE_50",
|
|
33
|
-
PERCENTILE_75: "PERCENTILE_75",
|
|
34
|
-
};
|
|
35
|
-
export const DeclarativeColumnDataTypeEnum = {
|
|
36
|
-
INT: "INT",
|
|
37
|
-
STRING: "STRING",
|
|
38
|
-
DATE: "DATE",
|
|
39
|
-
NUMERIC: "NUMERIC",
|
|
40
|
-
TIMESTAMP: "TIMESTAMP",
|
|
41
|
-
TIMESTAMP_TZ: "TIMESTAMP_TZ",
|
|
42
|
-
BOOLEAN: "BOOLEAN",
|
|
43
|
-
};
|
|
44
|
-
export const SqlColumnDataTypeEnum = {
|
|
45
|
-
INT: "INT",
|
|
46
|
-
STRING: "STRING",
|
|
47
|
-
DATE: "DATE",
|
|
48
|
-
NUMERIC: "NUMERIC",
|
|
49
|
-
TIMESTAMP: "TIMESTAMP",
|
|
50
|
-
TIMESTAMP_TZ: "TIMESTAMP_TZ",
|
|
51
|
-
BOOLEAN: "BOOLEAN",
|
|
52
|
-
};
|
|
53
|
-
export const TestDefinitionRequestTypeEnum = {
|
|
54
|
-
POSTGRESQL: "POSTGRESQL",
|
|
55
|
-
REDSHIFT: "REDSHIFT",
|
|
56
|
-
VERTICA: "VERTICA",
|
|
57
|
-
SNOWFLAKE: "SNOWFLAKE",
|
|
58
|
-
ADS: "ADS",
|
|
59
|
-
BIGQUERY: "BIGQUERY",
|
|
60
|
-
MSSQL: "MSSQL",
|
|
61
|
-
PRESTO: "PRESTO",
|
|
62
|
-
DREMIO: "DREMIO",
|
|
63
|
-
DRILL: "DRILL",
|
|
64
|
-
GREENPLUM: "GREENPLUM",
|
|
65
|
-
AZURESQL: "AZURESQL",
|
|
66
|
-
SYNAPSESQL: "SYNAPSESQL",
|
|
67
|
-
DATABRICKS: "DATABRICKS",
|
|
68
|
-
GDSTORAGE: "GDSTORAGE",
|
|
69
|
-
CLICKHOUSE: "CLICKHOUSE",
|
|
70
|
-
MYSQL: "MYSQL",
|
|
71
|
-
MARIADB: "MARIADB",
|
|
72
|
-
ORACLE: "ORACLE",
|
|
73
|
-
PINOT: "PINOT",
|
|
74
|
-
SINGLESTORE: "SINGLESTORE",
|
|
75
|
-
MOTHERDUCK: "MOTHERDUCK",
|
|
76
|
-
FLEXCONNECT: "FLEXCONNECT",
|
|
77
|
-
STARROCKS: "STARROCKS",
|
|
78
|
-
ATHENA: "ATHENA",
|
|
79
|
-
MONGODB: "MONGODB",
|
|
80
|
-
};
|
|
22
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
81
23
|
/**
|
|
82
|
-
*
|
|
83
|
-
* @
|
|
24
|
+
* (EXPERIMENTAL) Computes the requested statistical parameters of a column in a data source.
|
|
25
|
+
* @summary (EXPERIMENTAL) Compute column statistics
|
|
26
|
+
* @param {string} dataSourceId
|
|
27
|
+
* @param {ColumnStatisticsRequest} columnStatisticsRequest
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
30
|
+
* @throws {RequiredError}
|
|
84
31
|
*/
|
|
85
|
-
export
|
|
32
|
+
export async function ActionsApiAxiosParamCreator_ColumnStatistics(dataSourceId, columnStatisticsRequest, options = {}, configuration) {
|
|
33
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
34
|
+
assertParamExists("columnStatistics", "dataSourceId", dataSourceId);
|
|
35
|
+
// verify required parameter 'columnStatisticsRequest' is not null or undefined
|
|
36
|
+
assertParamExists("columnStatistics", "columnStatisticsRequest", columnStatisticsRequest);
|
|
37
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/computeColumnStatistics`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
38
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
39
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40
|
+
let baseOptions;
|
|
41
|
+
if (configuration) {
|
|
42
|
+
baseOptions = configuration.baseOptions;
|
|
43
|
+
}
|
|
44
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
45
|
+
const localVarHeaderParameter = {};
|
|
46
|
+
const localVarQueryParameter = {};
|
|
47
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
48
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
49
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
50
|
+
localVarRequestOptions.headers = {
|
|
51
|
+
...localVarHeaderParameter,
|
|
52
|
+
...headersFromBaseOptions,
|
|
53
|
+
...options.headers,
|
|
54
|
+
};
|
|
55
|
+
const needsSerialization = typeof columnStatisticsRequest !== "string" ||
|
|
56
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
57
|
+
localVarRequestOptions.data = needsSerialization
|
|
58
|
+
? JSON.stringify(columnStatisticsRequest !== undefined ? columnStatisticsRequest : {})
|
|
59
|
+
: columnStatisticsRequest || "";
|
|
86
60
|
return {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
* @summary (EXPERIMENTAL) Compute column statistics
|
|
90
|
-
* @param {string} dataSourceId
|
|
91
|
-
* @param {ColumnStatisticsRequest} columnStatisticsRequest
|
|
92
|
-
* @param {*} [options] Override http request option.
|
|
93
|
-
* @throws {RequiredError}
|
|
94
|
-
*/
|
|
95
|
-
columnStatistics: async (dataSourceId, columnStatisticsRequest, options = {}) => {
|
|
96
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
97
|
-
assertParamExists("columnStatistics", "dataSourceId", dataSourceId);
|
|
98
|
-
// verify required parameter 'columnStatisticsRequest' is not null or undefined
|
|
99
|
-
assertParamExists("columnStatistics", "columnStatisticsRequest", columnStatisticsRequest);
|
|
100
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/computeColumnStatistics`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
101
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
-
let baseOptions;
|
|
104
|
-
if (configuration) {
|
|
105
|
-
baseOptions = configuration.baseOptions;
|
|
106
|
-
}
|
|
107
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
108
|
-
const localVarHeaderParameter = {};
|
|
109
|
-
const localVarQueryParameter = {};
|
|
110
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
111
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
112
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
113
|
-
localVarRequestOptions.headers = {
|
|
114
|
-
...localVarHeaderParameter,
|
|
115
|
-
...headersFromBaseOptions,
|
|
116
|
-
...options.headers,
|
|
117
|
-
};
|
|
118
|
-
const needsSerialization = typeof columnStatisticsRequest !== "string" ||
|
|
119
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
120
|
-
localVarRequestOptions.data = needsSerialization
|
|
121
|
-
? JSON.stringify(columnStatisticsRequest !== undefined ? columnStatisticsRequest : {})
|
|
122
|
-
: columnStatisticsRequest || "";
|
|
123
|
-
return {
|
|
124
|
-
url: toPathString(localVarUrlObj),
|
|
125
|
-
options: localVarRequestOptions,
|
|
126
|
-
};
|
|
127
|
-
},
|
|
128
|
-
/**
|
|
129
|
-
* It scans a database and reads metadata. The result of the request contains a list of schema names of a database.
|
|
130
|
-
* @summary Get a list of schema names of a database
|
|
131
|
-
* @param {string} dataSourceId Data source id
|
|
132
|
-
* @param {*} [options] Override http request option.
|
|
133
|
-
* @throws {RequiredError}
|
|
134
|
-
*/
|
|
135
|
-
getDataSourceSchemata: async (dataSourceId, options = {}) => {
|
|
136
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
137
|
-
assertParamExists("getDataSourceSchemata", "dataSourceId", dataSourceId);
|
|
138
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scanSchemata`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
139
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
140
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
141
|
-
let baseOptions;
|
|
142
|
-
if (configuration) {
|
|
143
|
-
baseOptions = configuration.baseOptions;
|
|
144
|
-
}
|
|
145
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
146
|
-
const localVarHeaderParameter = {};
|
|
147
|
-
const localVarQueryParameter = {};
|
|
148
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
149
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
|
-
localVarRequestOptions.headers = {
|
|
151
|
-
...localVarHeaderParameter,
|
|
152
|
-
...headersFromBaseOptions,
|
|
153
|
-
...options.headers,
|
|
154
|
-
};
|
|
155
|
-
return {
|
|
156
|
-
url: toPathString(localVarUrlObj),
|
|
157
|
-
options: localVarRequestOptions,
|
|
158
|
-
};
|
|
159
|
-
},
|
|
160
|
-
/**
|
|
161
|
-
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
162
|
-
* @summary Scan a database to get a physical data model (PDM)
|
|
163
|
-
* @param {string} dataSourceId Data source id
|
|
164
|
-
* @param {ScanRequest} scanRequest
|
|
165
|
-
* @param {*} [options] Override http request option.
|
|
166
|
-
* @throws {RequiredError}
|
|
167
|
-
*/
|
|
168
|
-
scanDataSource: async (dataSourceId, scanRequest, options = {}) => {
|
|
169
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
170
|
-
assertParamExists("scanDataSource", "dataSourceId", dataSourceId);
|
|
171
|
-
// verify required parameter 'scanRequest' is not null or undefined
|
|
172
|
-
assertParamExists("scanDataSource", "scanRequest", scanRequest);
|
|
173
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scan`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
174
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
175
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
176
|
-
let baseOptions;
|
|
177
|
-
if (configuration) {
|
|
178
|
-
baseOptions = configuration.baseOptions;
|
|
179
|
-
}
|
|
180
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
181
|
-
const localVarHeaderParameter = {};
|
|
182
|
-
const localVarQueryParameter = {};
|
|
183
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
184
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
-
localVarRequestOptions.headers = {
|
|
187
|
-
...localVarHeaderParameter,
|
|
188
|
-
...headersFromBaseOptions,
|
|
189
|
-
...options.headers,
|
|
190
|
-
};
|
|
191
|
-
const needsSerialization = typeof scanRequest !== "string" ||
|
|
192
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
193
|
-
localVarRequestOptions.data = needsSerialization
|
|
194
|
-
? JSON.stringify(scanRequest !== undefined ? scanRequest : {})
|
|
195
|
-
: scanRequest || "";
|
|
196
|
-
return {
|
|
197
|
-
url: toPathString(localVarUrlObj),
|
|
198
|
-
options: localVarRequestOptions,
|
|
199
|
-
};
|
|
200
|
-
},
|
|
201
|
-
/**
|
|
202
|
-
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
203
|
-
* @summary Collect metadata about SQL query
|
|
204
|
-
* @param {string} dataSourceId Data source id
|
|
205
|
-
* @param {ScanSqlRequest} scanSqlRequest
|
|
206
|
-
* @param {*} [options] Override http request option.
|
|
207
|
-
* @throws {RequiredError}
|
|
208
|
-
*/
|
|
209
|
-
scanSql: async (dataSourceId, scanSqlRequest, options = {}) => {
|
|
210
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
211
|
-
assertParamExists("scanSql", "dataSourceId", dataSourceId);
|
|
212
|
-
// verify required parameter 'scanSqlRequest' is not null or undefined
|
|
213
|
-
assertParamExists("scanSql", "scanSqlRequest", scanSqlRequest);
|
|
214
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scanSql`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
215
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
217
|
-
let baseOptions;
|
|
218
|
-
if (configuration) {
|
|
219
|
-
baseOptions = configuration.baseOptions;
|
|
220
|
-
}
|
|
221
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
222
|
-
const localVarHeaderParameter = {};
|
|
223
|
-
const localVarQueryParameter = {};
|
|
224
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
225
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
226
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
227
|
-
localVarRequestOptions.headers = {
|
|
228
|
-
...localVarHeaderParameter,
|
|
229
|
-
...headersFromBaseOptions,
|
|
230
|
-
...options.headers,
|
|
231
|
-
};
|
|
232
|
-
const needsSerialization = typeof scanSqlRequest !== "string" ||
|
|
233
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
234
|
-
localVarRequestOptions.data = needsSerialization
|
|
235
|
-
? JSON.stringify(scanSqlRequest !== undefined ? scanSqlRequest : {})
|
|
236
|
-
: scanSqlRequest || "";
|
|
237
|
-
return {
|
|
238
|
-
url: toPathString(localVarUrlObj),
|
|
239
|
-
options: localVarRequestOptions,
|
|
240
|
-
};
|
|
241
|
-
},
|
|
242
|
-
/**
|
|
243
|
-
* Test if it is possible to connect to a database using an existing data source definition.
|
|
244
|
-
* @summary Test data source connection by data source id
|
|
245
|
-
* @param {string} dataSourceId Data source id
|
|
246
|
-
* @param {TestRequest} testRequest
|
|
247
|
-
* @param {*} [options] Override http request option.
|
|
248
|
-
* @throws {RequiredError}
|
|
249
|
-
*/
|
|
250
|
-
testDataSource: async (dataSourceId, testRequest, options = {}) => {
|
|
251
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
252
|
-
assertParamExists("testDataSource", "dataSourceId", dataSourceId);
|
|
253
|
-
// verify required parameter 'testRequest' is not null or undefined
|
|
254
|
-
assertParamExists("testDataSource", "testRequest", testRequest);
|
|
255
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/test`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
256
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
257
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
258
|
-
let baseOptions;
|
|
259
|
-
if (configuration) {
|
|
260
|
-
baseOptions = configuration.baseOptions;
|
|
261
|
-
}
|
|
262
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
263
|
-
const localVarHeaderParameter = {};
|
|
264
|
-
const localVarQueryParameter = {};
|
|
265
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
266
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
267
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
268
|
-
localVarRequestOptions.headers = {
|
|
269
|
-
...localVarHeaderParameter,
|
|
270
|
-
...headersFromBaseOptions,
|
|
271
|
-
...options.headers,
|
|
272
|
-
};
|
|
273
|
-
const needsSerialization = typeof testRequest !== "string" ||
|
|
274
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
275
|
-
localVarRequestOptions.data = needsSerialization
|
|
276
|
-
? JSON.stringify(testRequest !== undefined ? testRequest : {})
|
|
277
|
-
: testRequest || "";
|
|
278
|
-
return {
|
|
279
|
-
url: toPathString(localVarUrlObj),
|
|
280
|
-
options: localVarRequestOptions,
|
|
281
|
-
};
|
|
282
|
-
},
|
|
283
|
-
/**
|
|
284
|
-
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
285
|
-
* @summary Test connection by data source definition
|
|
286
|
-
* @param {TestDefinitionRequest} testDefinitionRequest
|
|
287
|
-
* @param {*} [options] Override http request option.
|
|
288
|
-
* @throws {RequiredError}
|
|
289
|
-
*/
|
|
290
|
-
testDataSourceDefinition: async (testDefinitionRequest, options = {}) => {
|
|
291
|
-
// verify required parameter 'testDefinitionRequest' is not null or undefined
|
|
292
|
-
assertParamExists("testDataSourceDefinition", "testDefinitionRequest", testDefinitionRequest);
|
|
293
|
-
const localVarPath = `/api/v1/actions/dataSource/test`;
|
|
294
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
295
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
296
|
-
let baseOptions;
|
|
297
|
-
if (configuration) {
|
|
298
|
-
baseOptions = configuration.baseOptions;
|
|
299
|
-
}
|
|
300
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
301
|
-
const localVarHeaderParameter = {};
|
|
302
|
-
const localVarQueryParameter = {};
|
|
303
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
304
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
305
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
306
|
-
localVarRequestOptions.headers = {
|
|
307
|
-
...localVarHeaderParameter,
|
|
308
|
-
...headersFromBaseOptions,
|
|
309
|
-
...options.headers,
|
|
310
|
-
};
|
|
311
|
-
const needsSerialization = typeof testDefinitionRequest !== "string" ||
|
|
312
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
313
|
-
localVarRequestOptions.data = needsSerialization
|
|
314
|
-
? JSON.stringify(testDefinitionRequest !== undefined ? testDefinitionRequest : {})
|
|
315
|
-
: testDefinitionRequest || "";
|
|
316
|
-
return {
|
|
317
|
-
url: toPathString(localVarUrlObj),
|
|
318
|
-
options: localVarRequestOptions,
|
|
319
|
-
};
|
|
320
|
-
},
|
|
61
|
+
url: toPathString(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
321
63
|
};
|
|
322
|
-
}
|
|
64
|
+
}
|
|
65
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
323
66
|
/**
|
|
324
|
-
*
|
|
325
|
-
* @
|
|
67
|
+
* It scans a database and reads metadata. The result of the request contains a list of schema names of a database.
|
|
68
|
+
* @summary Get a list of schema names of a database
|
|
69
|
+
* @param {string} dataSourceId Data source id
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
72
|
+
* @throws {RequiredError}
|
|
326
73
|
*/
|
|
327
|
-
export
|
|
328
|
-
|
|
74
|
+
export async function ActionsApiAxiosParamCreator_GetDataSourceSchemata(dataSourceId, options = {}, configuration) {
|
|
75
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
76
|
+
assertParamExists("getDataSourceSchemata", "dataSourceId", dataSourceId);
|
|
77
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scanSchemata`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
78
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
79
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
80
|
+
let baseOptions;
|
|
81
|
+
if (configuration) {
|
|
82
|
+
baseOptions = configuration.baseOptions;
|
|
83
|
+
}
|
|
84
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
85
|
+
const localVarHeaderParameter = {};
|
|
86
|
+
const localVarQueryParameter = {};
|
|
87
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
88
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = {
|
|
90
|
+
...localVarHeaderParameter,
|
|
91
|
+
...headersFromBaseOptions,
|
|
92
|
+
...options.headers,
|
|
93
|
+
};
|
|
329
94
|
return {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
* @summary (EXPERIMENTAL) Compute column statistics
|
|
333
|
-
* @param {string} dataSourceId
|
|
334
|
-
* @param {ColumnStatisticsRequest} columnStatisticsRequest
|
|
335
|
-
* @param {*} [options] Override http request option.
|
|
336
|
-
* @throws {RequiredError}
|
|
337
|
-
*/
|
|
338
|
-
async columnStatistics(dataSourceId, columnStatisticsRequest, options) {
|
|
339
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.columnStatistics(dataSourceId, columnStatisticsRequest, options);
|
|
340
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
341
|
-
},
|
|
342
|
-
/**
|
|
343
|
-
* It scans a database and reads metadata. The result of the request contains a list of schema names of a database.
|
|
344
|
-
* @summary Get a list of schema names of a database
|
|
345
|
-
* @param {string} dataSourceId Data source id
|
|
346
|
-
* @param {*} [options] Override http request option.
|
|
347
|
-
* @throws {RequiredError}
|
|
348
|
-
*/
|
|
349
|
-
async getDataSourceSchemata(dataSourceId, options) {
|
|
350
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDataSourceSchemata(dataSourceId, options);
|
|
351
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
352
|
-
},
|
|
353
|
-
/**
|
|
354
|
-
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
355
|
-
* @summary Scan a database to get a physical data model (PDM)
|
|
356
|
-
* @param {string} dataSourceId Data source id
|
|
357
|
-
* @param {ScanRequest} scanRequest
|
|
358
|
-
* @param {*} [options] Override http request option.
|
|
359
|
-
* @throws {RequiredError}
|
|
360
|
-
*/
|
|
361
|
-
async scanDataSource(dataSourceId, scanRequest, options) {
|
|
362
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.scanDataSource(dataSourceId, scanRequest, options);
|
|
363
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
|
-
},
|
|
365
|
-
/**
|
|
366
|
-
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
367
|
-
* @summary Collect metadata about SQL query
|
|
368
|
-
* @param {string} dataSourceId Data source id
|
|
369
|
-
* @param {ScanSqlRequest} scanSqlRequest
|
|
370
|
-
* @param {*} [options] Override http request option.
|
|
371
|
-
* @throws {RequiredError}
|
|
372
|
-
*/
|
|
373
|
-
async scanSql(dataSourceId, scanSqlRequest, options) {
|
|
374
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.scanSql(dataSourceId, scanSqlRequest, options);
|
|
375
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
|
-
},
|
|
377
|
-
/**
|
|
378
|
-
* Test if it is possible to connect to a database using an existing data source definition.
|
|
379
|
-
* @summary Test data source connection by data source id
|
|
380
|
-
* @param {string} dataSourceId Data source id
|
|
381
|
-
* @param {TestRequest} testRequest
|
|
382
|
-
* @param {*} [options] Override http request option.
|
|
383
|
-
* @throws {RequiredError}
|
|
384
|
-
*/
|
|
385
|
-
async testDataSource(dataSourceId, testRequest, options) {
|
|
386
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testDataSource(dataSourceId, testRequest, options);
|
|
387
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
388
|
-
},
|
|
389
|
-
/**
|
|
390
|
-
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
391
|
-
* @summary Test connection by data source definition
|
|
392
|
-
* @param {TestDefinitionRequest} testDefinitionRequest
|
|
393
|
-
* @param {*} [options] Override http request option.
|
|
394
|
-
* @throws {RequiredError}
|
|
395
|
-
*/
|
|
396
|
-
async testDataSourceDefinition(testDefinitionRequest, options) {
|
|
397
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testDataSourceDefinition(testDefinitionRequest, options);
|
|
398
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
399
|
-
},
|
|
95
|
+
url: toPathString(localVarUrlObj),
|
|
96
|
+
options: localVarRequestOptions,
|
|
400
97
|
};
|
|
401
|
-
}
|
|
98
|
+
}
|
|
99
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
402
100
|
/**
|
|
403
|
-
*
|
|
404
|
-
* @
|
|
101
|
+
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
102
|
+
* @summary Scan a database to get a physical data model (PDM)
|
|
103
|
+
* @param {string} dataSourceId Data source id
|
|
104
|
+
* @param {ScanRequest} scanRequest
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
export async function ActionsApiAxiosParamCreator_ScanDataSource(dataSourceId, scanRequest, options = {}, configuration) {
|
|
110
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
111
|
+
assertParamExists("scanDataSource", "dataSourceId", dataSourceId);
|
|
112
|
+
// verify required parameter 'scanRequest' is not null or undefined
|
|
113
|
+
assertParamExists("scanDataSource", "scanRequest", scanRequest);
|
|
114
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scan`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
122
|
+
const localVarHeaderParameter = {};
|
|
123
|
+
const localVarQueryParameter = {};
|
|
124
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
125
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
127
|
+
localVarRequestOptions.headers = {
|
|
128
|
+
...localVarHeaderParameter,
|
|
129
|
+
...headersFromBaseOptions,
|
|
130
|
+
...options.headers,
|
|
131
|
+
};
|
|
132
|
+
const needsSerialization = typeof scanRequest !== "string" ||
|
|
133
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
134
|
+
localVarRequestOptions.data = needsSerialization
|
|
135
|
+
? JSON.stringify(scanRequest !== undefined ? scanRequest : {})
|
|
136
|
+
: scanRequest || "";
|
|
137
|
+
return {
|
|
138
|
+
url: toPathString(localVarUrlObj),
|
|
139
|
+
options: localVarRequestOptions,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
143
|
+
/**
|
|
144
|
+
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
145
|
+
* @summary Collect metadata about SQL query
|
|
146
|
+
* @param {string} dataSourceId Data source id
|
|
147
|
+
* @param {ScanSqlRequest} scanSqlRequest
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
export async function ActionsApiAxiosParamCreator_ScanSql(dataSourceId, scanSqlRequest, options = {}, configuration) {
|
|
153
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
154
|
+
assertParamExists("scanSql", "dataSourceId", dataSourceId);
|
|
155
|
+
// verify required parameter 'scanSqlRequest' is not null or undefined
|
|
156
|
+
assertParamExists("scanSql", "scanSqlRequest", scanSqlRequest);
|
|
157
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scanSql`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
158
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
159
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
160
|
+
let baseOptions;
|
|
161
|
+
if (configuration) {
|
|
162
|
+
baseOptions = configuration.baseOptions;
|
|
163
|
+
}
|
|
164
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
165
|
+
const localVarHeaderParameter = {};
|
|
166
|
+
const localVarQueryParameter = {};
|
|
167
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
168
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
169
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
170
|
+
localVarRequestOptions.headers = {
|
|
171
|
+
...localVarHeaderParameter,
|
|
172
|
+
...headersFromBaseOptions,
|
|
173
|
+
...options.headers,
|
|
174
|
+
};
|
|
175
|
+
const needsSerialization = typeof scanSqlRequest !== "string" ||
|
|
176
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
177
|
+
localVarRequestOptions.data = needsSerialization
|
|
178
|
+
? JSON.stringify(scanSqlRequest !== undefined ? scanSqlRequest : {})
|
|
179
|
+
: scanSqlRequest || "";
|
|
180
|
+
return {
|
|
181
|
+
url: toPathString(localVarUrlObj),
|
|
182
|
+
options: localVarRequestOptions,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
186
|
+
/**
|
|
187
|
+
* Test if it is possible to connect to a database using an existing data source definition.
|
|
188
|
+
* @summary Test data source connection by data source id
|
|
189
|
+
* @param {string} dataSourceId Data source id
|
|
190
|
+
* @param {TestRequest} testRequest
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
193
|
+
* @throws {RequiredError}
|
|
405
194
|
*/
|
|
406
|
-
export
|
|
407
|
-
|
|
195
|
+
export async function ActionsApiAxiosParamCreator_TestDataSource(dataSourceId, testRequest, options = {}, configuration) {
|
|
196
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
197
|
+
assertParamExists("testDataSource", "dataSourceId", dataSourceId);
|
|
198
|
+
// verify required parameter 'testRequest' is not null or undefined
|
|
199
|
+
assertParamExists("testDataSource", "testRequest", testRequest);
|
|
200
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/test`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
201
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
202
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
203
|
+
let baseOptions;
|
|
204
|
+
if (configuration) {
|
|
205
|
+
baseOptions = configuration.baseOptions;
|
|
206
|
+
}
|
|
207
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
208
|
+
const localVarHeaderParameter = {};
|
|
209
|
+
const localVarQueryParameter = {};
|
|
210
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
211
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = {
|
|
214
|
+
...localVarHeaderParameter,
|
|
215
|
+
...headersFromBaseOptions,
|
|
216
|
+
...options.headers,
|
|
217
|
+
};
|
|
218
|
+
const needsSerialization = typeof testRequest !== "string" ||
|
|
219
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
220
|
+
localVarRequestOptions.data = needsSerialization
|
|
221
|
+
? JSON.stringify(testRequest !== undefined ? testRequest : {})
|
|
222
|
+
: testRequest || "";
|
|
408
223
|
return {
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
.scanDataSource(requestParameters.dataSourceId, requestParameters.scanRequest, options)
|
|
443
|
-
.then((request) => request(axios, basePath));
|
|
444
|
-
},
|
|
445
|
-
/**
|
|
446
|
-
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
447
|
-
* @summary Collect metadata about SQL query
|
|
448
|
-
* @param {ActionsApiScanSqlRequest} requestParameters Request parameters.
|
|
449
|
-
* @param {*} [options] Override http request option.
|
|
450
|
-
* @throws {RequiredError}
|
|
451
|
-
*/
|
|
452
|
-
scanSql(requestParameters, options) {
|
|
453
|
-
return localVarFp
|
|
454
|
-
.scanSql(requestParameters.dataSourceId, requestParameters.scanSqlRequest, options)
|
|
455
|
-
.then((request) => request(axios, basePath));
|
|
456
|
-
},
|
|
457
|
-
/**
|
|
458
|
-
* Test if it is possible to connect to a database using an existing data source definition.
|
|
459
|
-
* @summary Test data source connection by data source id
|
|
460
|
-
* @param {ActionsApiTestDataSourceRequest} requestParameters Request parameters.
|
|
461
|
-
* @param {*} [options] Override http request option.
|
|
462
|
-
* @throws {RequiredError}
|
|
463
|
-
*/
|
|
464
|
-
testDataSource(requestParameters, options) {
|
|
465
|
-
return localVarFp
|
|
466
|
-
.testDataSource(requestParameters.dataSourceId, requestParameters.testRequest, options)
|
|
467
|
-
.then((request) => request(axios, basePath));
|
|
468
|
-
},
|
|
469
|
-
/**
|
|
470
|
-
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
471
|
-
* @summary Test connection by data source definition
|
|
472
|
-
* @param {ActionsApiTestDataSourceDefinitionRequest} requestParameters Request parameters.
|
|
473
|
-
* @param {*} [options] Override http request option.
|
|
474
|
-
* @throws {RequiredError}
|
|
475
|
-
*/
|
|
476
|
-
testDataSourceDefinition(requestParameters, options) {
|
|
477
|
-
return localVarFp
|
|
478
|
-
.testDataSourceDefinition(requestParameters.testDefinitionRequest, options)
|
|
479
|
-
.then((request) => request(axios, basePath));
|
|
480
|
-
},
|
|
224
|
+
url: toPathString(localVarUrlObj),
|
|
225
|
+
options: localVarRequestOptions,
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
229
|
+
/**
|
|
230
|
+
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
231
|
+
* @summary Test connection by data source definition
|
|
232
|
+
* @param {TestDefinitionRequest} testDefinitionRequest
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
export async function ActionsApiAxiosParamCreator_TestDataSourceDefinition(testDefinitionRequest, options = {}, configuration) {
|
|
238
|
+
// verify required parameter 'testDefinitionRequest' is not null or undefined
|
|
239
|
+
assertParamExists("testDataSourceDefinition", "testDefinitionRequest", testDefinitionRequest);
|
|
240
|
+
const localVarPath = `/api/v1/actions/dataSource/test`;
|
|
241
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
242
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
|
+
let baseOptions;
|
|
244
|
+
if (configuration) {
|
|
245
|
+
baseOptions = configuration.baseOptions;
|
|
246
|
+
}
|
|
247
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
248
|
+
const localVarHeaderParameter = {};
|
|
249
|
+
const localVarQueryParameter = {};
|
|
250
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
251
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
252
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
253
|
+
localVarRequestOptions.headers = {
|
|
254
|
+
...localVarHeaderParameter,
|
|
255
|
+
...headersFromBaseOptions,
|
|
256
|
+
...options.headers,
|
|
481
257
|
};
|
|
482
|
-
|
|
258
|
+
const needsSerialization = typeof testDefinitionRequest !== "string" ||
|
|
259
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
260
|
+
localVarRequestOptions.data = needsSerialization
|
|
261
|
+
? JSON.stringify(testDefinitionRequest !== undefined ? testDefinitionRequest : {})
|
|
262
|
+
: testDefinitionRequest || "";
|
|
263
|
+
return {
|
|
264
|
+
url: toPathString(localVarUrlObj),
|
|
265
|
+
options: localVarRequestOptions,
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
// ActionsApi Api FP
|
|
269
|
+
/**
|
|
270
|
+
* (EXPERIMENTAL) Computes the requested statistical parameters of a column in a data source.
|
|
271
|
+
* @summary (EXPERIMENTAL) Compute column statistics
|
|
272
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
273
|
+
* @param {string} basePath Base path.
|
|
274
|
+
* @param {ActionsApiColumnStatisticsRequest} requestParameters Request parameters.
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
export async function ActionsApi_ColumnStatistics(axios, basePath, requestParameters, options, configuration) {
|
|
280
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_ColumnStatistics(requestParameters.dataSourceId, requestParameters.columnStatisticsRequest, options || {}, configuration);
|
|
281
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
282
|
+
}
|
|
283
|
+
// ActionsApi Api FP
|
|
284
|
+
/**
|
|
285
|
+
* It scans a database and reads metadata. The result of the request contains a list of schema names of a database.
|
|
286
|
+
* @summary Get a list of schema names of a database
|
|
287
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
288
|
+
* @param {string} basePath Base path.
|
|
289
|
+
* @param {ActionsApiGetDataSourceSchemataRequest} requestParameters Request parameters.
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
export async function ActionsApi_GetDataSourceSchemata(axios, basePath, requestParameters, options, configuration) {
|
|
295
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_GetDataSourceSchemata(requestParameters.dataSourceId, options || {}, configuration);
|
|
296
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
297
|
+
}
|
|
298
|
+
// ActionsApi Api FP
|
|
299
|
+
/**
|
|
300
|
+
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
301
|
+
* @summary Scan a database to get a physical data model (PDM)
|
|
302
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
303
|
+
* @param {string} basePath Base path.
|
|
304
|
+
* @param {ActionsApiScanDataSourceRequest} requestParameters Request parameters.
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
export async function ActionsApi_ScanDataSource(axios, basePath, requestParameters, options, configuration) {
|
|
310
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_ScanDataSource(requestParameters.dataSourceId, requestParameters.scanRequest, options || {}, configuration);
|
|
311
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
312
|
+
}
|
|
313
|
+
// ActionsApi Api FP
|
|
314
|
+
/**
|
|
315
|
+
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
316
|
+
* @summary Collect metadata about SQL query
|
|
317
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
318
|
+
* @param {string} basePath Base path.
|
|
319
|
+
* @param {ActionsApiScanSqlRequest} requestParameters Request parameters.
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
322
|
+
* @throws {RequiredError}
|
|
323
|
+
*/
|
|
324
|
+
export async function ActionsApi_ScanSql(axios, basePath, requestParameters, options, configuration) {
|
|
325
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_ScanSql(requestParameters.dataSourceId, requestParameters.scanSqlRequest, options || {}, configuration);
|
|
326
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
327
|
+
}
|
|
328
|
+
// ActionsApi Api FP
|
|
329
|
+
/**
|
|
330
|
+
* Test if it is possible to connect to a database using an existing data source definition.
|
|
331
|
+
* @summary Test data source connection by data source id
|
|
332
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
333
|
+
* @param {string} basePath Base path.
|
|
334
|
+
* @param {ActionsApiTestDataSourceRequest} requestParameters Request parameters.
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
export async function ActionsApi_TestDataSource(axios, basePath, requestParameters, options, configuration) {
|
|
340
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_TestDataSource(requestParameters.dataSourceId, requestParameters.testRequest, options || {}, configuration);
|
|
341
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
342
|
+
}
|
|
343
|
+
// ActionsApi Api FP
|
|
344
|
+
/**
|
|
345
|
+
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
346
|
+
* @summary Test connection by data source definition
|
|
347
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
348
|
+
* @param {string} basePath Base path.
|
|
349
|
+
* @param {ActionsApiTestDataSourceDefinitionRequest} requestParameters Request parameters.
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
export async function ActionsApi_TestDataSourceDefinition(axios, basePath, requestParameters, options, configuration) {
|
|
355
|
+
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_TestDataSourceDefinition(requestParameters.testDefinitionRequest, options || {}, configuration);
|
|
356
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
357
|
+
}
|
|
483
358
|
/**
|
|
484
359
|
* ActionsApi - object-oriented interface
|
|
485
360
|
* @export
|
|
@@ -496,9 +371,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
496
371
|
* @memberof ActionsApi
|
|
497
372
|
*/
|
|
498
373
|
columnStatistics(requestParameters, options) {
|
|
499
|
-
return
|
|
500
|
-
.columnStatistics(requestParameters.dataSourceId, requestParameters.columnStatisticsRequest, options)
|
|
501
|
-
.then((request) => request(this.axios, this.basePath));
|
|
374
|
+
return ActionsApi_ColumnStatistics(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
502
375
|
}
|
|
503
376
|
/**
|
|
504
377
|
* It scans a database and reads metadata. The result of the request contains a list of schema names of a database.
|
|
@@ -509,9 +382,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
509
382
|
* @memberof ActionsApi
|
|
510
383
|
*/
|
|
511
384
|
getDataSourceSchemata(requestParameters, options) {
|
|
512
|
-
return
|
|
513
|
-
.getDataSourceSchemata(requestParameters.dataSourceId, options)
|
|
514
|
-
.then((request) => request(this.axios, this.basePath));
|
|
385
|
+
return ActionsApi_GetDataSourceSchemata(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
515
386
|
}
|
|
516
387
|
/**
|
|
517
388
|
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
@@ -522,9 +393,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
522
393
|
* @memberof ActionsApi
|
|
523
394
|
*/
|
|
524
395
|
scanDataSource(requestParameters, options) {
|
|
525
|
-
return
|
|
526
|
-
.scanDataSource(requestParameters.dataSourceId, requestParameters.scanRequest, options)
|
|
527
|
-
.then((request) => request(this.axios, this.basePath));
|
|
396
|
+
return ActionsApi_ScanDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
528
397
|
}
|
|
529
398
|
/**
|
|
530
399
|
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
@@ -535,9 +404,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
535
404
|
* @memberof ActionsApi
|
|
536
405
|
*/
|
|
537
406
|
scanSql(requestParameters, options) {
|
|
538
|
-
return
|
|
539
|
-
.scanSql(requestParameters.dataSourceId, requestParameters.scanSqlRequest, options)
|
|
540
|
-
.then((request) => request(this.axios, this.basePath));
|
|
407
|
+
return ActionsApi_ScanSql(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
541
408
|
}
|
|
542
409
|
/**
|
|
543
410
|
* Test if it is possible to connect to a database using an existing data source definition.
|
|
@@ -548,9 +415,7 @@ export class ActionsApi extends BaseAPI {
|
|
|
548
415
|
* @memberof ActionsApi
|
|
549
416
|
*/
|
|
550
417
|
testDataSource(requestParameters, options) {
|
|
551
|
-
return
|
|
552
|
-
.testDataSource(requestParameters.dataSourceId, requestParameters.testRequest, options)
|
|
553
|
-
.then((request) => request(this.axios, this.basePath));
|
|
418
|
+
return ActionsApi_TestDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
554
419
|
}
|
|
555
420
|
/**
|
|
556
421
|
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
@@ -561,102 +426,67 @@ export class ActionsApi extends BaseAPI {
|
|
|
561
426
|
* @memberof ActionsApi
|
|
562
427
|
*/
|
|
563
428
|
testDataSourceDefinition(requestParameters, options) {
|
|
564
|
-
return
|
|
565
|
-
.testDataSourceDefinition(requestParameters.testDefinitionRequest, options)
|
|
566
|
-
.then((request) => request(this.axios, this.basePath));
|
|
429
|
+
return ActionsApi_TestDataSourceDefinition(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
567
430
|
}
|
|
568
431
|
}
|
|
432
|
+
// ComputationApi FP - ComputationApiAxiosParamCreator
|
|
569
433
|
/**
|
|
570
|
-
*
|
|
571
|
-
* @
|
|
434
|
+
* (EXPERIMENTAL) Computes the requested statistical parameters of a column in a data source.
|
|
435
|
+
* @summary (EXPERIMENTAL) Compute column statistics
|
|
436
|
+
* @param {string} dataSourceId
|
|
437
|
+
* @param {ColumnStatisticsRequest} columnStatisticsRequest
|
|
438
|
+
* @param {*} [options] Override http request option.
|
|
439
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
440
|
+
* @throws {RequiredError}
|
|
572
441
|
*/
|
|
573
|
-
export
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
596
|
-
const localVarHeaderParameter = {};
|
|
597
|
-
const localVarQueryParameter = {};
|
|
598
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
599
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
600
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
601
|
-
localVarRequestOptions.headers = {
|
|
602
|
-
...localVarHeaderParameter,
|
|
603
|
-
...headersFromBaseOptions,
|
|
604
|
-
...options.headers,
|
|
605
|
-
};
|
|
606
|
-
const needsSerialization = typeof columnStatisticsRequest !== "string" ||
|
|
607
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
608
|
-
localVarRequestOptions.data = needsSerialization
|
|
609
|
-
? JSON.stringify(columnStatisticsRequest !== undefined ? columnStatisticsRequest : {})
|
|
610
|
-
: columnStatisticsRequest || "";
|
|
611
|
-
return {
|
|
612
|
-
url: toPathString(localVarUrlObj),
|
|
613
|
-
options: localVarRequestOptions,
|
|
614
|
-
};
|
|
615
|
-
},
|
|
442
|
+
export async function ComputationApiAxiosParamCreator_ColumnStatistics(dataSourceId, columnStatisticsRequest, options = {}, configuration) {
|
|
443
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
444
|
+
assertParamExists("columnStatistics", "dataSourceId", dataSourceId);
|
|
445
|
+
// verify required parameter 'columnStatisticsRequest' is not null or undefined
|
|
446
|
+
assertParamExists("columnStatistics", "columnStatisticsRequest", columnStatisticsRequest);
|
|
447
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/computeColumnStatistics`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
449
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
450
|
+
let baseOptions;
|
|
451
|
+
if (configuration) {
|
|
452
|
+
baseOptions = configuration.baseOptions;
|
|
453
|
+
}
|
|
454
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
455
|
+
const localVarHeaderParameter = {};
|
|
456
|
+
const localVarQueryParameter = {};
|
|
457
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
458
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
459
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
460
|
+
localVarRequestOptions.headers = {
|
|
461
|
+
...localVarHeaderParameter,
|
|
462
|
+
...headersFromBaseOptions,
|
|
463
|
+
...options.headers,
|
|
616
464
|
};
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
export const ComputationApiFp = function (configuration) {
|
|
623
|
-
const localVarAxiosParamCreator = ComputationApiAxiosParamCreator(configuration);
|
|
465
|
+
const needsSerialization = typeof columnStatisticsRequest !== "string" ||
|
|
466
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
467
|
+
localVarRequestOptions.data = needsSerialization
|
|
468
|
+
? JSON.stringify(columnStatisticsRequest !== undefined ? columnStatisticsRequest : {})
|
|
469
|
+
: columnStatisticsRequest || "";
|
|
624
470
|
return {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
* @summary (EXPERIMENTAL) Compute column statistics
|
|
628
|
-
* @param {string} dataSourceId
|
|
629
|
-
* @param {ColumnStatisticsRequest} columnStatisticsRequest
|
|
630
|
-
* @param {*} [options] Override http request option.
|
|
631
|
-
* @throws {RequiredError}
|
|
632
|
-
*/
|
|
633
|
-
async columnStatistics(dataSourceId, columnStatisticsRequest, options) {
|
|
634
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.columnStatistics(dataSourceId, columnStatisticsRequest, options);
|
|
635
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
636
|
-
},
|
|
471
|
+
url: toPathString(localVarUrlObj),
|
|
472
|
+
options: localVarRequestOptions,
|
|
637
473
|
};
|
|
638
|
-
}
|
|
474
|
+
}
|
|
475
|
+
// ComputationApi Api FP
|
|
639
476
|
/**
|
|
640
|
-
*
|
|
641
|
-
* @
|
|
477
|
+
* (EXPERIMENTAL) Computes the requested statistical parameters of a column in a data source.
|
|
478
|
+
* @summary (EXPERIMENTAL) Compute column statistics
|
|
479
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
480
|
+
* @param {string} basePath Base path.
|
|
481
|
+
* @param {ComputationApiColumnStatisticsRequest} requestParameters Request parameters.
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
484
|
+
* @throws {RequiredError}
|
|
642
485
|
*/
|
|
643
|
-
export
|
|
644
|
-
const
|
|
645
|
-
return
|
|
646
|
-
|
|
647
|
-
* (EXPERIMENTAL) Computes the requested statistical parameters of a column in a data source.
|
|
648
|
-
* @summary (EXPERIMENTAL) Compute column statistics
|
|
649
|
-
* @param {ComputationApiColumnStatisticsRequest} requestParameters Request parameters.
|
|
650
|
-
* @param {*} [options] Override http request option.
|
|
651
|
-
* @throws {RequiredError}
|
|
652
|
-
*/
|
|
653
|
-
columnStatistics(requestParameters, options) {
|
|
654
|
-
return localVarFp
|
|
655
|
-
.columnStatistics(requestParameters.dataSourceId, requestParameters.columnStatisticsRequest, options)
|
|
656
|
-
.then((request) => request(axios, basePath));
|
|
657
|
-
},
|
|
658
|
-
};
|
|
659
|
-
};
|
|
486
|
+
export async function ComputationApi_ColumnStatistics(axios, basePath, requestParameters, options, configuration) {
|
|
487
|
+
const localVarAxiosArgs = await ComputationApiAxiosParamCreator_ColumnStatistics(requestParameters.dataSourceId, requestParameters.columnStatisticsRequest, options || {}, configuration);
|
|
488
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
489
|
+
}
|
|
660
490
|
/**
|
|
661
491
|
* ComputationApi - object-oriented interface
|
|
662
492
|
* @export
|
|
@@ -673,222 +503,174 @@ export class ComputationApi extends BaseAPI {
|
|
|
673
503
|
* @memberof ComputationApi
|
|
674
504
|
*/
|
|
675
505
|
columnStatistics(requestParameters, options) {
|
|
676
|
-
return
|
|
677
|
-
.columnStatistics(requestParameters.dataSourceId, requestParameters.columnStatisticsRequest, options)
|
|
678
|
-
.then((request) => request(this.axios, this.basePath));
|
|
506
|
+
return ComputationApi_ColumnStatistics(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
679
507
|
}
|
|
680
508
|
}
|
|
509
|
+
// ScanningApi FP - ScanningApiAxiosParamCreator
|
|
681
510
|
/**
|
|
682
|
-
*
|
|
683
|
-
* @
|
|
511
|
+
* It scans a database and reads metadata. The result of the request contains a list of schema names of a database.
|
|
512
|
+
* @summary Get a list of schema names of a database
|
|
513
|
+
* @param {string} dataSourceId Data source id
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
516
|
+
* @throws {RequiredError}
|
|
684
517
|
*/
|
|
685
|
-
export
|
|
518
|
+
export async function ScanningApiAxiosParamCreator_GetDataSourceSchemata(dataSourceId, options = {}, configuration) {
|
|
519
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
520
|
+
assertParamExists("getDataSourceSchemata", "dataSourceId", dataSourceId);
|
|
521
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scanSchemata`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
522
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
523
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
524
|
+
let baseOptions;
|
|
525
|
+
if (configuration) {
|
|
526
|
+
baseOptions = configuration.baseOptions;
|
|
527
|
+
}
|
|
528
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
529
|
+
const localVarHeaderParameter = {};
|
|
530
|
+
const localVarQueryParameter = {};
|
|
531
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
532
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
533
|
+
localVarRequestOptions.headers = {
|
|
534
|
+
...localVarHeaderParameter,
|
|
535
|
+
...headersFromBaseOptions,
|
|
536
|
+
...options.headers,
|
|
537
|
+
};
|
|
686
538
|
return {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
* @summary Get a list of schema names of a database
|
|
690
|
-
* @param {string} dataSourceId Data source id
|
|
691
|
-
* @param {*} [options] Override http request option.
|
|
692
|
-
* @throws {RequiredError}
|
|
693
|
-
*/
|
|
694
|
-
getDataSourceSchemata: async (dataSourceId, options = {}) => {
|
|
695
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
696
|
-
assertParamExists("getDataSourceSchemata", "dataSourceId", dataSourceId);
|
|
697
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scanSchemata`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
698
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
699
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
700
|
-
let baseOptions;
|
|
701
|
-
if (configuration) {
|
|
702
|
-
baseOptions = configuration.baseOptions;
|
|
703
|
-
}
|
|
704
|
-
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
705
|
-
const localVarHeaderParameter = {};
|
|
706
|
-
const localVarQueryParameter = {};
|
|
707
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
708
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
709
|
-
localVarRequestOptions.headers = {
|
|
710
|
-
...localVarHeaderParameter,
|
|
711
|
-
...headersFromBaseOptions,
|
|
712
|
-
...options.headers,
|
|
713
|
-
};
|
|
714
|
-
return {
|
|
715
|
-
url: toPathString(localVarUrlObj),
|
|
716
|
-
options: localVarRequestOptions,
|
|
717
|
-
};
|
|
718
|
-
},
|
|
719
|
-
/**
|
|
720
|
-
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
721
|
-
* @summary Scan a database to get a physical data model (PDM)
|
|
722
|
-
* @param {string} dataSourceId Data source id
|
|
723
|
-
* @param {ScanRequest} scanRequest
|
|
724
|
-
* @param {*} [options] Override http request option.
|
|
725
|
-
* @throws {RequiredError}
|
|
726
|
-
*/
|
|
727
|
-
scanDataSource: async (dataSourceId, scanRequest, options = {}) => {
|
|
728
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
729
|
-
assertParamExists("scanDataSource", "dataSourceId", dataSourceId);
|
|
730
|
-
// verify required parameter 'scanRequest' is not null or undefined
|
|
731
|
-
assertParamExists("scanDataSource", "scanRequest", scanRequest);
|
|
732
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scan`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
733
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
734
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
735
|
-
let baseOptions;
|
|
736
|
-
if (configuration) {
|
|
737
|
-
baseOptions = configuration.baseOptions;
|
|
738
|
-
}
|
|
739
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
740
|
-
const localVarHeaderParameter = {};
|
|
741
|
-
const localVarQueryParameter = {};
|
|
742
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
743
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
744
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
745
|
-
localVarRequestOptions.headers = {
|
|
746
|
-
...localVarHeaderParameter,
|
|
747
|
-
...headersFromBaseOptions,
|
|
748
|
-
...options.headers,
|
|
749
|
-
};
|
|
750
|
-
const needsSerialization = typeof scanRequest !== "string" ||
|
|
751
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
752
|
-
localVarRequestOptions.data = needsSerialization
|
|
753
|
-
? JSON.stringify(scanRequest !== undefined ? scanRequest : {})
|
|
754
|
-
: scanRequest || "";
|
|
755
|
-
return {
|
|
756
|
-
url: toPathString(localVarUrlObj),
|
|
757
|
-
options: localVarRequestOptions,
|
|
758
|
-
};
|
|
759
|
-
},
|
|
760
|
-
/**
|
|
761
|
-
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
762
|
-
* @summary Collect metadata about SQL query
|
|
763
|
-
* @param {string} dataSourceId Data source id
|
|
764
|
-
* @param {ScanSqlRequest} scanSqlRequest
|
|
765
|
-
* @param {*} [options] Override http request option.
|
|
766
|
-
* @throws {RequiredError}
|
|
767
|
-
*/
|
|
768
|
-
scanSql: async (dataSourceId, scanSqlRequest, options = {}) => {
|
|
769
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
770
|
-
assertParamExists("scanSql", "dataSourceId", dataSourceId);
|
|
771
|
-
// verify required parameter 'scanSqlRequest' is not null or undefined
|
|
772
|
-
assertParamExists("scanSql", "scanSqlRequest", scanSqlRequest);
|
|
773
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scanSql`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
774
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
775
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
776
|
-
let baseOptions;
|
|
777
|
-
if (configuration) {
|
|
778
|
-
baseOptions = configuration.baseOptions;
|
|
779
|
-
}
|
|
780
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
781
|
-
const localVarHeaderParameter = {};
|
|
782
|
-
const localVarQueryParameter = {};
|
|
783
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
784
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
785
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
786
|
-
localVarRequestOptions.headers = {
|
|
787
|
-
...localVarHeaderParameter,
|
|
788
|
-
...headersFromBaseOptions,
|
|
789
|
-
...options.headers,
|
|
790
|
-
};
|
|
791
|
-
const needsSerialization = typeof scanSqlRequest !== "string" ||
|
|
792
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
793
|
-
localVarRequestOptions.data = needsSerialization
|
|
794
|
-
? JSON.stringify(scanSqlRequest !== undefined ? scanSqlRequest : {})
|
|
795
|
-
: scanSqlRequest || "";
|
|
796
|
-
return {
|
|
797
|
-
url: toPathString(localVarUrlObj),
|
|
798
|
-
options: localVarRequestOptions,
|
|
799
|
-
};
|
|
800
|
-
},
|
|
539
|
+
url: toPathString(localVarUrlObj),
|
|
540
|
+
options: localVarRequestOptions,
|
|
801
541
|
};
|
|
802
|
-
}
|
|
542
|
+
}
|
|
543
|
+
// ScanningApi FP - ScanningApiAxiosParamCreator
|
|
803
544
|
/**
|
|
804
|
-
*
|
|
805
|
-
* @
|
|
545
|
+
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
546
|
+
* @summary Scan a database to get a physical data model (PDM)
|
|
547
|
+
* @param {string} dataSourceId Data source id
|
|
548
|
+
* @param {ScanRequest} scanRequest
|
|
549
|
+
* @param {*} [options] Override http request option.
|
|
550
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
551
|
+
* @throws {RequiredError}
|
|
806
552
|
*/
|
|
807
|
-
export
|
|
808
|
-
|
|
553
|
+
export async function ScanningApiAxiosParamCreator_ScanDataSource(dataSourceId, scanRequest, options = {}, configuration) {
|
|
554
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
555
|
+
assertParamExists("scanDataSource", "dataSourceId", dataSourceId);
|
|
556
|
+
// verify required parameter 'scanRequest' is not null or undefined
|
|
557
|
+
assertParamExists("scanDataSource", "scanRequest", scanRequest);
|
|
558
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scan`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
559
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
560
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
561
|
+
let baseOptions;
|
|
562
|
+
if (configuration) {
|
|
563
|
+
baseOptions = configuration.baseOptions;
|
|
564
|
+
}
|
|
565
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
566
|
+
const localVarHeaderParameter = {};
|
|
567
|
+
const localVarQueryParameter = {};
|
|
568
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
569
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
570
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
571
|
+
localVarRequestOptions.headers = {
|
|
572
|
+
...localVarHeaderParameter,
|
|
573
|
+
...headersFromBaseOptions,
|
|
574
|
+
...options.headers,
|
|
575
|
+
};
|
|
576
|
+
const needsSerialization = typeof scanRequest !== "string" ||
|
|
577
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
578
|
+
localVarRequestOptions.data = needsSerialization
|
|
579
|
+
? JSON.stringify(scanRequest !== undefined ? scanRequest : {})
|
|
580
|
+
: scanRequest || "";
|
|
809
581
|
return {
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
* @summary Get a list of schema names of a database
|
|
813
|
-
* @param {string} dataSourceId Data source id
|
|
814
|
-
* @param {*} [options] Override http request option.
|
|
815
|
-
* @throws {RequiredError}
|
|
816
|
-
*/
|
|
817
|
-
async getDataSourceSchemata(dataSourceId, options) {
|
|
818
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getDataSourceSchemata(dataSourceId, options);
|
|
819
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
820
|
-
},
|
|
821
|
-
/**
|
|
822
|
-
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
823
|
-
* @summary Scan a database to get a physical data model (PDM)
|
|
824
|
-
* @param {string} dataSourceId Data source id
|
|
825
|
-
* @param {ScanRequest} scanRequest
|
|
826
|
-
* @param {*} [options] Override http request option.
|
|
827
|
-
* @throws {RequiredError}
|
|
828
|
-
*/
|
|
829
|
-
async scanDataSource(dataSourceId, scanRequest, options) {
|
|
830
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.scanDataSource(dataSourceId, scanRequest, options);
|
|
831
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
832
|
-
},
|
|
833
|
-
/**
|
|
834
|
-
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
835
|
-
* @summary Collect metadata about SQL query
|
|
836
|
-
* @param {string} dataSourceId Data source id
|
|
837
|
-
* @param {ScanSqlRequest} scanSqlRequest
|
|
838
|
-
* @param {*} [options] Override http request option.
|
|
839
|
-
* @throws {RequiredError}
|
|
840
|
-
*/
|
|
841
|
-
async scanSql(dataSourceId, scanSqlRequest, options) {
|
|
842
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.scanSql(dataSourceId, scanSqlRequest, options);
|
|
843
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
844
|
-
},
|
|
582
|
+
url: toPathString(localVarUrlObj),
|
|
583
|
+
options: localVarRequestOptions,
|
|
845
584
|
};
|
|
846
|
-
}
|
|
585
|
+
}
|
|
586
|
+
// ScanningApi FP - ScanningApiAxiosParamCreator
|
|
847
587
|
/**
|
|
848
|
-
*
|
|
849
|
-
* @
|
|
588
|
+
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
589
|
+
* @summary Collect metadata about SQL query
|
|
590
|
+
* @param {string} dataSourceId Data source id
|
|
591
|
+
* @param {ScanSqlRequest} scanSqlRequest
|
|
592
|
+
* @param {*} [options] Override http request option.
|
|
593
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
594
|
+
* @throws {RequiredError}
|
|
850
595
|
*/
|
|
851
|
-
export
|
|
852
|
-
|
|
596
|
+
export async function ScanningApiAxiosParamCreator_ScanSql(dataSourceId, scanSqlRequest, options = {}, configuration) {
|
|
597
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
598
|
+
assertParamExists("scanSql", "dataSourceId", dataSourceId);
|
|
599
|
+
// verify required parameter 'scanSqlRequest' is not null or undefined
|
|
600
|
+
assertParamExists("scanSql", "scanSqlRequest", scanSqlRequest);
|
|
601
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/scanSql`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
602
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
603
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
604
|
+
let baseOptions;
|
|
605
|
+
if (configuration) {
|
|
606
|
+
baseOptions = configuration.baseOptions;
|
|
607
|
+
}
|
|
608
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
609
|
+
const localVarHeaderParameter = {};
|
|
610
|
+
const localVarQueryParameter = {};
|
|
611
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
612
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
613
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
614
|
+
localVarRequestOptions.headers = {
|
|
615
|
+
...localVarHeaderParameter,
|
|
616
|
+
...headersFromBaseOptions,
|
|
617
|
+
...options.headers,
|
|
618
|
+
};
|
|
619
|
+
const needsSerialization = typeof scanSqlRequest !== "string" ||
|
|
620
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
621
|
+
localVarRequestOptions.data = needsSerialization
|
|
622
|
+
? JSON.stringify(scanSqlRequest !== undefined ? scanSqlRequest : {})
|
|
623
|
+
: scanSqlRequest || "";
|
|
853
624
|
return {
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
* @summary Get a list of schema names of a database
|
|
857
|
-
* @param {ScanningApiGetDataSourceSchemataRequest} requestParameters Request parameters.
|
|
858
|
-
* @param {*} [options] Override http request option.
|
|
859
|
-
* @throws {RequiredError}
|
|
860
|
-
*/
|
|
861
|
-
getDataSourceSchemata(requestParameters, options) {
|
|
862
|
-
return localVarFp
|
|
863
|
-
.getDataSourceSchemata(requestParameters.dataSourceId, options)
|
|
864
|
-
.then((request) => request(axios, basePath));
|
|
865
|
-
},
|
|
866
|
-
/**
|
|
867
|
-
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
868
|
-
* @summary Scan a database to get a physical data model (PDM)
|
|
869
|
-
* @param {ScanningApiScanDataSourceRequest} requestParameters Request parameters.
|
|
870
|
-
* @param {*} [options] Override http request option.
|
|
871
|
-
* @throws {RequiredError}
|
|
872
|
-
*/
|
|
873
|
-
scanDataSource(requestParameters, options) {
|
|
874
|
-
return localVarFp
|
|
875
|
-
.scanDataSource(requestParameters.dataSourceId, requestParameters.scanRequest, options)
|
|
876
|
-
.then((request) => request(axios, basePath));
|
|
877
|
-
},
|
|
878
|
-
/**
|
|
879
|
-
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
880
|
-
* @summary Collect metadata about SQL query
|
|
881
|
-
* @param {ScanningApiScanSqlRequest} requestParameters Request parameters.
|
|
882
|
-
* @param {*} [options] Override http request option.
|
|
883
|
-
* @throws {RequiredError}
|
|
884
|
-
*/
|
|
885
|
-
scanSql(requestParameters, options) {
|
|
886
|
-
return localVarFp
|
|
887
|
-
.scanSql(requestParameters.dataSourceId, requestParameters.scanSqlRequest, options)
|
|
888
|
-
.then((request) => request(axios, basePath));
|
|
889
|
-
},
|
|
625
|
+
url: toPathString(localVarUrlObj),
|
|
626
|
+
options: localVarRequestOptions,
|
|
890
627
|
};
|
|
891
|
-
}
|
|
628
|
+
}
|
|
629
|
+
// ScanningApi Api FP
|
|
630
|
+
/**
|
|
631
|
+
* It scans a database and reads metadata. The result of the request contains a list of schema names of a database.
|
|
632
|
+
* @summary Get a list of schema names of a database
|
|
633
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
634
|
+
* @param {string} basePath Base path.
|
|
635
|
+
* @param {ScanningApiGetDataSourceSchemataRequest} requestParameters Request parameters.
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
export async function ScanningApi_GetDataSourceSchemata(axios, basePath, requestParameters, options, configuration) {
|
|
641
|
+
const localVarAxiosArgs = await ScanningApiAxiosParamCreator_GetDataSourceSchemata(requestParameters.dataSourceId, options || {}, configuration);
|
|
642
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
643
|
+
}
|
|
644
|
+
// ScanningApi Api FP
|
|
645
|
+
/**
|
|
646
|
+
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
647
|
+
* @summary Scan a database to get a physical data model (PDM)
|
|
648
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
649
|
+
* @param {string} basePath Base path.
|
|
650
|
+
* @param {ScanningApiScanDataSourceRequest} requestParameters Request parameters.
|
|
651
|
+
* @param {*} [options] Override http request option.
|
|
652
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
export async function ScanningApi_ScanDataSource(axios, basePath, requestParameters, options, configuration) {
|
|
656
|
+
const localVarAxiosArgs = await ScanningApiAxiosParamCreator_ScanDataSource(requestParameters.dataSourceId, requestParameters.scanRequest, options || {}, configuration);
|
|
657
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
658
|
+
}
|
|
659
|
+
// ScanningApi Api FP
|
|
660
|
+
/**
|
|
661
|
+
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
662
|
+
* @summary Collect metadata about SQL query
|
|
663
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
664
|
+
* @param {string} basePath Base path.
|
|
665
|
+
* @param {ScanningApiScanSqlRequest} requestParameters Request parameters.
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
export async function ScanningApi_ScanSql(axios, basePath, requestParameters, options, configuration) {
|
|
671
|
+
const localVarAxiosArgs = await ScanningApiAxiosParamCreator_ScanSql(requestParameters.dataSourceId, requestParameters.scanSqlRequest, options || {}, configuration);
|
|
672
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
673
|
+
}
|
|
892
674
|
/**
|
|
893
675
|
* ScanningApi - object-oriented interface
|
|
894
676
|
* @export
|
|
@@ -905,9 +687,7 @@ export class ScanningApi extends BaseAPI {
|
|
|
905
687
|
* @memberof ScanningApi
|
|
906
688
|
*/
|
|
907
689
|
getDataSourceSchemata(requestParameters, options) {
|
|
908
|
-
return
|
|
909
|
-
.getDataSourceSchemata(requestParameters.dataSourceId, options)
|
|
910
|
-
.then((request) => request(this.axios, this.basePath));
|
|
690
|
+
return ScanningApi_GetDataSourceSchemata(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
911
691
|
}
|
|
912
692
|
/**
|
|
913
693
|
* It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
|
|
@@ -918,9 +698,7 @@ export class ScanningApi extends BaseAPI {
|
|
|
918
698
|
* @memberof ScanningApi
|
|
919
699
|
*/
|
|
920
700
|
scanDataSource(requestParameters, options) {
|
|
921
|
-
return
|
|
922
|
-
.scanDataSource(requestParameters.dataSourceId, requestParameters.scanRequest, options)
|
|
923
|
-
.then((request) => request(this.axios, this.basePath));
|
|
701
|
+
return ScanningApi_ScanDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
924
702
|
}
|
|
925
703
|
/**
|
|
926
704
|
* It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
|
|
@@ -931,163 +709,122 @@ export class ScanningApi extends BaseAPI {
|
|
|
931
709
|
* @memberof ScanningApi
|
|
932
710
|
*/
|
|
933
711
|
scanSql(requestParameters, options) {
|
|
934
|
-
return
|
|
935
|
-
.scanSql(requestParameters.dataSourceId, requestParameters.scanSqlRequest, options)
|
|
936
|
-
.then((request) => request(this.axios, this.basePath));
|
|
712
|
+
return ScanningApi_ScanSql(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
937
713
|
}
|
|
938
714
|
}
|
|
715
|
+
// TestConnectionApi FP - TestConnectionApiAxiosParamCreator
|
|
939
716
|
/**
|
|
940
|
-
*
|
|
941
|
-
* @
|
|
717
|
+
* Test if it is possible to connect to a database using an existing data source definition.
|
|
718
|
+
* @summary Test data source connection by data source id
|
|
719
|
+
* @param {string} dataSourceId Data source id
|
|
720
|
+
* @param {TestRequest} testRequest
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
723
|
+
* @throws {RequiredError}
|
|
942
724
|
*/
|
|
943
|
-
export
|
|
725
|
+
export async function TestConnectionApiAxiosParamCreator_TestDataSource(dataSourceId, testRequest, options = {}, configuration) {
|
|
726
|
+
// verify required parameter 'dataSourceId' is not null or undefined
|
|
727
|
+
assertParamExists("testDataSource", "dataSourceId", dataSourceId);
|
|
728
|
+
// verify required parameter 'testRequest' is not null or undefined
|
|
729
|
+
assertParamExists("testDataSource", "testRequest", testRequest);
|
|
730
|
+
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/test`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
732
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
733
|
+
let baseOptions;
|
|
734
|
+
if (configuration) {
|
|
735
|
+
baseOptions = configuration.baseOptions;
|
|
736
|
+
}
|
|
737
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
738
|
+
const localVarHeaderParameter = {};
|
|
739
|
+
const localVarQueryParameter = {};
|
|
740
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
741
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
742
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
743
|
+
localVarRequestOptions.headers = {
|
|
744
|
+
...localVarHeaderParameter,
|
|
745
|
+
...headersFromBaseOptions,
|
|
746
|
+
...options.headers,
|
|
747
|
+
};
|
|
748
|
+
const needsSerialization = typeof testRequest !== "string" ||
|
|
749
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
750
|
+
localVarRequestOptions.data = needsSerialization
|
|
751
|
+
? JSON.stringify(testRequest !== undefined ? testRequest : {})
|
|
752
|
+
: testRequest || "";
|
|
944
753
|
return {
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
* @summary Test data source connection by data source id
|
|
948
|
-
* @param {string} dataSourceId Data source id
|
|
949
|
-
* @param {TestRequest} testRequest
|
|
950
|
-
* @param {*} [options] Override http request option.
|
|
951
|
-
* @throws {RequiredError}
|
|
952
|
-
*/
|
|
953
|
-
testDataSource: async (dataSourceId, testRequest, options = {}) => {
|
|
954
|
-
// verify required parameter 'dataSourceId' is not null or undefined
|
|
955
|
-
assertParamExists("testDataSource", "dataSourceId", dataSourceId);
|
|
956
|
-
// verify required parameter 'testRequest' is not null or undefined
|
|
957
|
-
assertParamExists("testDataSource", "testRequest", testRequest);
|
|
958
|
-
const localVarPath = `/api/v1/actions/dataSources/{dataSourceId}/test`.replace(`{${"dataSourceId"}}`, encodeURIComponent(String(dataSourceId)));
|
|
959
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
960
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
961
|
-
let baseOptions;
|
|
962
|
-
if (configuration) {
|
|
963
|
-
baseOptions = configuration.baseOptions;
|
|
964
|
-
}
|
|
965
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
966
|
-
const localVarHeaderParameter = {};
|
|
967
|
-
const localVarQueryParameter = {};
|
|
968
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
969
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
970
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
971
|
-
localVarRequestOptions.headers = {
|
|
972
|
-
...localVarHeaderParameter,
|
|
973
|
-
...headersFromBaseOptions,
|
|
974
|
-
...options.headers,
|
|
975
|
-
};
|
|
976
|
-
const needsSerialization = typeof testRequest !== "string" ||
|
|
977
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
978
|
-
localVarRequestOptions.data = needsSerialization
|
|
979
|
-
? JSON.stringify(testRequest !== undefined ? testRequest : {})
|
|
980
|
-
: testRequest || "";
|
|
981
|
-
return {
|
|
982
|
-
url: toPathString(localVarUrlObj),
|
|
983
|
-
options: localVarRequestOptions,
|
|
984
|
-
};
|
|
985
|
-
},
|
|
986
|
-
/**
|
|
987
|
-
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
988
|
-
* @summary Test connection by data source definition
|
|
989
|
-
* @param {TestDefinitionRequest} testDefinitionRequest
|
|
990
|
-
* @param {*} [options] Override http request option.
|
|
991
|
-
* @throws {RequiredError}
|
|
992
|
-
*/
|
|
993
|
-
testDataSourceDefinition: async (testDefinitionRequest, options = {}) => {
|
|
994
|
-
// verify required parameter 'testDefinitionRequest' is not null or undefined
|
|
995
|
-
assertParamExists("testDataSourceDefinition", "testDefinitionRequest", testDefinitionRequest);
|
|
996
|
-
const localVarPath = `/api/v1/actions/dataSource/test`;
|
|
997
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
998
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
999
|
-
let baseOptions;
|
|
1000
|
-
if (configuration) {
|
|
1001
|
-
baseOptions = configuration.baseOptions;
|
|
1002
|
-
}
|
|
1003
|
-
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1004
|
-
const localVarHeaderParameter = {};
|
|
1005
|
-
const localVarQueryParameter = {};
|
|
1006
|
-
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1007
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1008
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1009
|
-
localVarRequestOptions.headers = {
|
|
1010
|
-
...localVarHeaderParameter,
|
|
1011
|
-
...headersFromBaseOptions,
|
|
1012
|
-
...options.headers,
|
|
1013
|
-
};
|
|
1014
|
-
const needsSerialization = typeof testDefinitionRequest !== "string" ||
|
|
1015
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
1016
|
-
localVarRequestOptions.data = needsSerialization
|
|
1017
|
-
? JSON.stringify(testDefinitionRequest !== undefined ? testDefinitionRequest : {})
|
|
1018
|
-
: testDefinitionRequest || "";
|
|
1019
|
-
return {
|
|
1020
|
-
url: toPathString(localVarUrlObj),
|
|
1021
|
-
options: localVarRequestOptions,
|
|
1022
|
-
};
|
|
1023
|
-
},
|
|
754
|
+
url: toPathString(localVarUrlObj),
|
|
755
|
+
options: localVarRequestOptions,
|
|
1024
756
|
};
|
|
1025
|
-
}
|
|
757
|
+
}
|
|
758
|
+
// TestConnectionApi FP - TestConnectionApiAxiosParamCreator
|
|
1026
759
|
/**
|
|
1027
|
-
*
|
|
1028
|
-
* @
|
|
760
|
+
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
761
|
+
* @summary Test connection by data source definition
|
|
762
|
+
* @param {TestDefinitionRequest} testDefinitionRequest
|
|
763
|
+
* @param {*} [options] Override http request option.
|
|
764
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
765
|
+
* @throws {RequiredError}
|
|
1029
766
|
*/
|
|
1030
|
-
export
|
|
1031
|
-
|
|
767
|
+
export async function TestConnectionApiAxiosParamCreator_TestDataSourceDefinition(testDefinitionRequest, options = {}, configuration) {
|
|
768
|
+
// verify required parameter 'testDefinitionRequest' is not null or undefined
|
|
769
|
+
assertParamExists("testDataSourceDefinition", "testDefinitionRequest", testDefinitionRequest);
|
|
770
|
+
const localVarPath = `/api/v1/actions/dataSource/test`;
|
|
771
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
772
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
773
|
+
let baseOptions;
|
|
774
|
+
if (configuration) {
|
|
775
|
+
baseOptions = configuration.baseOptions;
|
|
776
|
+
}
|
|
777
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
778
|
+
const localVarHeaderParameter = {};
|
|
779
|
+
const localVarQueryParameter = {};
|
|
780
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
781
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
782
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
783
|
+
localVarRequestOptions.headers = {
|
|
784
|
+
...localVarHeaderParameter,
|
|
785
|
+
...headersFromBaseOptions,
|
|
786
|
+
...options.headers,
|
|
787
|
+
};
|
|
788
|
+
const needsSerialization = typeof testDefinitionRequest !== "string" ||
|
|
789
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
790
|
+
localVarRequestOptions.data = needsSerialization
|
|
791
|
+
? JSON.stringify(testDefinitionRequest !== undefined ? testDefinitionRequest : {})
|
|
792
|
+
: testDefinitionRequest || "";
|
|
1032
793
|
return {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
* @summary Test data source connection by data source id
|
|
1036
|
-
* @param {string} dataSourceId Data source id
|
|
1037
|
-
* @param {TestRequest} testRequest
|
|
1038
|
-
* @param {*} [options] Override http request option.
|
|
1039
|
-
* @throws {RequiredError}
|
|
1040
|
-
*/
|
|
1041
|
-
async testDataSource(dataSourceId, testRequest, options) {
|
|
1042
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testDataSource(dataSourceId, testRequest, options);
|
|
1043
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1044
|
-
},
|
|
1045
|
-
/**
|
|
1046
|
-
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
1047
|
-
* @summary Test connection by data source definition
|
|
1048
|
-
* @param {TestDefinitionRequest} testDefinitionRequest
|
|
1049
|
-
* @param {*} [options] Override http request option.
|
|
1050
|
-
* @throws {RequiredError}
|
|
1051
|
-
*/
|
|
1052
|
-
async testDataSourceDefinition(testDefinitionRequest, options) {
|
|
1053
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.testDataSourceDefinition(testDefinitionRequest, options);
|
|
1054
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1055
|
-
},
|
|
794
|
+
url: toPathString(localVarUrlObj),
|
|
795
|
+
options: localVarRequestOptions,
|
|
1056
796
|
};
|
|
1057
|
-
}
|
|
797
|
+
}
|
|
798
|
+
// TestConnectionApi Api FP
|
|
1058
799
|
/**
|
|
1059
|
-
*
|
|
1060
|
-
* @
|
|
800
|
+
* Test if it is possible to connect to a database using an existing data source definition.
|
|
801
|
+
* @summary Test data source connection by data source id
|
|
802
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
803
|
+
* @param {string} basePath Base path.
|
|
804
|
+
* @param {TestConnectionApiTestDataSourceRequest} requestParameters Request parameters.
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
807
|
+
* @throws {RequiredError}
|
|
1061
808
|
*/
|
|
1062
|
-
export
|
|
1063
|
-
const
|
|
1064
|
-
return
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
* @param {*} [options] Override http request option.
|
|
1082
|
-
* @throws {RequiredError}
|
|
1083
|
-
*/
|
|
1084
|
-
testDataSourceDefinition(requestParameters, options) {
|
|
1085
|
-
return localVarFp
|
|
1086
|
-
.testDataSourceDefinition(requestParameters.testDefinitionRequest, options)
|
|
1087
|
-
.then((request) => request(axios, basePath));
|
|
1088
|
-
},
|
|
1089
|
-
};
|
|
1090
|
-
};
|
|
809
|
+
export async function TestConnectionApi_TestDataSource(axios, basePath, requestParameters, options, configuration) {
|
|
810
|
+
const localVarAxiosArgs = await TestConnectionApiAxiosParamCreator_TestDataSource(requestParameters.dataSourceId, requestParameters.testRequest, options || {}, configuration);
|
|
811
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
812
|
+
}
|
|
813
|
+
// TestConnectionApi Api FP
|
|
814
|
+
/**
|
|
815
|
+
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
816
|
+
* @summary Test connection by data source definition
|
|
817
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
818
|
+
* @param {string} basePath Base path.
|
|
819
|
+
* @param {TestConnectionApiTestDataSourceDefinitionRequest} requestParameters Request parameters.
|
|
820
|
+
* @param {*} [options] Override http request option.
|
|
821
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
822
|
+
* @throws {RequiredError}
|
|
823
|
+
*/
|
|
824
|
+
export async function TestConnectionApi_TestDataSourceDefinition(axios, basePath, requestParameters, options, configuration) {
|
|
825
|
+
const localVarAxiosArgs = await TestConnectionApiAxiosParamCreator_TestDataSourceDefinition(requestParameters.testDefinitionRequest, options || {}, configuration);
|
|
826
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
827
|
+
}
|
|
1091
828
|
/**
|
|
1092
829
|
* TestConnectionApi - object-oriented interface
|
|
1093
830
|
* @export
|
|
@@ -1104,9 +841,7 @@ export class TestConnectionApi extends BaseAPI {
|
|
|
1104
841
|
* @memberof TestConnectionApi
|
|
1105
842
|
*/
|
|
1106
843
|
testDataSource(requestParameters, options) {
|
|
1107
|
-
return
|
|
1108
|
-
.testDataSource(requestParameters.dataSourceId, requestParameters.testRequest, options)
|
|
1109
|
-
.then((request) => request(this.axios, this.basePath));
|
|
844
|
+
return TestConnectionApi_TestDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1110
845
|
}
|
|
1111
846
|
/**
|
|
1112
847
|
* Test if it is possible to connect to a database using a connection provided by the data source definition in the request body.
|
|
@@ -1117,9 +852,7 @@ export class TestConnectionApi extends BaseAPI {
|
|
|
1117
852
|
* @memberof TestConnectionApi
|
|
1118
853
|
*/
|
|
1119
854
|
testDataSourceDefinition(requestParameters, options) {
|
|
1120
|
-
return
|
|
1121
|
-
.testDataSourceDefinition(requestParameters.testDefinitionRequest, options)
|
|
1122
|
-
.then((request) => request(this.axios, this.basePath));
|
|
855
|
+
return TestConnectionApi_TestDataSourceDefinition(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1123
856
|
}
|
|
1124
857
|
}
|
|
1125
858
|
//# sourceMappingURL=api.js.map
|