@gooddata/api-client-tiger 11.55.0-alpha.2 → 11.55.0-alpha.4
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/api-client-tiger.d.ts +2360 -233
- package/esm/endpoints/entitiesObjects/index.d.ts +1 -1
- package/esm/endpoints/entitiesObjects/index.d.ts.map +1 -1
- package/esm/endpoints/entitiesObjects/index.js +7 -1
- package/esm/endpoints/genAI/index.d.ts +3 -3
- package/esm/endpoints/genAI/index.d.ts.map +1 -1
- package/esm/endpoints/genAI/index.js +4 -4
- package/esm/gd-tiger-model/typeGuards.js +1 -1
- package/esm/genAI.d.ts +2 -2
- package/esm/genAI.d.ts.map +1 -1
- package/esm/genAI.js +3 -2
- package/esm/generated/afm-rest-api/api.d.ts +226 -1427
- package/esm/generated/afm-rest-api/api.d.ts.map +1 -1
- package/esm/generated/afm-rest-api/api.js +216 -1118
- package/esm/generated/ai-json-api/api.d.ts +496 -105
- package/esm/generated/ai-json-api/api.d.ts.map +1 -1
- package/esm/generated/ai-json-api/api.js +298 -54
- package/esm/generated/automation-json-api/api.d.ts +1 -1
- package/esm/generated/automation-json-api/api.d.ts.map +1 -1
- package/esm/generated/export-json-api/api.d.ts +1 -1
- package/esm/generated/export-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.d.ts +5023 -72
- package/esm/generated/metadata-json-api/api.d.ts.map +1 -1
- package/esm/generated/metadata-json-api/api.js +5008 -348
- package/esm/index.d.ts +3 -2
- package/esm/index.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -56,7 +56,7 @@ export async function AILakeApiAxiosParamCreator_AddAiLakeDatabaseDataSource(ins
|
|
|
56
56
|
}
|
|
57
57
|
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
58
58
|
/**
|
|
59
|
-
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native
|
|
59
|
+
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native) and external (Iceberg) catalogs. If tableNames is empty, all tables are analyzed.
|
|
60
60
|
* @summary (BETA) Run ANALYZE TABLE for tables in a database instance
|
|
61
61
|
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
62
62
|
* @param {AnalyzeStatisticsRequest} analyzeStatisticsRequest
|
|
@@ -109,103 +109,6 @@ export async function AILakeApiAxiosParamCreator_AnalyzeStatistics(instanceId, a
|
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
112
|
-
/**
|
|
113
|
-
* (BETA) Creates a pipe-backed OLAP table in the given AI Lake database instance. Infers schema from parquet files. Returns an operation-id header the client can use to poll for progress.
|
|
114
|
-
* @summary (BETA) Create a new AI Lake pipe table
|
|
115
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
116
|
-
* @param {CreatePipeTableRequest} createPipeTableRequest
|
|
117
|
-
* @param {string} [operationId]
|
|
118
|
-
* @param {*} [options] Override http request option.
|
|
119
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
120
|
-
* @throws {RequiredError}
|
|
121
|
-
*/
|
|
122
|
-
export async function AILakeApiAxiosParamCreator_CreateAiLakePipeTable(instanceId, createPipeTableRequest, operationId, options = {}, configuration) {
|
|
123
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
124
|
-
assertParamExists('createAiLakePipeTable', 'instanceId', instanceId);
|
|
125
|
-
// verify required parameter 'createPipeTableRequest' is not null or undefined
|
|
126
|
-
assertParamExists('createAiLakePipeTable', 'createPipeTableRequest', createPipeTableRequest);
|
|
127
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables`
|
|
128
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
129
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
130
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
131
|
-
let baseOptions;
|
|
132
|
-
if (configuration) {
|
|
133
|
-
baseOptions = configuration.baseOptions;
|
|
134
|
-
}
|
|
135
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
136
|
-
const localVarHeaderParameter = {};
|
|
137
|
-
const localVarQueryParameter = {};
|
|
138
|
-
if (operationId !== undefined && operationId !== null) {
|
|
139
|
-
localVarHeaderParameter['operation-id'] = String(operationId);
|
|
140
|
-
}
|
|
141
|
-
const consumes = [
|
|
142
|
-
'application/json'
|
|
143
|
-
];
|
|
144
|
-
// use application/json if present, otherwise fallback to the first one
|
|
145
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
146
|
-
? 'application/json'
|
|
147
|
-
: consumes[0];
|
|
148
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
149
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
150
|
-
localVarRequestOptions.headers = {
|
|
151
|
-
...localVarHeaderParameter,
|
|
152
|
-
...headersFromBaseOptions,
|
|
153
|
-
...options.headers,
|
|
154
|
-
};
|
|
155
|
-
const needsSerialization = typeof createPipeTableRequest !== "string" ||
|
|
156
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
157
|
-
localVarRequestOptions.data = needsSerialization
|
|
158
|
-
? JSON.stringify(createPipeTableRequest !== undefined ? createPipeTableRequest : {})
|
|
159
|
-
: createPipeTableRequest || "";
|
|
160
|
-
return {
|
|
161
|
-
url: toPathString(localVarUrlObj),
|
|
162
|
-
options: localVarRequestOptions,
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
166
|
-
/**
|
|
167
|
-
* (BETA) Drops the pipe and OLAP table and removes the record. Returns an operation-id header the client can use to poll for progress.
|
|
168
|
-
* @summary (BETA) Delete an AI Lake pipe table
|
|
169
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
170
|
-
* @param {string} tableName Pipe table name.
|
|
171
|
-
* @param {string} [operationId]
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
174
|
-
* @throws {RequiredError}
|
|
175
|
-
*/
|
|
176
|
-
export async function AILakeApiAxiosParamCreator_DeleteAiLakePipeTable(instanceId, tableName, operationId, options = {}, configuration) {
|
|
177
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
178
|
-
assertParamExists('deleteAiLakePipeTable', 'instanceId', instanceId);
|
|
179
|
-
// verify required parameter 'tableName' is not null or undefined
|
|
180
|
-
assertParamExists('deleteAiLakePipeTable', 'tableName', tableName);
|
|
181
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables/{tableName}`
|
|
182
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
|
|
183
|
-
.replace(`{${"tableName"}}`, encodeURIComponent(String(tableName)));
|
|
184
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
185
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
186
|
-
let baseOptions;
|
|
187
|
-
if (configuration) {
|
|
188
|
-
baseOptions = configuration.baseOptions;
|
|
189
|
-
}
|
|
190
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
191
|
-
const localVarHeaderParameter = {};
|
|
192
|
-
const localVarQueryParameter = {};
|
|
193
|
-
if (operationId !== undefined && operationId !== null) {
|
|
194
|
-
localVarHeaderParameter['operation-id'] = String(operationId);
|
|
195
|
-
}
|
|
196
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
197
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
198
|
-
localVarRequestOptions.headers = {
|
|
199
|
-
...localVarHeaderParameter,
|
|
200
|
-
...headersFromBaseOptions,
|
|
201
|
-
...options.headers,
|
|
202
|
-
};
|
|
203
|
-
return {
|
|
204
|
-
url: toPathString(localVarUrlObj),
|
|
205
|
-
options: localVarRequestOptions,
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
209
112
|
/**
|
|
210
113
|
* (BETA) Deletes an existing database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
211
114
|
* @summary (BETA) Delete an existing AILake Database instance
|
|
@@ -315,45 +218,6 @@ export async function AILakeApiAxiosParamCreator_GetAiLakeOperation(operationId,
|
|
|
315
218
|
};
|
|
316
219
|
}
|
|
317
220
|
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
318
|
-
/**
|
|
319
|
-
* (BETA) Returns full details of the specified pipe table.
|
|
320
|
-
* @summary (BETA) Get an AI Lake pipe table
|
|
321
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
322
|
-
* @param {string} tableName Pipe table name.
|
|
323
|
-
* @param {*} [options] Override http request option.
|
|
324
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
325
|
-
* @throws {RequiredError}
|
|
326
|
-
*/
|
|
327
|
-
export async function AILakeApiAxiosParamCreator_GetAiLakePipeTable(instanceId, tableName, options = {}, configuration) {
|
|
328
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
329
|
-
assertParamExists('getAiLakePipeTable', 'instanceId', instanceId);
|
|
330
|
-
// verify required parameter 'tableName' is not null or undefined
|
|
331
|
-
assertParamExists('getAiLakePipeTable', 'tableName', tableName);
|
|
332
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables/{tableName}`
|
|
333
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
|
|
334
|
-
.replace(`{${"tableName"}}`, encodeURIComponent(String(tableName)));
|
|
335
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
336
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
337
|
-
let baseOptions;
|
|
338
|
-
if (configuration) {
|
|
339
|
-
baseOptions = configuration.baseOptions;
|
|
340
|
-
}
|
|
341
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
342
|
-
const localVarHeaderParameter = {};
|
|
343
|
-
const localVarQueryParameter = {};
|
|
344
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
345
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
346
|
-
localVarRequestOptions.headers = {
|
|
347
|
-
...localVarHeaderParameter,
|
|
348
|
-
...headersFromBaseOptions,
|
|
349
|
-
...options.headers,
|
|
350
|
-
};
|
|
351
|
-
return {
|
|
352
|
-
url: toPathString(localVarUrlObj),
|
|
353
|
-
options: localVarRequestOptions,
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
357
221
|
/**
|
|
358
222
|
* (BETA) Returns the status of a service in the organization\'s AI Lake. The status is controller-specific (e.g., available commands, readiness).
|
|
359
223
|
* @summary (BETA) Get AI Lake service status
|
|
@@ -480,7 +344,7 @@ export async function AILakeApiAxiosParamCreator_ListAiLakeDatabaseInstances(pag
|
|
|
480
344
|
}
|
|
481
345
|
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
482
346
|
/**
|
|
483
|
-
* (BETA) Lists ObjectStorages registered for the organization.
|
|
347
|
+
* (BETA) Lists ObjectStorages registered for the organization. Pass the returned `storageId` to the ProvisionDatabase `storageIds` list. Provider credentials are stripped — only safe descriptors (id, name, type, bucket, region, endpoint, …) are returned.
|
|
484
348
|
* @summary (BETA) List registered AI Lake ObjectStorages
|
|
485
349
|
* @param {number} [page] Zero-based page number.
|
|
486
350
|
* @param {number} [size] Number of items per page.
|
|
@@ -522,53 +386,6 @@ export async function AILakeApiAxiosParamCreator_ListAiLakeObjectStorages(page,
|
|
|
522
386
|
};
|
|
523
387
|
}
|
|
524
388
|
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
525
|
-
/**
|
|
526
|
-
* (BETA) Lists active pipe tables in the given AI Lake database instance.
|
|
527
|
-
* @summary (BETA) List AI Lake pipe tables
|
|
528
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
529
|
-
* @param {number} [page] Zero-based page number.
|
|
530
|
-
* @param {number} [size] Number of items per page.
|
|
531
|
-
* @param {Array<string>} [metaInclude]
|
|
532
|
-
* @param {*} [options] Override http request option.
|
|
533
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
534
|
-
* @throws {RequiredError}
|
|
535
|
-
*/
|
|
536
|
-
export async function AILakeApiAxiosParamCreator_ListAiLakePipeTables(instanceId, page, size, metaInclude, options = {}, configuration) {
|
|
537
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
538
|
-
assertParamExists('listAiLakePipeTables', 'instanceId', instanceId);
|
|
539
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables`
|
|
540
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
541
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
542
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
543
|
-
let baseOptions;
|
|
544
|
-
if (configuration) {
|
|
545
|
-
baseOptions = configuration.baseOptions;
|
|
546
|
-
}
|
|
547
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
548
|
-
const localVarHeaderParameter = {};
|
|
549
|
-
const localVarQueryParameter = {};
|
|
550
|
-
if (page !== undefined) {
|
|
551
|
-
localVarQueryParameter['page'] = page;
|
|
552
|
-
}
|
|
553
|
-
if (size !== undefined) {
|
|
554
|
-
localVarQueryParameter['size'] = size;
|
|
555
|
-
}
|
|
556
|
-
if (metaInclude) {
|
|
557
|
-
localVarQueryParameter['metaInclude'] = Array.from(metaInclude);
|
|
558
|
-
}
|
|
559
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
560
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
561
|
-
localVarRequestOptions.headers = {
|
|
562
|
-
...localVarHeaderParameter,
|
|
563
|
-
...headersFromBaseOptions,
|
|
564
|
-
...options.headers,
|
|
565
|
-
};
|
|
566
|
-
return {
|
|
567
|
-
url: toPathString(localVarUrlObj),
|
|
568
|
-
options: localVarRequestOptions,
|
|
569
|
-
};
|
|
570
|
-
}
|
|
571
|
-
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
572
389
|
/**
|
|
573
390
|
* (BETA) Lists services configured for the organization\'s AI Lake. Returns only non-sensitive fields (id, name).
|
|
574
391
|
* @summary (BETA) List AI Lake services
|
|
@@ -662,64 +479,6 @@ export async function AILakeApiAxiosParamCreator_ProvisionAiLakeDatabaseInstance
|
|
|
662
479
|
};
|
|
663
480
|
}
|
|
664
481
|
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
665
|
-
/**
|
|
666
|
-
* (BETA) Deletes all rows for the specified Hive partition and re-loads them from S3. Use after overwriting a partition file in object storage with corrected data. Returns an operation-id header the client can use to poll for progress.
|
|
667
|
-
* @summary (BETA) Refresh a pipe table partition
|
|
668
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
669
|
-
* @param {string} tableName Pipe table name.
|
|
670
|
-
* @param {RefreshPartitionRequest} refreshPartitionRequest
|
|
671
|
-
* @param {string} [operationId]
|
|
672
|
-
* @param {*} [options] Override http request option.
|
|
673
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
674
|
-
* @throws {RequiredError}
|
|
675
|
-
*/
|
|
676
|
-
export async function AILakeApiAxiosParamCreator_RefreshAiLakePipeTablePartition(instanceId, tableName, refreshPartitionRequest, operationId, options = {}, configuration) {
|
|
677
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
678
|
-
assertParamExists('refreshAiLakePipeTablePartition', 'instanceId', instanceId);
|
|
679
|
-
// verify required parameter 'tableName' is not null or undefined
|
|
680
|
-
assertParamExists('refreshAiLakePipeTablePartition', 'tableName', tableName);
|
|
681
|
-
// verify required parameter 'refreshPartitionRequest' is not null or undefined
|
|
682
|
-
assertParamExists('refreshAiLakePipeTablePartition', 'refreshPartitionRequest', refreshPartitionRequest);
|
|
683
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables/{tableName}/refresh`
|
|
684
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
|
|
685
|
-
.replace(`{${"tableName"}}`, encodeURIComponent(String(tableName)));
|
|
686
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
687
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
688
|
-
let baseOptions;
|
|
689
|
-
if (configuration) {
|
|
690
|
-
baseOptions = configuration.baseOptions;
|
|
691
|
-
}
|
|
692
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
693
|
-
const localVarHeaderParameter = {};
|
|
694
|
-
const localVarQueryParameter = {};
|
|
695
|
-
if (operationId !== undefined && operationId !== null) {
|
|
696
|
-
localVarHeaderParameter['operation-id'] = String(operationId);
|
|
697
|
-
}
|
|
698
|
-
const consumes = [
|
|
699
|
-
'application/json'
|
|
700
|
-
];
|
|
701
|
-
// use application/json if present, otherwise fallback to the first one
|
|
702
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
703
|
-
? 'application/json'
|
|
704
|
-
: consumes[0];
|
|
705
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
706
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
707
|
-
localVarRequestOptions.headers = {
|
|
708
|
-
...localVarHeaderParameter,
|
|
709
|
-
...headersFromBaseOptions,
|
|
710
|
-
...options.headers,
|
|
711
|
-
};
|
|
712
|
-
const needsSerialization = typeof refreshPartitionRequest !== "string" ||
|
|
713
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
714
|
-
localVarRequestOptions.data = needsSerialization
|
|
715
|
-
? JSON.stringify(refreshPartitionRequest !== undefined ? refreshPartitionRequest : {})
|
|
716
|
-
: refreshPartitionRequest || "";
|
|
717
|
-
return {
|
|
718
|
-
url: toPathString(localVarUrlObj),
|
|
719
|
-
options: localVarRequestOptions,
|
|
720
|
-
};
|
|
721
|
-
}
|
|
722
|
-
// AILakeApi FP - AILakeApiAxiosParamCreator
|
|
723
482
|
/**
|
|
724
483
|
* (BETA) Removes a data source association from an AI Lake database instance and deletes the corresponding data source from metadata-api. Fails if removing the data source would leave the instance with no data sources.
|
|
725
484
|
* @summary (BETA) Remove a data source from an AILake Database instance
|
|
@@ -883,7 +642,7 @@ export async function AILakeApi_AddAiLakeDatabaseDataSource(axios, basePath, req
|
|
|
883
642
|
}
|
|
884
643
|
// AILakeApi Api FP
|
|
885
644
|
/**
|
|
886
|
-
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native
|
|
645
|
+
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native) and external (Iceberg) catalogs. If tableNames is empty, all tables are analyzed.
|
|
887
646
|
* @summary (BETA) Run ANALYZE TABLE for tables in a database instance
|
|
888
647
|
* @param {AxiosInstance} axios Axios instance.
|
|
889
648
|
* @param {string} basePath Base path.
|
|
@@ -897,36 +656,6 @@ export async function AILakeApi_AnalyzeStatistics(axios, basePath, requestParame
|
|
|
897
656
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
898
657
|
}
|
|
899
658
|
// AILakeApi Api FP
|
|
900
|
-
/**
|
|
901
|
-
* (BETA) Creates a pipe-backed OLAP table in the given AI Lake database instance. Infers schema from parquet files. Returns an operation-id header the client can use to poll for progress.
|
|
902
|
-
* @summary (BETA) Create a new AI Lake pipe table
|
|
903
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
904
|
-
* @param {string} basePath Base path.
|
|
905
|
-
* @param {AILakeApiCreateAiLakePipeTableRequest} requestParameters Request parameters.
|
|
906
|
-
* @param {*} [options] Override http request option.
|
|
907
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
908
|
-
* @throws {RequiredError}
|
|
909
|
-
*/
|
|
910
|
-
export async function AILakeApi_CreateAiLakePipeTable(axios, basePath, requestParameters, options, configuration) {
|
|
911
|
-
const localVarAxiosArgs = await AILakeApiAxiosParamCreator_CreateAiLakePipeTable(requestParameters.instanceId, requestParameters.createPipeTableRequest, requestParameters.operationId, options || {}, configuration);
|
|
912
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
913
|
-
}
|
|
914
|
-
// AILakeApi Api FP
|
|
915
|
-
/**
|
|
916
|
-
* (BETA) Drops the pipe and OLAP table and removes the record. Returns an operation-id header the client can use to poll for progress.
|
|
917
|
-
* @summary (BETA) Delete an AI Lake pipe table
|
|
918
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
919
|
-
* @param {string} basePath Base path.
|
|
920
|
-
* @param {AILakeApiDeleteAiLakePipeTableRequest} requestParameters Request parameters.
|
|
921
|
-
* @param {*} [options] Override http request option.
|
|
922
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
923
|
-
* @throws {RequiredError}
|
|
924
|
-
*/
|
|
925
|
-
export async function AILakeApi_DeleteAiLakePipeTable(axios, basePath, requestParameters, options, configuration) {
|
|
926
|
-
const localVarAxiosArgs = await AILakeApiAxiosParamCreator_DeleteAiLakePipeTable(requestParameters.instanceId, requestParameters.tableName, requestParameters.operationId, options || {}, configuration);
|
|
927
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
928
|
-
}
|
|
929
|
-
// AILakeApi Api FP
|
|
930
659
|
/**
|
|
931
660
|
* (BETA) Deletes an existing database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
932
661
|
* @summary (BETA) Delete an existing AILake Database instance
|
|
@@ -972,21 +701,6 @@ export async function AILakeApi_GetAiLakeOperation(axios, basePath, requestParam
|
|
|
972
701
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
973
702
|
}
|
|
974
703
|
// AILakeApi Api FP
|
|
975
|
-
/**
|
|
976
|
-
* (BETA) Returns full details of the specified pipe table.
|
|
977
|
-
* @summary (BETA) Get an AI Lake pipe table
|
|
978
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
979
|
-
* @param {string} basePath Base path.
|
|
980
|
-
* @param {AILakeApiGetAiLakePipeTableRequest} requestParameters Request parameters.
|
|
981
|
-
* @param {*} [options] Override http request option.
|
|
982
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
983
|
-
* @throws {RequiredError}
|
|
984
|
-
*/
|
|
985
|
-
export async function AILakeApi_GetAiLakePipeTable(axios, basePath, requestParameters, options, configuration) {
|
|
986
|
-
const localVarAxiosArgs = await AILakeApiAxiosParamCreator_GetAiLakePipeTable(requestParameters.instanceId, requestParameters.tableName, options || {}, configuration);
|
|
987
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
988
|
-
}
|
|
989
|
-
// AILakeApi Api FP
|
|
990
704
|
/**
|
|
991
705
|
* (BETA) Returns the status of a service in the organization\'s AI Lake. The status is controller-specific (e.g., available commands, readiness).
|
|
992
706
|
* @summary (BETA) Get AI Lake service status
|
|
@@ -1033,7 +747,7 @@ export async function AILakeApi_ListAiLakeDatabaseInstances(axios, basePath, req
|
|
|
1033
747
|
}
|
|
1034
748
|
// AILakeApi Api FP
|
|
1035
749
|
/**
|
|
1036
|
-
* (BETA) Lists ObjectStorages registered for the organization.
|
|
750
|
+
* (BETA) Lists ObjectStorages registered for the organization. Pass the returned `storageId` to the ProvisionDatabase `storageIds` list. Provider credentials are stripped — only safe descriptors (id, name, type, bucket, region, endpoint, …) are returned.
|
|
1037
751
|
* @summary (BETA) List registered AI Lake ObjectStorages
|
|
1038
752
|
* @param {AxiosInstance} axios Axios instance.
|
|
1039
753
|
* @param {string} basePath Base path.
|
|
@@ -1047,21 +761,6 @@ export async function AILakeApi_ListAiLakeObjectStorages(axios, basePath, reques
|
|
|
1047
761
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1048
762
|
}
|
|
1049
763
|
// AILakeApi Api FP
|
|
1050
|
-
/**
|
|
1051
|
-
* (BETA) Lists active pipe tables in the given AI Lake database instance.
|
|
1052
|
-
* @summary (BETA) List AI Lake pipe tables
|
|
1053
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1054
|
-
* @param {string} basePath Base path.
|
|
1055
|
-
* @param {AILakeApiListAiLakePipeTablesRequest} requestParameters Request parameters.
|
|
1056
|
-
* @param {*} [options] Override http request option.
|
|
1057
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1058
|
-
* @throws {RequiredError}
|
|
1059
|
-
*/
|
|
1060
|
-
export async function AILakeApi_ListAiLakePipeTables(axios, basePath, requestParameters, options, configuration) {
|
|
1061
|
-
const localVarAxiosArgs = await AILakeApiAxiosParamCreator_ListAiLakePipeTables(requestParameters.instanceId, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
|
|
1062
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1063
|
-
}
|
|
1064
|
-
// AILakeApi Api FP
|
|
1065
764
|
/**
|
|
1066
765
|
* (BETA) Lists services configured for the organization\'s AI Lake. Returns only non-sensitive fields (id, name).
|
|
1067
766
|
* @summary (BETA) List AI Lake services
|
|
@@ -1092,21 +791,6 @@ export async function AILakeApi_ProvisionAiLakeDatabaseInstance(axios, basePath,
|
|
|
1092
791
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1093
792
|
}
|
|
1094
793
|
// AILakeApi Api FP
|
|
1095
|
-
/**
|
|
1096
|
-
* (BETA) Deletes all rows for the specified Hive partition and re-loads them from S3. Use after overwriting a partition file in object storage with corrected data. Returns an operation-id header the client can use to poll for progress.
|
|
1097
|
-
* @summary (BETA) Refresh a pipe table partition
|
|
1098
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1099
|
-
* @param {string} basePath Base path.
|
|
1100
|
-
* @param {AILakeApiRefreshAiLakePipeTablePartitionRequest} requestParameters Request parameters.
|
|
1101
|
-
* @param {*} [options] Override http request option.
|
|
1102
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1103
|
-
* @throws {RequiredError}
|
|
1104
|
-
*/
|
|
1105
|
-
export async function AILakeApi_RefreshAiLakePipeTablePartition(axios, basePath, requestParameters, options, configuration) {
|
|
1106
|
-
const localVarAxiosArgs = await AILakeApiAxiosParamCreator_RefreshAiLakePipeTablePartition(requestParameters.instanceId, requestParameters.tableName, requestParameters.refreshPartitionRequest, requestParameters.operationId, options || {}, configuration);
|
|
1107
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1108
|
-
}
|
|
1109
|
-
// AILakeApi Api FP
|
|
1110
794
|
/**
|
|
1111
795
|
* (BETA) Removes a data source association from an AI Lake database instance and deletes the corresponding data source from metadata-api. Fails if removing the data source would leave the instance with no data sources.
|
|
1112
796
|
* @summary (BETA) Remove a data source from an AILake Database instance
|
|
@@ -1170,7 +854,7 @@ export class AILakeApi extends BaseAPI {
|
|
|
1170
854
|
return AILakeApi_AddAiLakeDatabaseDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1171
855
|
}
|
|
1172
856
|
/**
|
|
1173
|
-
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native
|
|
857
|
+
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native) and external (Iceberg) catalogs. If tableNames is empty, all tables are analyzed.
|
|
1174
858
|
* @summary (BETA) Run ANALYZE TABLE for tables in a database instance
|
|
1175
859
|
* @param {AILakeApiAnalyzeStatisticsRequest} requestParameters Request parameters.
|
|
1176
860
|
* @param {*} [options] Override http request option.
|
|
@@ -1180,28 +864,6 @@ export class AILakeApi extends BaseAPI {
|
|
|
1180
864
|
analyzeStatistics(requestParameters, options) {
|
|
1181
865
|
return AILakeApi_AnalyzeStatistics(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1182
866
|
}
|
|
1183
|
-
/**
|
|
1184
|
-
* (BETA) Creates a pipe-backed OLAP table in the given AI Lake database instance. Infers schema from parquet files. Returns an operation-id header the client can use to poll for progress.
|
|
1185
|
-
* @summary (BETA) Create a new AI Lake pipe table
|
|
1186
|
-
* @param {AILakeApiCreateAiLakePipeTableRequest} requestParameters Request parameters.
|
|
1187
|
-
* @param {*} [options] Override http request option.
|
|
1188
|
-
* @throws {RequiredError}
|
|
1189
|
-
* @memberof AILakeApi
|
|
1190
|
-
*/
|
|
1191
|
-
createAiLakePipeTable(requestParameters, options) {
|
|
1192
|
-
return AILakeApi_CreateAiLakePipeTable(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1193
|
-
}
|
|
1194
|
-
/**
|
|
1195
|
-
* (BETA) Drops the pipe and OLAP table and removes the record. Returns an operation-id header the client can use to poll for progress.
|
|
1196
|
-
* @summary (BETA) Delete an AI Lake pipe table
|
|
1197
|
-
* @param {AILakeApiDeleteAiLakePipeTableRequest} requestParameters Request parameters.
|
|
1198
|
-
* @param {*} [options] Override http request option.
|
|
1199
|
-
* @throws {RequiredError}
|
|
1200
|
-
* @memberof AILakeApi
|
|
1201
|
-
*/
|
|
1202
|
-
deleteAiLakePipeTable(requestParameters, options) {
|
|
1203
|
-
return AILakeApi_DeleteAiLakePipeTable(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1204
|
-
}
|
|
1205
867
|
/**
|
|
1206
868
|
* (BETA) Deletes an existing database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1207
869
|
* @summary (BETA) Delete an existing AILake Database instance
|
|
@@ -1235,17 +897,6 @@ export class AILakeApi extends BaseAPI {
|
|
|
1235
897
|
getAiLakeOperation(requestParameters, options) {
|
|
1236
898
|
return AILakeApi_GetAiLakeOperation(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1237
899
|
}
|
|
1238
|
-
/**
|
|
1239
|
-
* (BETA) Returns full details of the specified pipe table.
|
|
1240
|
-
* @summary (BETA) Get an AI Lake pipe table
|
|
1241
|
-
* @param {AILakeApiGetAiLakePipeTableRequest} requestParameters Request parameters.
|
|
1242
|
-
* @param {*} [options] Override http request option.
|
|
1243
|
-
* @throws {RequiredError}
|
|
1244
|
-
* @memberof AILakeApi
|
|
1245
|
-
*/
|
|
1246
|
-
getAiLakePipeTable(requestParameters, options) {
|
|
1247
|
-
return AILakeApi_GetAiLakePipeTable(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1248
|
-
}
|
|
1249
900
|
/**
|
|
1250
901
|
* (BETA) Returns the status of a service in the organization\'s AI Lake. The status is controller-specific (e.g., available commands, readiness).
|
|
1251
902
|
* @summary (BETA) Get AI Lake service status
|
|
@@ -1280,7 +931,7 @@ export class AILakeApi extends BaseAPI {
|
|
|
1280
931
|
return AILakeApi_ListAiLakeDatabaseInstances(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1281
932
|
}
|
|
1282
933
|
/**
|
|
1283
|
-
* (BETA) Lists ObjectStorages registered for the organization.
|
|
934
|
+
* (BETA) Lists ObjectStorages registered for the organization. Pass the returned `storageId` to the ProvisionDatabase `storageIds` list. Provider credentials are stripped — only safe descriptors (id, name, type, bucket, region, endpoint, …) are returned.
|
|
1284
935
|
* @summary (BETA) List registered AI Lake ObjectStorages
|
|
1285
936
|
* @param {AILakeApiListAiLakeObjectStoragesRequest} requestParameters Request parameters.
|
|
1286
937
|
* @param {*} [options] Override http request option.
|
|
@@ -1290,17 +941,6 @@ export class AILakeApi extends BaseAPI {
|
|
|
1290
941
|
listAiLakeObjectStorages(requestParameters = {}, options) {
|
|
1291
942
|
return AILakeApi_ListAiLakeObjectStorages(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1292
943
|
}
|
|
1293
|
-
/**
|
|
1294
|
-
* (BETA) Lists active pipe tables in the given AI Lake database instance.
|
|
1295
|
-
* @summary (BETA) List AI Lake pipe tables
|
|
1296
|
-
* @param {AILakeApiListAiLakePipeTablesRequest} requestParameters Request parameters.
|
|
1297
|
-
* @param {*} [options] Override http request option.
|
|
1298
|
-
* @throws {RequiredError}
|
|
1299
|
-
* @memberof AILakeApi
|
|
1300
|
-
*/
|
|
1301
|
-
listAiLakePipeTables(requestParameters, options) {
|
|
1302
|
-
return AILakeApi_ListAiLakePipeTables(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1303
|
-
}
|
|
1304
944
|
/**
|
|
1305
945
|
* (BETA) Lists services configured for the organization\'s AI Lake. Returns only non-sensitive fields (id, name).
|
|
1306
946
|
* @summary (BETA) List AI Lake services
|
|
@@ -1323,17 +963,6 @@ export class AILakeApi extends BaseAPI {
|
|
|
1323
963
|
provisionAiLakeDatabaseInstance(requestParameters, options) {
|
|
1324
964
|
return AILakeApi_ProvisionAiLakeDatabaseInstance(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1325
965
|
}
|
|
1326
|
-
/**
|
|
1327
|
-
* (BETA) Deletes all rows for the specified Hive partition and re-loads them from S3. Use after overwriting a partition file in object storage with corrected data. Returns an operation-id header the client can use to poll for progress.
|
|
1328
|
-
* @summary (BETA) Refresh a pipe table partition
|
|
1329
|
-
* @param {AILakeApiRefreshAiLakePipeTablePartitionRequest} requestParameters Request parameters.
|
|
1330
|
-
* @param {*} [options] Override http request option.
|
|
1331
|
-
* @throws {RequiredError}
|
|
1332
|
-
* @memberof AILakeApi
|
|
1333
|
-
*/
|
|
1334
|
-
refreshAiLakePipeTablePartition(requestParameters, options) {
|
|
1335
|
-
return AILakeApi_RefreshAiLakePipeTablePartition(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1336
|
-
}
|
|
1337
966
|
/**
|
|
1338
967
|
* (BETA) Removes a data source association from an AI Lake database instance and deletes the corresponding data source from metadata-api. Fails if removing the data source would leave the instance with no data sources.
|
|
1339
968
|
* @summary (BETA) Remove a data source from an AILake Database instance
|
|
@@ -1419,6 +1048,60 @@ export async function AILakeDatabasesApiAxiosParamCreator_AddAiLakeDatabaseDataS
|
|
|
1419
1048
|
};
|
|
1420
1049
|
}
|
|
1421
1050
|
// AILakeDatabasesApi FP - AILakeDatabasesApiAxiosParamCreator
|
|
1051
|
+
/**
|
|
1052
|
+
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native) and external (Iceberg) catalogs. If tableNames is empty, all tables are analyzed.
|
|
1053
|
+
* @summary (BETA) Run ANALYZE TABLE for tables in a database instance
|
|
1054
|
+
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
1055
|
+
* @param {AnalyzeStatisticsRequest} analyzeStatisticsRequest
|
|
1056
|
+
* @param {string} [operationId]
|
|
1057
|
+
* @param {*} [options] Override http request option.
|
|
1058
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1059
|
+
* @throws {RequiredError}
|
|
1060
|
+
*/
|
|
1061
|
+
export async function AILakeDatabasesApiAxiosParamCreator_AnalyzeStatistics(instanceId, analyzeStatisticsRequest, operationId, options = {}, configuration) {
|
|
1062
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
1063
|
+
assertParamExists('analyzeStatistics', 'instanceId', instanceId);
|
|
1064
|
+
// verify required parameter 'analyzeStatisticsRequest' is not null or undefined
|
|
1065
|
+
assertParamExists('analyzeStatistics', 'analyzeStatisticsRequest', analyzeStatisticsRequest);
|
|
1066
|
+
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/analyzeStatistics`
|
|
1067
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
1068
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1069
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1070
|
+
let baseOptions;
|
|
1071
|
+
if (configuration) {
|
|
1072
|
+
baseOptions = configuration.baseOptions;
|
|
1073
|
+
}
|
|
1074
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
1075
|
+
const localVarHeaderParameter = {};
|
|
1076
|
+
const localVarQueryParameter = {};
|
|
1077
|
+
if (operationId !== undefined && operationId !== null) {
|
|
1078
|
+
localVarHeaderParameter['operation-id'] = String(operationId);
|
|
1079
|
+
}
|
|
1080
|
+
const consumes = [
|
|
1081
|
+
'application/json'
|
|
1082
|
+
];
|
|
1083
|
+
// use application/json if present, otherwise fallback to the first one
|
|
1084
|
+
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
1085
|
+
? 'application/json'
|
|
1086
|
+
: consumes[0];
|
|
1087
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1088
|
+
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
1089
|
+
localVarRequestOptions.headers = {
|
|
1090
|
+
...localVarHeaderParameter,
|
|
1091
|
+
...headersFromBaseOptions,
|
|
1092
|
+
...options.headers,
|
|
1093
|
+
};
|
|
1094
|
+
const needsSerialization = typeof analyzeStatisticsRequest !== "string" ||
|
|
1095
|
+
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
1096
|
+
localVarRequestOptions.data = needsSerialization
|
|
1097
|
+
? JSON.stringify(analyzeStatisticsRequest !== undefined ? analyzeStatisticsRequest : {})
|
|
1098
|
+
: analyzeStatisticsRequest || "";
|
|
1099
|
+
return {
|
|
1100
|
+
url: toPathString(localVarUrlObj),
|
|
1101
|
+
options: localVarRequestOptions,
|
|
1102
|
+
};
|
|
1103
|
+
}
|
|
1104
|
+
// AILakeDatabasesApi FP - AILakeDatabasesApiAxiosParamCreator
|
|
1422
1105
|
/**
|
|
1423
1106
|
* (BETA) Deletes an existing database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1424
1107
|
* @summary (BETA) Delete an existing AILake Database instance
|
|
@@ -1584,7 +1267,7 @@ export async function AILakeDatabasesApiAxiosParamCreator_ListAiLakeDatabaseInst
|
|
|
1584
1267
|
}
|
|
1585
1268
|
// AILakeDatabasesApi FP - AILakeDatabasesApiAxiosParamCreator
|
|
1586
1269
|
/**
|
|
1587
|
-
* (BETA) Lists ObjectStorages registered for the organization.
|
|
1270
|
+
* (BETA) Lists ObjectStorages registered for the organization. Pass the returned `storageId` to the ProvisionDatabase `storageIds` list. Provider credentials are stripped — only safe descriptors (id, name, type, bucket, region, endpoint, …) are returned.
|
|
1588
1271
|
* @summary (BETA) List registered AI Lake ObjectStorages
|
|
1589
1272
|
* @param {number} [page] Zero-based page number.
|
|
1590
1273
|
* @param {number} [size] Number of items per page.
|
|
@@ -1781,688 +1464,255 @@ export async function AILakeDatabasesApi_AddAiLakeDatabaseDataSource(axios, base
|
|
|
1781
1464
|
}
|
|
1782
1465
|
// AILakeDatabasesApi Api FP
|
|
1783
1466
|
/**
|
|
1784
|
-
* (BETA)
|
|
1785
|
-
* @summary (BETA)
|
|
1786
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1787
|
-
* @param {string} basePath Base path.
|
|
1788
|
-
* @param {AILakeDatabasesApiDeprovisionAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1789
|
-
* @param {*} [options] Override http request option.
|
|
1790
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1791
|
-
* @throws {RequiredError}
|
|
1792
|
-
*/
|
|
1793
|
-
export async function AILakeDatabasesApi_DeprovisionAiLakeDatabaseInstance(axios, basePath, requestParameters, options, configuration) {
|
|
1794
|
-
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_DeprovisionAiLakeDatabaseInstance(requestParameters.instanceId, requestParameters.operationId, options || {}, configuration);
|
|
1795
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1796
|
-
}
|
|
1797
|
-
// AILakeDatabasesApi Api FP
|
|
1798
|
-
/**
|
|
1799
|
-
* (BETA) Retrieve details of the specified AI Lake database instance in the organization\'s AI Lake.
|
|
1800
|
-
* @summary (BETA) Get the specified AILake Database instance
|
|
1801
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1802
|
-
* @param {string} basePath Base path.
|
|
1803
|
-
* @param {AILakeDatabasesApiGetAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1804
|
-
* @param {*} [options] Override http request option.
|
|
1805
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1806
|
-
* @throws {RequiredError}
|
|
1807
|
-
*/
|
|
1808
|
-
export async function AILakeDatabasesApi_GetAiLakeDatabaseInstance(axios, basePath, requestParameters, options, configuration) {
|
|
1809
|
-
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_GetAiLakeDatabaseInstance(requestParameters.instanceId, options || {}, configuration);
|
|
1810
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1811
|
-
}
|
|
1812
|
-
// AILakeDatabasesApi Api FP
|
|
1813
|
-
/**
|
|
1814
|
-
* (BETA) Returns data source associations for the specified AI Lake database instance.
|
|
1815
|
-
* @summary (BETA) List data sources of an AILake Database instance
|
|
1816
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1817
|
-
* @param {string} basePath Base path.
|
|
1818
|
-
* @param {AILakeDatabasesApiListAiLakeDatabaseDataSourcesRequest} requestParameters Request parameters.
|
|
1819
|
-
* @param {*} [options] Override http request option.
|
|
1820
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1821
|
-
* @throws {RequiredError}
|
|
1822
|
-
*/
|
|
1823
|
-
export async function AILakeDatabasesApi_ListAiLakeDatabaseDataSources(axios, basePath, requestParameters, options, configuration) {
|
|
1824
|
-
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_ListAiLakeDatabaseDataSources(requestParameters.instanceId, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
|
|
1825
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1826
|
-
}
|
|
1827
|
-
// AILakeDatabasesApi Api FP
|
|
1828
|
-
/**
|
|
1829
|
-
* (BETA) Lists database instances in the organization\'s AI Lake.
|
|
1830
|
-
* @summary (BETA) List AI Lake Database instances
|
|
1831
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1832
|
-
* @param {string} basePath Base path.
|
|
1833
|
-
* @param {AILakeDatabasesApiListAiLakeDatabaseInstancesRequest} requestParameters Request parameters.
|
|
1834
|
-
* @param {*} [options] Override http request option.
|
|
1835
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1836
|
-
* @throws {RequiredError}
|
|
1837
|
-
*/
|
|
1838
|
-
export async function AILakeDatabasesApi_ListAiLakeDatabaseInstances(axios, basePath, requestParameters, options, configuration) {
|
|
1839
|
-
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_ListAiLakeDatabaseInstances(requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
|
|
1840
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1841
|
-
}
|
|
1842
|
-
// AILakeDatabasesApi Api FP
|
|
1843
|
-
/**
|
|
1844
|
-
* (BETA) Lists ObjectStorages registered for the organization. Use the returned `name` as `sourceStorageName` in CreatePipeTable, or pass `storageId` to the ProvisionDatabase `storageIds` list. Provider credentials are stripped — only safe descriptors (id, name, type, bucket, region, endpoint, …) are returned.
|
|
1845
|
-
* @summary (BETA) List registered AI Lake ObjectStorages
|
|
1846
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1847
|
-
* @param {string} basePath Base path.
|
|
1848
|
-
* @param {AILakeDatabasesApiListAiLakeObjectStoragesRequest} requestParameters Request parameters.
|
|
1849
|
-
* @param {*} [options] Override http request option.
|
|
1850
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1851
|
-
* @throws {RequiredError}
|
|
1852
|
-
*/
|
|
1853
|
-
export async function AILakeDatabasesApi_ListAiLakeObjectStorages(axios, basePath, requestParameters, options, configuration) {
|
|
1854
|
-
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_ListAiLakeObjectStorages(requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
|
|
1855
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1856
|
-
}
|
|
1857
|
-
// AILakeDatabasesApi Api FP
|
|
1858
|
-
/**
|
|
1859
|
-
* (BETA) Creates a new database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1860
|
-
* @summary (BETA) Create a new AILake Database instance
|
|
1861
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1862
|
-
* @param {string} basePath Base path.
|
|
1863
|
-
* @param {AILakeDatabasesApiProvisionAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1864
|
-
* @param {*} [options] Override http request option.
|
|
1865
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1866
|
-
* @throws {RequiredError}
|
|
1867
|
-
*/
|
|
1868
|
-
export async function AILakeDatabasesApi_ProvisionAiLakeDatabaseInstance(axios, basePath, requestParameters, options, configuration) {
|
|
1869
|
-
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_ProvisionAiLakeDatabaseInstance(requestParameters.provisionDatabaseInstanceRequest, requestParameters.operationId, options || {}, configuration);
|
|
1870
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1871
|
-
}
|
|
1872
|
-
// AILakeDatabasesApi Api FP
|
|
1873
|
-
/**
|
|
1874
|
-
* (BETA) Removes a data source association from an AI Lake database instance and deletes the corresponding data source from metadata-api. Fails if removing the data source would leave the instance with no data sources.
|
|
1875
|
-
* @summary (BETA) Remove a data source from an AILake Database instance
|
|
1876
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
1877
|
-
* @param {string} basePath Base path.
|
|
1878
|
-
* @param {AILakeDatabasesApiRemoveAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
1879
|
-
* @param {*} [options] Override http request option.
|
|
1880
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
1881
|
-
* @throws {RequiredError}
|
|
1882
|
-
*/
|
|
1883
|
-
export async function AILakeDatabasesApi_RemoveAiLakeDatabaseDataSource(axios, basePath, requestParameters, options, configuration) {
|
|
1884
|
-
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_RemoveAiLakeDatabaseDataSource(requestParameters.instanceId, requestParameters.dataSourceId, options || {}, configuration);
|
|
1885
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1886
|
-
}
|
|
1887
|
-
// AILakeDatabasesApi Api FP
|
|
1888
|
-
/**
|
|
1889
|
-
* (BETA) Updates the data source ID and name for an existing AI Lake database instance without deleting the underlying database. Use this to recover from a wrong data source ID provisioned on an existing database instance.
|
|
1890
|
-
* @summary (BETA) Update the data source of an AILake Database instance
|
|
1467
|
+
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native) and external (Iceberg) catalogs. If tableNames is empty, all tables are analyzed.
|
|
1468
|
+
* @summary (BETA) Run ANALYZE TABLE for tables in a database instance
|
|
1891
1469
|
* @param {AxiosInstance} axios Axios instance.
|
|
1892
1470
|
* @param {string} basePath Base path.
|
|
1893
|
-
* @param {
|
|
1471
|
+
* @param {AILakeDatabasesApiAnalyzeStatisticsRequest} requestParameters Request parameters.
|
|
1894
1472
|
* @param {*} [options] Override http request option.
|
|
1895
1473
|
* @param {Configuration} [configuration] Optional configuration.
|
|
1896
|
-
* @throws {RequiredError}
|
|
1897
|
-
*/
|
|
1898
|
-
export async function
|
|
1899
|
-
const localVarAxiosArgs = await
|
|
1900
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1901
|
-
}
|
|
1902
|
-
/**
|
|
1903
|
-
* AILakeDatabasesApi - object-oriented interface
|
|
1904
|
-
* @export
|
|
1905
|
-
* @class AILakeDatabasesApi
|
|
1906
|
-
* @extends {BaseAPI}
|
|
1907
|
-
*/
|
|
1908
|
-
export class AILakeDatabasesApi extends BaseAPI {
|
|
1909
|
-
/**
|
|
1910
|
-
* (BETA) Associates an additional metadata-api data source with an existing AI Lake database instance. The new data source uses the same StarRocks connection details as the primary data source.
|
|
1911
|
-
* @summary (BETA) Add a data source to an AILake Database instance
|
|
1912
|
-
* @param {AILakeDatabasesApiAddAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
1913
|
-
* @param {*} [options] Override http request option.
|
|
1914
|
-
* @throws {RequiredError}
|
|
1915
|
-
* @memberof AILakeDatabasesApi
|
|
1916
|
-
*/
|
|
1917
|
-
addAiLakeDatabaseDataSource(requestParameters, options) {
|
|
1918
|
-
return AILakeDatabasesApi_AddAiLakeDatabaseDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1919
|
-
}
|
|
1920
|
-
/**
|
|
1921
|
-
* (BETA) Deletes an existing database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1922
|
-
* @summary (BETA) Delete an existing AILake Database instance
|
|
1923
|
-
* @param {AILakeDatabasesApiDeprovisionAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1924
|
-
* @param {*} [options] Override http request option.
|
|
1925
|
-
* @throws {RequiredError}
|
|
1926
|
-
* @memberof AILakeDatabasesApi
|
|
1927
|
-
*/
|
|
1928
|
-
deprovisionAiLakeDatabaseInstance(requestParameters, options) {
|
|
1929
|
-
return AILakeDatabasesApi_DeprovisionAiLakeDatabaseInstance(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1930
|
-
}
|
|
1931
|
-
/**
|
|
1932
|
-
* (BETA) Retrieve details of the specified AI Lake database instance in the organization\'s AI Lake.
|
|
1933
|
-
* @summary (BETA) Get the specified AILake Database instance
|
|
1934
|
-
* @param {AILakeDatabasesApiGetAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1935
|
-
* @param {*} [options] Override http request option.
|
|
1936
|
-
* @throws {RequiredError}
|
|
1937
|
-
* @memberof AILakeDatabasesApi
|
|
1938
|
-
*/
|
|
1939
|
-
getAiLakeDatabaseInstance(requestParameters, options) {
|
|
1940
|
-
return AILakeDatabasesApi_GetAiLakeDatabaseInstance(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1941
|
-
}
|
|
1942
|
-
/**
|
|
1943
|
-
* (BETA) Returns data source associations for the specified AI Lake database instance.
|
|
1944
|
-
* @summary (BETA) List data sources of an AILake Database instance
|
|
1945
|
-
* @param {AILakeDatabasesApiListAiLakeDatabaseDataSourcesRequest} requestParameters Request parameters.
|
|
1946
|
-
* @param {*} [options] Override http request option.
|
|
1947
|
-
* @throws {RequiredError}
|
|
1948
|
-
* @memberof AILakeDatabasesApi
|
|
1949
|
-
*/
|
|
1950
|
-
listAiLakeDatabaseDataSources(requestParameters, options) {
|
|
1951
|
-
return AILakeDatabasesApi_ListAiLakeDatabaseDataSources(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1952
|
-
}
|
|
1953
|
-
/**
|
|
1954
|
-
* (BETA) Lists database instances in the organization\'s AI Lake.
|
|
1955
|
-
* @summary (BETA) List AI Lake Database instances
|
|
1956
|
-
* @param {AILakeDatabasesApiListAiLakeDatabaseInstancesRequest} requestParameters Request parameters.
|
|
1957
|
-
* @param {*} [options] Override http request option.
|
|
1958
|
-
* @throws {RequiredError}
|
|
1959
|
-
* @memberof AILakeDatabasesApi
|
|
1960
|
-
*/
|
|
1961
|
-
listAiLakeDatabaseInstances(requestParameters = {}, options) {
|
|
1962
|
-
return AILakeDatabasesApi_ListAiLakeDatabaseInstances(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1963
|
-
}
|
|
1964
|
-
/**
|
|
1965
|
-
* (BETA) Lists ObjectStorages registered for the organization. Use the returned `name` as `sourceStorageName` in CreatePipeTable, or pass `storageId` to the ProvisionDatabase `storageIds` list. Provider credentials are stripped — only safe descriptors (id, name, type, bucket, region, endpoint, …) are returned.
|
|
1966
|
-
* @summary (BETA) List registered AI Lake ObjectStorages
|
|
1967
|
-
* @param {AILakeDatabasesApiListAiLakeObjectStoragesRequest} requestParameters Request parameters.
|
|
1968
|
-
* @param {*} [options] Override http request option.
|
|
1969
|
-
* @throws {RequiredError}
|
|
1970
|
-
* @memberof AILakeDatabasesApi
|
|
1971
|
-
*/
|
|
1972
|
-
listAiLakeObjectStorages(requestParameters = {}, options) {
|
|
1973
|
-
return AILakeDatabasesApi_ListAiLakeObjectStorages(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1974
|
-
}
|
|
1975
|
-
/**
|
|
1976
|
-
* (BETA) Creates a new database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1977
|
-
* @summary (BETA) Create a new AILake Database instance
|
|
1978
|
-
* @param {AILakeDatabasesApiProvisionAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1979
|
-
* @param {*} [options] Override http request option.
|
|
1980
|
-
* @throws {RequiredError}
|
|
1981
|
-
* @memberof AILakeDatabasesApi
|
|
1982
|
-
*/
|
|
1983
|
-
provisionAiLakeDatabaseInstance(requestParameters, options) {
|
|
1984
|
-
return AILakeDatabasesApi_ProvisionAiLakeDatabaseInstance(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1985
|
-
}
|
|
1986
|
-
/**
|
|
1987
|
-
* (BETA) Removes a data source association from an AI Lake database instance and deletes the corresponding data source from metadata-api. Fails if removing the data source would leave the instance with no data sources.
|
|
1988
|
-
* @summary (BETA) Remove a data source from an AILake Database instance
|
|
1989
|
-
* @param {AILakeDatabasesApiRemoveAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
1990
|
-
* @param {*} [options] Override http request option.
|
|
1991
|
-
* @throws {RequiredError}
|
|
1992
|
-
* @memberof AILakeDatabasesApi
|
|
1993
|
-
*/
|
|
1994
|
-
removeAiLakeDatabaseDataSource(requestParameters, options) {
|
|
1995
|
-
return AILakeDatabasesApi_RemoveAiLakeDatabaseDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1996
|
-
}
|
|
1997
|
-
/**
|
|
1998
|
-
* (BETA) Updates the data source ID and name for an existing AI Lake database instance without deleting the underlying database. Use this to recover from a wrong data source ID provisioned on an existing database instance.
|
|
1999
|
-
* @summary (BETA) Update the data source of an AILake Database instance
|
|
2000
|
-
* @param {AILakeDatabasesApiUpdateAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
2001
|
-
* @param {*} [options] Override http request option.
|
|
2002
|
-
* @throws {RequiredError}
|
|
2003
|
-
* @memberof AILakeDatabasesApi
|
|
2004
|
-
*/
|
|
2005
|
-
updateAiLakeDatabaseDataSource(requestParameters, options) {
|
|
2006
|
-
return AILakeDatabasesApi_UpdateAiLakeDatabaseDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
// AILakePipeTablesApi FP - AILakePipeTablesApiAxiosParamCreator
|
|
2010
|
-
/**
|
|
2011
|
-
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native/PIPE) and external (Iceberg) catalogs. If tableNames is empty, all tables are analyzed.
|
|
2012
|
-
* @summary (BETA) Run ANALYZE TABLE for tables in a database instance
|
|
2013
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
2014
|
-
* @param {AnalyzeStatisticsRequest} analyzeStatisticsRequest
|
|
2015
|
-
* @param {string} [operationId]
|
|
2016
|
-
* @param {*} [options] Override http request option.
|
|
2017
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2018
|
-
* @throws {RequiredError}
|
|
2019
|
-
*/
|
|
2020
|
-
export async function AILakePipeTablesApiAxiosParamCreator_AnalyzeStatistics(instanceId, analyzeStatisticsRequest, operationId, options = {}, configuration) {
|
|
2021
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
2022
|
-
assertParamExists('analyzeStatistics', 'instanceId', instanceId);
|
|
2023
|
-
// verify required parameter 'analyzeStatisticsRequest' is not null or undefined
|
|
2024
|
-
assertParamExists('analyzeStatistics', 'analyzeStatisticsRequest', analyzeStatisticsRequest);
|
|
2025
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/analyzeStatistics`
|
|
2026
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
2027
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2028
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2029
|
-
let baseOptions;
|
|
2030
|
-
if (configuration) {
|
|
2031
|
-
baseOptions = configuration.baseOptions;
|
|
2032
|
-
}
|
|
2033
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2034
|
-
const localVarHeaderParameter = {};
|
|
2035
|
-
const localVarQueryParameter = {};
|
|
2036
|
-
if (operationId !== undefined && operationId !== null) {
|
|
2037
|
-
localVarHeaderParameter['operation-id'] = String(operationId);
|
|
2038
|
-
}
|
|
2039
|
-
const consumes = [
|
|
2040
|
-
'application/json'
|
|
2041
|
-
];
|
|
2042
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2043
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2044
|
-
? 'application/json'
|
|
2045
|
-
: consumes[0];
|
|
2046
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2047
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2048
|
-
localVarRequestOptions.headers = {
|
|
2049
|
-
...localVarHeaderParameter,
|
|
2050
|
-
...headersFromBaseOptions,
|
|
2051
|
-
...options.headers,
|
|
2052
|
-
};
|
|
2053
|
-
const needsSerialization = typeof analyzeStatisticsRequest !== "string" ||
|
|
2054
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2055
|
-
localVarRequestOptions.data = needsSerialization
|
|
2056
|
-
? JSON.stringify(analyzeStatisticsRequest !== undefined ? analyzeStatisticsRequest : {})
|
|
2057
|
-
: analyzeStatisticsRequest || "";
|
|
2058
|
-
return {
|
|
2059
|
-
url: toPathString(localVarUrlObj),
|
|
2060
|
-
options: localVarRequestOptions,
|
|
2061
|
-
};
|
|
2062
|
-
}
|
|
2063
|
-
// AILakePipeTablesApi FP - AILakePipeTablesApiAxiosParamCreator
|
|
2064
|
-
/**
|
|
2065
|
-
* (BETA) Creates a pipe-backed OLAP table in the given AI Lake database instance. Infers schema from parquet files. Returns an operation-id header the client can use to poll for progress.
|
|
2066
|
-
* @summary (BETA) Create a new AI Lake pipe table
|
|
2067
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
2068
|
-
* @param {CreatePipeTableRequest} createPipeTableRequest
|
|
2069
|
-
* @param {string} [operationId]
|
|
2070
|
-
* @param {*} [options] Override http request option.
|
|
2071
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2072
|
-
* @throws {RequiredError}
|
|
2073
|
-
*/
|
|
2074
|
-
export async function AILakePipeTablesApiAxiosParamCreator_CreateAiLakePipeTable(instanceId, createPipeTableRequest, operationId, options = {}, configuration) {
|
|
2075
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
2076
|
-
assertParamExists('createAiLakePipeTable', 'instanceId', instanceId);
|
|
2077
|
-
// verify required parameter 'createPipeTableRequest' is not null or undefined
|
|
2078
|
-
assertParamExists('createAiLakePipeTable', 'createPipeTableRequest', createPipeTableRequest);
|
|
2079
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables`
|
|
2080
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
2081
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2082
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2083
|
-
let baseOptions;
|
|
2084
|
-
if (configuration) {
|
|
2085
|
-
baseOptions = configuration.baseOptions;
|
|
2086
|
-
}
|
|
2087
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2088
|
-
const localVarHeaderParameter = {};
|
|
2089
|
-
const localVarQueryParameter = {};
|
|
2090
|
-
if (operationId !== undefined && operationId !== null) {
|
|
2091
|
-
localVarHeaderParameter['operation-id'] = String(operationId);
|
|
2092
|
-
}
|
|
2093
|
-
const consumes = [
|
|
2094
|
-
'application/json'
|
|
2095
|
-
];
|
|
2096
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2097
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2098
|
-
? 'application/json'
|
|
2099
|
-
: consumes[0];
|
|
2100
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2101
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2102
|
-
localVarRequestOptions.headers = {
|
|
2103
|
-
...localVarHeaderParameter,
|
|
2104
|
-
...headersFromBaseOptions,
|
|
2105
|
-
...options.headers,
|
|
2106
|
-
};
|
|
2107
|
-
const needsSerialization = typeof createPipeTableRequest !== "string" ||
|
|
2108
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2109
|
-
localVarRequestOptions.data = needsSerialization
|
|
2110
|
-
? JSON.stringify(createPipeTableRequest !== undefined ? createPipeTableRequest : {})
|
|
2111
|
-
: createPipeTableRequest || "";
|
|
2112
|
-
return {
|
|
2113
|
-
url: toPathString(localVarUrlObj),
|
|
2114
|
-
options: localVarRequestOptions,
|
|
2115
|
-
};
|
|
2116
|
-
}
|
|
2117
|
-
// AILakePipeTablesApi FP - AILakePipeTablesApiAxiosParamCreator
|
|
2118
|
-
/**
|
|
2119
|
-
* (BETA) Drops the pipe and OLAP table and removes the record. Returns an operation-id header the client can use to poll for progress.
|
|
2120
|
-
* @summary (BETA) Delete an AI Lake pipe table
|
|
2121
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
2122
|
-
* @param {string} tableName Pipe table name.
|
|
2123
|
-
* @param {string} [operationId]
|
|
2124
|
-
* @param {*} [options] Override http request option.
|
|
2125
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2126
|
-
* @throws {RequiredError}
|
|
2127
|
-
*/
|
|
2128
|
-
export async function AILakePipeTablesApiAxiosParamCreator_DeleteAiLakePipeTable(instanceId, tableName, operationId, options = {}, configuration) {
|
|
2129
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
2130
|
-
assertParamExists('deleteAiLakePipeTable', 'instanceId', instanceId);
|
|
2131
|
-
// verify required parameter 'tableName' is not null or undefined
|
|
2132
|
-
assertParamExists('deleteAiLakePipeTable', 'tableName', tableName);
|
|
2133
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables/{tableName}`
|
|
2134
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
|
|
2135
|
-
.replace(`{${"tableName"}}`, encodeURIComponent(String(tableName)));
|
|
2136
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2137
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2138
|
-
let baseOptions;
|
|
2139
|
-
if (configuration) {
|
|
2140
|
-
baseOptions = configuration.baseOptions;
|
|
2141
|
-
}
|
|
2142
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
|
|
2143
|
-
const localVarHeaderParameter = {};
|
|
2144
|
-
const localVarQueryParameter = {};
|
|
2145
|
-
if (operationId !== undefined && operationId !== null) {
|
|
2146
|
-
localVarHeaderParameter['operation-id'] = String(operationId);
|
|
2147
|
-
}
|
|
2148
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2149
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2150
|
-
localVarRequestOptions.headers = {
|
|
2151
|
-
...localVarHeaderParameter,
|
|
2152
|
-
...headersFromBaseOptions,
|
|
2153
|
-
...options.headers,
|
|
2154
|
-
};
|
|
2155
|
-
return {
|
|
2156
|
-
url: toPathString(localVarUrlObj),
|
|
2157
|
-
options: localVarRequestOptions,
|
|
2158
|
-
};
|
|
2159
|
-
}
|
|
2160
|
-
// AILakePipeTablesApi FP - AILakePipeTablesApiAxiosParamCreator
|
|
2161
|
-
/**
|
|
2162
|
-
* (BETA) Returns full details of the specified pipe table.
|
|
2163
|
-
* @summary (BETA) Get an AI Lake pipe table
|
|
2164
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
2165
|
-
* @param {string} tableName Pipe table name.
|
|
2166
|
-
* @param {*} [options] Override http request option.
|
|
2167
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2168
|
-
* @throws {RequiredError}
|
|
2169
|
-
*/
|
|
2170
|
-
export async function AILakePipeTablesApiAxiosParamCreator_GetAiLakePipeTable(instanceId, tableName, options = {}, configuration) {
|
|
2171
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
2172
|
-
assertParamExists('getAiLakePipeTable', 'instanceId', instanceId);
|
|
2173
|
-
// verify required parameter 'tableName' is not null or undefined
|
|
2174
|
-
assertParamExists('getAiLakePipeTable', 'tableName', tableName);
|
|
2175
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables/{tableName}`
|
|
2176
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
|
|
2177
|
-
.replace(`{${"tableName"}}`, encodeURIComponent(String(tableName)));
|
|
2178
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2179
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2180
|
-
let baseOptions;
|
|
2181
|
-
if (configuration) {
|
|
2182
|
-
baseOptions = configuration.baseOptions;
|
|
2183
|
-
}
|
|
2184
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2185
|
-
const localVarHeaderParameter = {};
|
|
2186
|
-
const localVarQueryParameter = {};
|
|
2187
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2188
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2189
|
-
localVarRequestOptions.headers = {
|
|
2190
|
-
...localVarHeaderParameter,
|
|
2191
|
-
...headersFromBaseOptions,
|
|
2192
|
-
...options.headers,
|
|
2193
|
-
};
|
|
2194
|
-
return {
|
|
2195
|
-
url: toPathString(localVarUrlObj),
|
|
2196
|
-
options: localVarRequestOptions,
|
|
2197
|
-
};
|
|
2198
|
-
}
|
|
2199
|
-
// AILakePipeTablesApi FP - AILakePipeTablesApiAxiosParamCreator
|
|
2200
|
-
/**
|
|
2201
|
-
* (BETA) Lists active pipe tables in the given AI Lake database instance.
|
|
2202
|
-
* @summary (BETA) List AI Lake pipe tables
|
|
2203
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
2204
|
-
* @param {number} [page] Zero-based page number.
|
|
2205
|
-
* @param {number} [size] Number of items per page.
|
|
2206
|
-
* @param {Array<string>} [metaInclude]
|
|
2207
|
-
* @param {*} [options] Override http request option.
|
|
2208
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2209
|
-
* @throws {RequiredError}
|
|
2210
|
-
*/
|
|
2211
|
-
export async function AILakePipeTablesApiAxiosParamCreator_ListAiLakePipeTables(instanceId, page, size, metaInclude, options = {}, configuration) {
|
|
2212
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
2213
|
-
assertParamExists('listAiLakePipeTables', 'instanceId', instanceId);
|
|
2214
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables`
|
|
2215
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
2216
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2217
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2218
|
-
let baseOptions;
|
|
2219
|
-
if (configuration) {
|
|
2220
|
-
baseOptions = configuration.baseOptions;
|
|
2221
|
-
}
|
|
2222
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2223
|
-
const localVarHeaderParameter = {};
|
|
2224
|
-
const localVarQueryParameter = {};
|
|
2225
|
-
if (page !== undefined) {
|
|
2226
|
-
localVarQueryParameter['page'] = page;
|
|
2227
|
-
}
|
|
2228
|
-
if (size !== undefined) {
|
|
2229
|
-
localVarQueryParameter['size'] = size;
|
|
2230
|
-
}
|
|
2231
|
-
if (metaInclude) {
|
|
2232
|
-
localVarQueryParameter['metaInclude'] = Array.from(metaInclude);
|
|
2233
|
-
}
|
|
2234
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2235
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2236
|
-
localVarRequestOptions.headers = {
|
|
2237
|
-
...localVarHeaderParameter,
|
|
2238
|
-
...headersFromBaseOptions,
|
|
2239
|
-
...options.headers,
|
|
2240
|
-
};
|
|
2241
|
-
return {
|
|
2242
|
-
url: toPathString(localVarUrlObj),
|
|
2243
|
-
options: localVarRequestOptions,
|
|
2244
|
-
};
|
|
2245
|
-
}
|
|
2246
|
-
// AILakePipeTablesApi FP - AILakePipeTablesApiAxiosParamCreator
|
|
2247
|
-
/**
|
|
2248
|
-
* (BETA) Deletes all rows for the specified Hive partition and re-loads them from S3. Use after overwriting a partition file in object storage with corrected data. Returns an operation-id header the client can use to poll for progress.
|
|
2249
|
-
* @summary (BETA) Refresh a pipe table partition
|
|
2250
|
-
* @param {string} instanceId Database instance identifier. Accepts the database name (preferred) or UUID.
|
|
2251
|
-
* @param {string} tableName Pipe table name.
|
|
2252
|
-
* @param {RefreshPartitionRequest} refreshPartitionRequest
|
|
2253
|
-
* @param {string} [operationId]
|
|
2254
|
-
* @param {*} [options] Override http request option.
|
|
2255
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2256
|
-
* @throws {RequiredError}
|
|
2257
|
-
*/
|
|
2258
|
-
export async function AILakePipeTablesApiAxiosParamCreator_RefreshAiLakePipeTablePartition(instanceId, tableName, refreshPartitionRequest, operationId, options = {}, configuration) {
|
|
2259
|
-
// verify required parameter 'instanceId' is not null or undefined
|
|
2260
|
-
assertParamExists('refreshAiLakePipeTablePartition', 'instanceId', instanceId);
|
|
2261
|
-
// verify required parameter 'tableName' is not null or undefined
|
|
2262
|
-
assertParamExists('refreshAiLakePipeTablePartition', 'tableName', tableName);
|
|
2263
|
-
// verify required parameter 'refreshPartitionRequest' is not null or undefined
|
|
2264
|
-
assertParamExists('refreshAiLakePipeTablePartition', 'refreshPartitionRequest', refreshPartitionRequest);
|
|
2265
|
-
const localVarPath = `/api/v1/ailake/database/instances/{instanceId}/pipeTables/{tableName}/refresh`
|
|
2266
|
-
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)))
|
|
2267
|
-
.replace(`{${"tableName"}}`, encodeURIComponent(String(tableName)));
|
|
2268
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2269
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2270
|
-
let baseOptions;
|
|
2271
|
-
if (configuration) {
|
|
2272
|
-
baseOptions = configuration.baseOptions;
|
|
2273
|
-
}
|
|
2274
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2275
|
-
const localVarHeaderParameter = {};
|
|
2276
|
-
const localVarQueryParameter = {};
|
|
2277
|
-
if (operationId !== undefined && operationId !== null) {
|
|
2278
|
-
localVarHeaderParameter['operation-id'] = String(operationId);
|
|
2279
|
-
}
|
|
2280
|
-
const consumes = [
|
|
2281
|
-
'application/json'
|
|
2282
|
-
];
|
|
2283
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2284
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2285
|
-
? 'application/json'
|
|
2286
|
-
: consumes[0];
|
|
2287
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2288
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2289
|
-
localVarRequestOptions.headers = {
|
|
2290
|
-
...localVarHeaderParameter,
|
|
2291
|
-
...headersFromBaseOptions,
|
|
2292
|
-
...options.headers,
|
|
2293
|
-
};
|
|
2294
|
-
const needsSerialization = typeof refreshPartitionRequest !== "string" ||
|
|
2295
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2296
|
-
localVarRequestOptions.data = needsSerialization
|
|
2297
|
-
? JSON.stringify(refreshPartitionRequest !== undefined ? refreshPartitionRequest : {})
|
|
2298
|
-
: refreshPartitionRequest || "";
|
|
2299
|
-
return {
|
|
2300
|
-
url: toPathString(localVarUrlObj),
|
|
2301
|
-
options: localVarRequestOptions,
|
|
2302
|
-
};
|
|
1474
|
+
* @throws {RequiredError}
|
|
1475
|
+
*/
|
|
1476
|
+
export async function AILakeDatabasesApi_AnalyzeStatistics(axios, basePath, requestParameters, options, configuration) {
|
|
1477
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_AnalyzeStatistics(requestParameters.instanceId, requestParameters.analyzeStatisticsRequest, requestParameters.operationId, options || {}, configuration);
|
|
1478
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2303
1479
|
}
|
|
2304
|
-
//
|
|
1480
|
+
// AILakeDatabasesApi Api FP
|
|
2305
1481
|
/**
|
|
2306
|
-
* (BETA)
|
|
2307
|
-
* @summary (BETA)
|
|
1482
|
+
* (BETA) Deletes an existing database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1483
|
+
* @summary (BETA) Delete an existing AILake Database instance
|
|
1484
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1485
|
+
* @param {string} basePath Base path.
|
|
1486
|
+
* @param {AILakeDatabasesApiDeprovisionAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1487
|
+
* @param {*} [options] Override http request option.
|
|
1488
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1489
|
+
* @throws {RequiredError}
|
|
1490
|
+
*/
|
|
1491
|
+
export async function AILakeDatabasesApi_DeprovisionAiLakeDatabaseInstance(axios, basePath, requestParameters, options, configuration) {
|
|
1492
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_DeprovisionAiLakeDatabaseInstance(requestParameters.instanceId, requestParameters.operationId, options || {}, configuration);
|
|
1493
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1494
|
+
}
|
|
1495
|
+
// AILakeDatabasesApi Api FP
|
|
1496
|
+
/**
|
|
1497
|
+
* (BETA) Retrieve details of the specified AI Lake database instance in the organization\'s AI Lake.
|
|
1498
|
+
* @summary (BETA) Get the specified AILake Database instance
|
|
1499
|
+
* @param {AxiosInstance} axios Axios instance.
|
|
1500
|
+
* @param {string} basePath Base path.
|
|
1501
|
+
* @param {AILakeDatabasesApiGetAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @param {Configuration} [configuration] Optional configuration.
|
|
1504
|
+
* @throws {RequiredError}
|
|
1505
|
+
*/
|
|
1506
|
+
export async function AILakeDatabasesApi_GetAiLakeDatabaseInstance(axios, basePath, requestParameters, options, configuration) {
|
|
1507
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_GetAiLakeDatabaseInstance(requestParameters.instanceId, options || {}, configuration);
|
|
1508
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
1509
|
+
}
|
|
1510
|
+
// AILakeDatabasesApi Api FP
|
|
1511
|
+
/**
|
|
1512
|
+
* (BETA) Returns data source associations for the specified AI Lake database instance.
|
|
1513
|
+
* @summary (BETA) List data sources of an AILake Database instance
|
|
2308
1514
|
* @param {AxiosInstance} axios Axios instance.
|
|
2309
1515
|
* @param {string} basePath Base path.
|
|
2310
|
-
* @param {
|
|
1516
|
+
* @param {AILakeDatabasesApiListAiLakeDatabaseDataSourcesRequest} requestParameters Request parameters.
|
|
2311
1517
|
* @param {*} [options] Override http request option.
|
|
2312
1518
|
* @param {Configuration} [configuration] Optional configuration.
|
|
2313
1519
|
* @throws {RequiredError}
|
|
2314
1520
|
*/
|
|
2315
|
-
export async function
|
|
2316
|
-
const localVarAxiosArgs = await
|
|
1521
|
+
export async function AILakeDatabasesApi_ListAiLakeDatabaseDataSources(axios, basePath, requestParameters, options, configuration) {
|
|
1522
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_ListAiLakeDatabaseDataSources(requestParameters.instanceId, requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
|
|
2317
1523
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2318
1524
|
}
|
|
2319
|
-
//
|
|
1525
|
+
// AILakeDatabasesApi Api FP
|
|
2320
1526
|
/**
|
|
2321
|
-
* (BETA)
|
|
2322
|
-
* @summary (BETA)
|
|
1527
|
+
* (BETA) Lists database instances in the organization\'s AI Lake.
|
|
1528
|
+
* @summary (BETA) List AI Lake Database instances
|
|
2323
1529
|
* @param {AxiosInstance} axios Axios instance.
|
|
2324
1530
|
* @param {string} basePath Base path.
|
|
2325
|
-
* @param {
|
|
1531
|
+
* @param {AILakeDatabasesApiListAiLakeDatabaseInstancesRequest} requestParameters Request parameters.
|
|
2326
1532
|
* @param {*} [options] Override http request option.
|
|
2327
1533
|
* @param {Configuration} [configuration] Optional configuration.
|
|
2328
1534
|
* @throws {RequiredError}
|
|
2329
1535
|
*/
|
|
2330
|
-
export async function
|
|
2331
|
-
const localVarAxiosArgs = await
|
|
1536
|
+
export async function AILakeDatabasesApi_ListAiLakeDatabaseInstances(axios, basePath, requestParameters, options, configuration) {
|
|
1537
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_ListAiLakeDatabaseInstances(requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
|
|
2332
1538
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2333
1539
|
}
|
|
2334
|
-
//
|
|
1540
|
+
// AILakeDatabasesApi Api FP
|
|
2335
1541
|
/**
|
|
2336
|
-
* (BETA)
|
|
2337
|
-
* @summary (BETA)
|
|
1542
|
+
* (BETA) Lists ObjectStorages registered for the organization. Pass the returned `storageId` to the ProvisionDatabase `storageIds` list. Provider credentials are stripped — only safe descriptors (id, name, type, bucket, region, endpoint, …) are returned.
|
|
1543
|
+
* @summary (BETA) List registered AI Lake ObjectStorages
|
|
2338
1544
|
* @param {AxiosInstance} axios Axios instance.
|
|
2339
1545
|
* @param {string} basePath Base path.
|
|
2340
|
-
* @param {
|
|
1546
|
+
* @param {AILakeDatabasesApiListAiLakeObjectStoragesRequest} requestParameters Request parameters.
|
|
2341
1547
|
* @param {*} [options] Override http request option.
|
|
2342
1548
|
* @param {Configuration} [configuration] Optional configuration.
|
|
2343
1549
|
* @throws {RequiredError}
|
|
2344
1550
|
*/
|
|
2345
|
-
export async function
|
|
2346
|
-
const localVarAxiosArgs = await
|
|
1551
|
+
export async function AILakeDatabasesApi_ListAiLakeObjectStorages(axios, basePath, requestParameters, options, configuration) {
|
|
1552
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_ListAiLakeObjectStorages(requestParameters.page, requestParameters.size, requestParameters.metaInclude, options || {}, configuration);
|
|
2347
1553
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2348
1554
|
}
|
|
2349
|
-
//
|
|
1555
|
+
// AILakeDatabasesApi Api FP
|
|
2350
1556
|
/**
|
|
2351
|
-
* (BETA) Returns
|
|
2352
|
-
* @summary (BETA)
|
|
1557
|
+
* (BETA) Creates a new database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1558
|
+
* @summary (BETA) Create a new AILake Database instance
|
|
2353
1559
|
* @param {AxiosInstance} axios Axios instance.
|
|
2354
1560
|
* @param {string} basePath Base path.
|
|
2355
|
-
* @param {
|
|
1561
|
+
* @param {AILakeDatabasesApiProvisionAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
2356
1562
|
* @param {*} [options] Override http request option.
|
|
2357
1563
|
* @param {Configuration} [configuration] Optional configuration.
|
|
2358
1564
|
* @throws {RequiredError}
|
|
2359
1565
|
*/
|
|
2360
|
-
export async function
|
|
2361
|
-
const localVarAxiosArgs = await
|
|
1566
|
+
export async function AILakeDatabasesApi_ProvisionAiLakeDatabaseInstance(axios, basePath, requestParameters, options, configuration) {
|
|
1567
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_ProvisionAiLakeDatabaseInstance(requestParameters.provisionDatabaseInstanceRequest, requestParameters.operationId, options || {}, configuration);
|
|
2362
1568
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2363
1569
|
}
|
|
2364
|
-
//
|
|
1570
|
+
// AILakeDatabasesApi Api FP
|
|
2365
1571
|
/**
|
|
2366
|
-
* (BETA)
|
|
2367
|
-
* @summary (BETA)
|
|
1572
|
+
* (BETA) Removes a data source association from an AI Lake database instance and deletes the corresponding data source from metadata-api. Fails if removing the data source would leave the instance with no data sources.
|
|
1573
|
+
* @summary (BETA) Remove a data source from an AILake Database instance
|
|
2368
1574
|
* @param {AxiosInstance} axios Axios instance.
|
|
2369
1575
|
* @param {string} basePath Base path.
|
|
2370
|
-
* @param {
|
|
1576
|
+
* @param {AILakeDatabasesApiRemoveAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
2371
1577
|
* @param {*} [options] Override http request option.
|
|
2372
1578
|
* @param {Configuration} [configuration] Optional configuration.
|
|
2373
1579
|
* @throws {RequiredError}
|
|
2374
1580
|
*/
|
|
2375
|
-
export async function
|
|
2376
|
-
const localVarAxiosArgs = await
|
|
1581
|
+
export async function AILakeDatabasesApi_RemoveAiLakeDatabaseDataSource(axios, basePath, requestParameters, options, configuration) {
|
|
1582
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_RemoveAiLakeDatabaseDataSource(requestParameters.instanceId, requestParameters.dataSourceId, options || {}, configuration);
|
|
2377
1583
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2378
1584
|
}
|
|
2379
|
-
//
|
|
1585
|
+
// AILakeDatabasesApi Api FP
|
|
2380
1586
|
/**
|
|
2381
|
-
* (BETA)
|
|
2382
|
-
* @summary (BETA)
|
|
1587
|
+
* (BETA) Updates the data source ID and name for an existing AI Lake database instance without deleting the underlying database. Use this to recover from a wrong data source ID provisioned on an existing database instance.
|
|
1588
|
+
* @summary (BETA) Update the data source of an AILake Database instance
|
|
2383
1589
|
* @param {AxiosInstance} axios Axios instance.
|
|
2384
1590
|
* @param {string} basePath Base path.
|
|
2385
|
-
* @param {
|
|
1591
|
+
* @param {AILakeDatabasesApiUpdateAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
2386
1592
|
* @param {*} [options] Override http request option.
|
|
2387
1593
|
* @param {Configuration} [configuration] Optional configuration.
|
|
2388
1594
|
* @throws {RequiredError}
|
|
2389
1595
|
*/
|
|
2390
|
-
export async function
|
|
2391
|
-
const localVarAxiosArgs = await
|
|
1596
|
+
export async function AILakeDatabasesApi_UpdateAiLakeDatabaseDataSource(axios, basePath, requestParameters, options, configuration) {
|
|
1597
|
+
const localVarAxiosArgs = await AILakeDatabasesApiAxiosParamCreator_UpdateAiLakeDatabaseDataSource(requestParameters.instanceId, requestParameters.updateDatabaseDataSourceRequest, options || {}, configuration);
|
|
2392
1598
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
2393
1599
|
}
|
|
2394
1600
|
/**
|
|
2395
|
-
*
|
|
1601
|
+
* AILakeDatabasesApi - object-oriented interface
|
|
2396
1602
|
* @export
|
|
2397
|
-
* @class
|
|
1603
|
+
* @class AILakeDatabasesApi
|
|
2398
1604
|
* @extends {BaseAPI}
|
|
2399
1605
|
*/
|
|
2400
|
-
export class
|
|
1606
|
+
export class AILakeDatabasesApi extends BaseAPI {
|
|
1607
|
+
/**
|
|
1608
|
+
* (BETA) Associates an additional metadata-api data source with an existing AI Lake database instance. The new data source uses the same StarRocks connection details as the primary data source.
|
|
1609
|
+
* @summary (BETA) Add a data source to an AILake Database instance
|
|
1610
|
+
* @param {AILakeDatabasesApiAddAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
1611
|
+
* @param {*} [options] Override http request option.
|
|
1612
|
+
* @throws {RequiredError}
|
|
1613
|
+
* @memberof AILakeDatabasesApi
|
|
1614
|
+
*/
|
|
1615
|
+
addAiLakeDatabaseDataSource(requestParameters, options) {
|
|
1616
|
+
return AILakeDatabasesApi_AddAiLakeDatabaseDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1617
|
+
}
|
|
2401
1618
|
/**
|
|
2402
|
-
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native
|
|
1619
|
+
* (BETA) Collects CBO statistics for tables in a StarRocks database. Works for both internal (native) and external (Iceberg) catalogs. If tableNames is empty, all tables are analyzed.
|
|
2403
1620
|
* @summary (BETA) Run ANALYZE TABLE for tables in a database instance
|
|
2404
|
-
* @param {
|
|
1621
|
+
* @param {AILakeDatabasesApiAnalyzeStatisticsRequest} requestParameters Request parameters.
|
|
2405
1622
|
* @param {*} [options] Override http request option.
|
|
2406
1623
|
* @throws {RequiredError}
|
|
2407
|
-
* @memberof
|
|
1624
|
+
* @memberof AILakeDatabasesApi
|
|
2408
1625
|
*/
|
|
2409
1626
|
analyzeStatistics(requestParameters, options) {
|
|
2410
|
-
return
|
|
1627
|
+
return AILakeDatabasesApi_AnalyzeStatistics(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* (BETA) Deletes an existing database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1631
|
+
* @summary (BETA) Delete an existing AILake Database instance
|
|
1632
|
+
* @param {AILakeDatabasesApiDeprovisionAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1633
|
+
* @param {*} [options] Override http request option.
|
|
1634
|
+
* @throws {RequiredError}
|
|
1635
|
+
* @memberof AILakeDatabasesApi
|
|
1636
|
+
*/
|
|
1637
|
+
deprovisionAiLakeDatabaseInstance(requestParameters, options) {
|
|
1638
|
+
return AILakeDatabasesApi_DeprovisionAiLakeDatabaseInstance(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1639
|
+
}
|
|
1640
|
+
/**
|
|
1641
|
+
* (BETA) Retrieve details of the specified AI Lake database instance in the organization\'s AI Lake.
|
|
1642
|
+
* @summary (BETA) Get the specified AILake Database instance
|
|
1643
|
+
* @param {AILakeDatabasesApiGetAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
1644
|
+
* @param {*} [options] Override http request option.
|
|
1645
|
+
* @throws {RequiredError}
|
|
1646
|
+
* @memberof AILakeDatabasesApi
|
|
1647
|
+
*/
|
|
1648
|
+
getAiLakeDatabaseInstance(requestParameters, options) {
|
|
1649
|
+
return AILakeDatabasesApi_GetAiLakeDatabaseInstance(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
1650
|
+
}
|
|
1651
|
+
/**
|
|
1652
|
+
* (BETA) Returns data source associations for the specified AI Lake database instance.
|
|
1653
|
+
* @summary (BETA) List data sources of an AILake Database instance
|
|
1654
|
+
* @param {AILakeDatabasesApiListAiLakeDatabaseDataSourcesRequest} requestParameters Request parameters.
|
|
1655
|
+
* @param {*} [options] Override http request option.
|
|
1656
|
+
* @throws {RequiredError}
|
|
1657
|
+
* @memberof AILakeDatabasesApi
|
|
1658
|
+
*/
|
|
1659
|
+
listAiLakeDatabaseDataSources(requestParameters, options) {
|
|
1660
|
+
return AILakeDatabasesApi_ListAiLakeDatabaseDataSources(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2411
1661
|
}
|
|
2412
1662
|
/**
|
|
2413
|
-
* (BETA)
|
|
2414
|
-
* @summary (BETA)
|
|
2415
|
-
* @param {
|
|
1663
|
+
* (BETA) Lists database instances in the organization\'s AI Lake.
|
|
1664
|
+
* @summary (BETA) List AI Lake Database instances
|
|
1665
|
+
* @param {AILakeDatabasesApiListAiLakeDatabaseInstancesRequest} requestParameters Request parameters.
|
|
2416
1666
|
* @param {*} [options] Override http request option.
|
|
2417
1667
|
* @throws {RequiredError}
|
|
2418
|
-
* @memberof
|
|
1668
|
+
* @memberof AILakeDatabasesApi
|
|
2419
1669
|
*/
|
|
2420
|
-
|
|
2421
|
-
return
|
|
1670
|
+
listAiLakeDatabaseInstances(requestParameters = {}, options) {
|
|
1671
|
+
return AILakeDatabasesApi_ListAiLakeDatabaseInstances(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2422
1672
|
}
|
|
2423
1673
|
/**
|
|
2424
|
-
* (BETA)
|
|
2425
|
-
* @summary (BETA)
|
|
2426
|
-
* @param {
|
|
1674
|
+
* (BETA) Lists ObjectStorages registered for the organization. Pass the returned `storageId` to the ProvisionDatabase `storageIds` list. Provider credentials are stripped — only safe descriptors (id, name, type, bucket, region, endpoint, …) are returned.
|
|
1675
|
+
* @summary (BETA) List registered AI Lake ObjectStorages
|
|
1676
|
+
* @param {AILakeDatabasesApiListAiLakeObjectStoragesRequest} requestParameters Request parameters.
|
|
2427
1677
|
* @param {*} [options] Override http request option.
|
|
2428
1678
|
* @throws {RequiredError}
|
|
2429
|
-
* @memberof
|
|
1679
|
+
* @memberof AILakeDatabasesApi
|
|
2430
1680
|
*/
|
|
2431
|
-
|
|
2432
|
-
return
|
|
1681
|
+
listAiLakeObjectStorages(requestParameters = {}, options) {
|
|
1682
|
+
return AILakeDatabasesApi_ListAiLakeObjectStorages(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2433
1683
|
}
|
|
2434
1684
|
/**
|
|
2435
|
-
* (BETA) Returns
|
|
2436
|
-
* @summary (BETA)
|
|
2437
|
-
* @param {
|
|
1685
|
+
* (BETA) Creates a new database in the organization\'s AI Lake. Returns an operation-id in the operation-id header the client can use to poll for the progress.
|
|
1686
|
+
* @summary (BETA) Create a new AILake Database instance
|
|
1687
|
+
* @param {AILakeDatabasesApiProvisionAiLakeDatabaseInstanceRequest} requestParameters Request parameters.
|
|
2438
1688
|
* @param {*} [options] Override http request option.
|
|
2439
1689
|
* @throws {RequiredError}
|
|
2440
|
-
* @memberof
|
|
1690
|
+
* @memberof AILakeDatabasesApi
|
|
2441
1691
|
*/
|
|
2442
|
-
|
|
2443
|
-
return
|
|
1692
|
+
provisionAiLakeDatabaseInstance(requestParameters, options) {
|
|
1693
|
+
return AILakeDatabasesApi_ProvisionAiLakeDatabaseInstance(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2444
1694
|
}
|
|
2445
1695
|
/**
|
|
2446
|
-
* (BETA)
|
|
2447
|
-
* @summary (BETA)
|
|
2448
|
-
* @param {
|
|
1696
|
+
* (BETA) Removes a data source association from an AI Lake database instance and deletes the corresponding data source from metadata-api. Fails if removing the data source would leave the instance with no data sources.
|
|
1697
|
+
* @summary (BETA) Remove a data source from an AILake Database instance
|
|
1698
|
+
* @param {AILakeDatabasesApiRemoveAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
2449
1699
|
* @param {*} [options] Override http request option.
|
|
2450
1700
|
* @throws {RequiredError}
|
|
2451
|
-
* @memberof
|
|
1701
|
+
* @memberof AILakeDatabasesApi
|
|
2452
1702
|
*/
|
|
2453
|
-
|
|
2454
|
-
return
|
|
1703
|
+
removeAiLakeDatabaseDataSource(requestParameters, options) {
|
|
1704
|
+
return AILakeDatabasesApi_RemoveAiLakeDatabaseDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2455
1705
|
}
|
|
2456
1706
|
/**
|
|
2457
|
-
* (BETA)
|
|
2458
|
-
* @summary (BETA)
|
|
2459
|
-
* @param {
|
|
1707
|
+
* (BETA) Updates the data source ID and name for an existing AI Lake database instance without deleting the underlying database. Use this to recover from a wrong data source ID provisioned on an existing database instance.
|
|
1708
|
+
* @summary (BETA) Update the data source of an AILake Database instance
|
|
1709
|
+
* @param {AILakeDatabasesApiUpdateAiLakeDatabaseDataSourceRequest} requestParameters Request parameters.
|
|
2460
1710
|
* @param {*} [options] Override http request option.
|
|
2461
1711
|
* @throws {RequiredError}
|
|
2462
|
-
* @memberof
|
|
1712
|
+
* @memberof AILakeDatabasesApi
|
|
2463
1713
|
*/
|
|
2464
|
-
|
|
2465
|
-
return
|
|
1714
|
+
updateAiLakeDatabaseDataSource(requestParameters, options) {
|
|
1715
|
+
return AILakeDatabasesApi_UpdateAiLakeDatabaseDataSource(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
2466
1716
|
}
|
|
2467
1717
|
}
|
|
2468
1718
|
// AILakeServicesOperationsApi FP - AILakeServicesOperationsApiAxiosParamCreator
|
|
@@ -2934,56 +2184,6 @@ export async function ActionsApiAxiosParamCreator_AiChatUsage(workspaceId, optio
|
|
|
2934
2184
|
};
|
|
2935
2185
|
}
|
|
2936
2186
|
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
2937
|
-
/**
|
|
2938
|
-
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
2939
|
-
* @summary (BETA) Semantic Search in Metadata
|
|
2940
|
-
* @param {string} workspaceId Workspace identifier
|
|
2941
|
-
* @param {SearchRequest} searchRequest
|
|
2942
|
-
* @param {*} [options] Override http request option.
|
|
2943
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
2944
|
-
* @throws {RequiredError}
|
|
2945
|
-
*/
|
|
2946
|
-
export async function ActionsApiAxiosParamCreator_AiSearch(workspaceId, searchRequest, options = {}, configuration) {
|
|
2947
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
2948
|
-
assertParamExists('aiSearch', 'workspaceId', workspaceId);
|
|
2949
|
-
// verify required parameter 'searchRequest' is not null or undefined
|
|
2950
|
-
assertParamExists('aiSearch', 'searchRequest', searchRequest);
|
|
2951
|
-
const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/ai/search`
|
|
2952
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
2953
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2954
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2955
|
-
let baseOptions;
|
|
2956
|
-
if (configuration) {
|
|
2957
|
-
baseOptions = configuration.baseOptions;
|
|
2958
|
-
}
|
|
2959
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
2960
|
-
const localVarHeaderParameter = {};
|
|
2961
|
-
const localVarQueryParameter = {};
|
|
2962
|
-
const consumes = [
|
|
2963
|
-
'application/json'
|
|
2964
|
-
];
|
|
2965
|
-
// use application/json if present, otherwise fallback to the first one
|
|
2966
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
2967
|
-
? 'application/json'
|
|
2968
|
-
: consumes[0];
|
|
2969
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2970
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
2971
|
-
localVarRequestOptions.headers = {
|
|
2972
|
-
...localVarHeaderParameter,
|
|
2973
|
-
...headersFromBaseOptions,
|
|
2974
|
-
...options.headers,
|
|
2975
|
-
};
|
|
2976
|
-
const needsSerialization = typeof searchRequest !== "string" ||
|
|
2977
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
2978
|
-
localVarRequestOptions.data = needsSerialization
|
|
2979
|
-
? JSON.stringify(searchRequest !== undefined ? searchRequest : {})
|
|
2980
|
-
: searchRequest || "";
|
|
2981
|
-
return {
|
|
2982
|
-
url: toPathString(localVarUrlObj),
|
|
2983
|
-
options: localVarRequestOptions,
|
|
2984
|
-
};
|
|
2985
|
-
}
|
|
2986
|
-
// ActionsApi FP - ActionsApiAxiosParamCreator
|
|
2987
2187
|
/**
|
|
2988
2188
|
* (EXPERIMENTAL) Computes anomaly detection.
|
|
2989
2189
|
* @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
|
|
@@ -5109,21 +4309,6 @@ export async function ActionsApi_AiChatUsage(axios, basePath, requestParameters,
|
|
|
5109
4309
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
5110
4310
|
}
|
|
5111
4311
|
// ActionsApi Api FP
|
|
5112
|
-
/**
|
|
5113
|
-
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
5114
|
-
* @summary (BETA) Semantic Search in Metadata
|
|
5115
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
5116
|
-
* @param {string} basePath Base path.
|
|
5117
|
-
* @param {ActionsApiAiSearchRequest} requestParameters Request parameters.
|
|
5118
|
-
* @param {*} [options] Override http request option.
|
|
5119
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
5120
|
-
* @throws {RequiredError}
|
|
5121
|
-
*/
|
|
5122
|
-
export async function ActionsApi_AiSearch(axios, basePath, requestParameters, options, configuration) {
|
|
5123
|
-
const localVarAxiosArgs = await ActionsApiAxiosParamCreator_AiSearch(requestParameters.workspaceId, requestParameters.searchRequest, options || {}, configuration);
|
|
5124
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
5125
|
-
}
|
|
5126
|
-
// ActionsApi Api FP
|
|
5127
4312
|
/**
|
|
5128
4313
|
* (EXPERIMENTAL) Computes anomaly detection.
|
|
5129
4314
|
* @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
|
|
@@ -5840,17 +5025,6 @@ export class ActionsApi extends BaseAPI {
|
|
|
5840
5025
|
aiChatUsage(requestParameters, options) {
|
|
5841
5026
|
return ActionsApi_AiChatUsage(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
5842
5027
|
}
|
|
5843
|
-
/**
|
|
5844
|
-
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
5845
|
-
* @summary (BETA) Semantic Search in Metadata
|
|
5846
|
-
* @param {ActionsApiAiSearchRequest} requestParameters Request parameters.
|
|
5847
|
-
* @param {*} [options] Override http request option.
|
|
5848
|
-
* @throws {RequiredError}
|
|
5849
|
-
* @memberof ActionsApi
|
|
5850
|
-
*/
|
|
5851
|
-
aiSearch(requestParameters, options) {
|
|
5852
|
-
return ActionsApi_AiSearch(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
5853
|
-
}
|
|
5854
5028
|
/**
|
|
5855
5029
|
* (EXPERIMENTAL) Computes anomaly detection.
|
|
5856
5030
|
* @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
|
|
@@ -7761,56 +6935,6 @@ export async function SmartFunctionsApiAxiosParamCreator_AiChatUsage(workspaceId
|
|
|
7761
6935
|
};
|
|
7762
6936
|
}
|
|
7763
6937
|
// SmartFunctionsApi FP - SmartFunctionsApiAxiosParamCreator
|
|
7764
|
-
/**
|
|
7765
|
-
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
7766
|
-
* @summary (BETA) Semantic Search in Metadata
|
|
7767
|
-
* @param {string} workspaceId Workspace identifier
|
|
7768
|
-
* @param {SearchRequest} searchRequest
|
|
7769
|
-
* @param {*} [options] Override http request option.
|
|
7770
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
7771
|
-
* @throws {RequiredError}
|
|
7772
|
-
*/
|
|
7773
|
-
export async function SmartFunctionsApiAxiosParamCreator_AiSearch(workspaceId, searchRequest, options = {}, configuration) {
|
|
7774
|
-
// verify required parameter 'workspaceId' is not null or undefined
|
|
7775
|
-
assertParamExists('aiSearch', 'workspaceId', workspaceId);
|
|
7776
|
-
// verify required parameter 'searchRequest' is not null or undefined
|
|
7777
|
-
assertParamExists('aiSearch', 'searchRequest', searchRequest);
|
|
7778
|
-
const localVarPath = `/api/v1/actions/workspaces/{workspaceId}/ai/search`
|
|
7779
|
-
.replace(`{${"workspaceId"}}`, encodeURIComponent(String(workspaceId)));
|
|
7780
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7781
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7782
|
-
let baseOptions;
|
|
7783
|
-
if (configuration) {
|
|
7784
|
-
baseOptions = configuration.baseOptions;
|
|
7785
|
-
}
|
|
7786
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
|
|
7787
|
-
const localVarHeaderParameter = {};
|
|
7788
|
-
const localVarQueryParameter = {};
|
|
7789
|
-
const consumes = [
|
|
7790
|
-
'application/json'
|
|
7791
|
-
];
|
|
7792
|
-
// use application/json if present, otherwise fallback to the first one
|
|
7793
|
-
localVarHeaderParameter['Content-Type'] = consumes.includes('application/json')
|
|
7794
|
-
? 'application/json'
|
|
7795
|
-
: consumes[0];
|
|
7796
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7797
|
-
const headersFromBaseOptions = baseOptions?.headers ? baseOptions.headers : {};
|
|
7798
|
-
localVarRequestOptions.headers = {
|
|
7799
|
-
...localVarHeaderParameter,
|
|
7800
|
-
...headersFromBaseOptions,
|
|
7801
|
-
...options.headers,
|
|
7802
|
-
};
|
|
7803
|
-
const needsSerialization = typeof searchRequest !== "string" ||
|
|
7804
|
-
localVarRequestOptions.headers["Content-Type"] === "application/json";
|
|
7805
|
-
localVarRequestOptions.data = needsSerialization
|
|
7806
|
-
? JSON.stringify(searchRequest !== undefined ? searchRequest : {})
|
|
7807
|
-
: searchRequest || "";
|
|
7808
|
-
return {
|
|
7809
|
-
url: toPathString(localVarUrlObj),
|
|
7810
|
-
options: localVarRequestOptions,
|
|
7811
|
-
};
|
|
7812
|
-
}
|
|
7813
|
-
// SmartFunctionsApi FP - SmartFunctionsApiAxiosParamCreator
|
|
7814
6938
|
/**
|
|
7815
6939
|
* (EXPERIMENTAL) Computes anomaly detection.
|
|
7816
6940
|
* @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
|
|
@@ -8776,21 +7900,6 @@ export async function SmartFunctionsApi_AiChatUsage(axios, basePath, requestPara
|
|
|
8776
7900
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
8777
7901
|
}
|
|
8778
7902
|
// SmartFunctionsApi Api FP
|
|
8779
|
-
/**
|
|
8780
|
-
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
8781
|
-
* @summary (BETA) Semantic Search in Metadata
|
|
8782
|
-
* @param {AxiosInstance} axios Axios instance.
|
|
8783
|
-
* @param {string} basePath Base path.
|
|
8784
|
-
* @param {SmartFunctionsApiAiSearchRequest} requestParameters Request parameters.
|
|
8785
|
-
* @param {*} [options] Override http request option.
|
|
8786
|
-
* @param {Configuration} [configuration] Optional configuration.
|
|
8787
|
-
* @throws {RequiredError}
|
|
8788
|
-
*/
|
|
8789
|
-
export async function SmartFunctionsApi_AiSearch(axios, basePath, requestParameters, options, configuration) {
|
|
8790
|
-
const localVarAxiosArgs = await SmartFunctionsApiAxiosParamCreator_AiSearch(requestParameters.workspaceId, requestParameters.searchRequest, options || {}, configuration);
|
|
8791
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, basePath);
|
|
8792
|
-
}
|
|
8793
|
-
// SmartFunctionsApi Api FP
|
|
8794
7903
|
/**
|
|
8795
7904
|
* (EXPERIMENTAL) Computes anomaly detection.
|
|
8796
7905
|
* @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
|
|
@@ -9155,17 +8264,6 @@ export class SmartFunctionsApi extends BaseAPI {
|
|
|
9155
8264
|
aiChatUsage(requestParameters, options) {
|
|
9156
8265
|
return SmartFunctionsApi_AiChatUsage(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
9157
8266
|
}
|
|
9158
|
-
/**
|
|
9159
|
-
* (BETA) Uses similarity (e.g. cosine distance) search to find top X most similar metadata objects.
|
|
9160
|
-
* @summary (BETA) Semantic Search in Metadata
|
|
9161
|
-
* @param {SmartFunctionsApiAiSearchRequest} requestParameters Request parameters.
|
|
9162
|
-
* @param {*} [options] Override http request option.
|
|
9163
|
-
* @throws {RequiredError}
|
|
9164
|
-
* @memberof SmartFunctionsApi
|
|
9165
|
-
*/
|
|
9166
|
-
aiSearch(requestParameters, options) {
|
|
9167
|
-
return SmartFunctionsApi_AiSearch(this.axios, this.basePath, requestParameters, options, this.configuration);
|
|
9168
|
-
}
|
|
9169
8267
|
/**
|
|
9170
8268
|
* (EXPERIMENTAL) Computes anomaly detection.
|
|
9171
8269
|
* @summary (EXPERIMENTAL) Smart functions - Anomaly Detection
|