kb-cloud-client-typescript 2.4.0-alpha.97 → 2.4.0-alpha.99
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/dist/adminapi/apis/account-api.d.ts +145 -2
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +163 -5
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/mongodb-api.d.ts +145 -2
- package/dist/adminapi/apis/mongodb-api.d.ts.map +1 -1
- package/dist/adminapi/apis/mongodb-api.js +163 -5
- package/dist/adminapi/apis/mongodb-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +145 -2
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +163 -5
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/alert-object.d.ts +13 -0
- package/dist/adminapi/models/alert-object.d.ts.map +1 -1
- package/dist/adminapi/models/engine-option-license.d.ts +6 -0
- package/dist/adminapi/models/engine-option-license.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +1 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +1 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/license-option.d.ts +12 -0
- package/dist/adminapi/models/license-option.d.ts.map +1 -1
- package/dist/adminapi/models/mongo-rbaccapabilities.d.ts +6 -0
- package/dist/adminapi/models/mongo-rbaccapabilities.d.ts.map +1 -1
- package/dist/adminapi/models/object-type-enum.d.ts +23 -0
- package/dist/adminapi/models/object-type-enum.d.ts.map +1 -0
- package/dist/adminapi/models/object-type-enum.js +27 -0
- package/dist/adminapi/models/object-type-enum.js.map +1 -0
- package/dist/openapi/apis/account-api.d.ts +145 -2
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +163 -5
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/mongodb-api.d.ts +145 -2
- package/dist/openapi/apis/mongodb-api.d.ts.map +1 -1
- package/dist/openapi/apis/mongodb-api.js +163 -5
- package/dist/openapi/apis/mongodb-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +145 -2
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +163 -5
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/alert-object.d.ts +13 -0
- package/dist/openapi/models/alert-object.d.ts.map +1 -1
- package/dist/openapi/models/engine-option-license.d.ts +6 -0
- package/dist/openapi/models/engine-option-license.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +1 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +1 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/license-option.d.ts +12 -0
- package/dist/openapi/models/license-option.d.ts.map +1 -1
- package/dist/openapi/models/mongo-rbaccapabilities.d.ts +6 -0
- package/dist/openapi/models/mongo-rbaccapabilities.d.ts.map +1 -1
- package/dist/openapi/models/object-type-enum.d.ts +23 -0
- package/dist/openapi/models/object-type-enum.d.ts.map +1 -0
- package/dist/openapi/models/object-type-enum.js +27 -0
- package/dist/openapi/models/object-type-enum.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +1 -0
- package/src/adminapi/apis/account-api.ts +256 -5
- package/src/adminapi/apis/mongodb-api.ts +256 -5
- package/src/adminapi/apis/shared-api.ts +256 -5
- package/src/adminapi/models/alert-object.ts +15 -0
- package/src/adminapi/models/engine-option-license.ts +6 -0
- package/src/adminapi/models/index.ts +1 -0
- package/src/adminapi/models/license-option.ts +12 -0
- package/src/adminapi/models/mongo-rbaccapabilities.ts +6 -0
- package/src/adminapi/models/object-type-enum.ts +32 -0
- package/src/adminapi.yaml +151 -36
- package/src/openapi/.openapi-generator/FILES +1 -0
- package/src/openapi/apis/account-api.ts +256 -5
- package/src/openapi/apis/mongodb-api.ts +256 -5
- package/src/openapi/apis/shared-api.ts +256 -5
- package/src/openapi/models/alert-object.ts +15 -0
- package/src/openapi/models/engine-option-license.ts +6 -0
- package/src/openapi/models/index.ts +1 -0
- package/src/openapi/models/license-option.ts +12 -0
- package/src/openapi/models/mongo-rbaccapabilities.ts +6 -0
- package/src/openapi/models/object-type-enum.ts +32 -0
- package/src/openapi.yaml +151 -36
|
@@ -284,6 +284,8 @@ import type { MilvusRoleList } from '../models';
|
|
|
284
284
|
// @ts-ignore
|
|
285
285
|
import type { MilvusRoleRequest } from '../models';
|
|
286
286
|
// @ts-ignore
|
|
287
|
+
import type { MongoCollectionInfo } from '../models';
|
|
288
|
+
// @ts-ignore
|
|
287
289
|
import type { MongoRBACBindingChange } from '../models';
|
|
288
290
|
// @ts-ignore
|
|
289
291
|
import type { MongoRBACCapabilities } from '../models';
|
|
@@ -13326,6 +13328,100 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13326
13328
|
|
|
13327
13329
|
|
|
13328
13330
|
|
|
13331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13333
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13334
|
+
|
|
13335
|
+
return {
|
|
13336
|
+
url: toPathString(localVarUrlObj),
|
|
13337
|
+
options: localVarRequestOptions,
|
|
13338
|
+
};
|
|
13339
|
+
},
|
|
13340
|
+
/**
|
|
13341
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
13342
|
+
* @summary List MongoDB cluster database objects
|
|
13343
|
+
* @param {string} orgName
|
|
13344
|
+
* @param {string} clusterName
|
|
13345
|
+
* @param {string} database
|
|
13346
|
+
* @param {*} [options] Override http request option.
|
|
13347
|
+
* @throws {RequiredError}
|
|
13348
|
+
*/
|
|
13349
|
+
mongoListClusterCollections: async (orgName: string, clusterName: string, database: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13350
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
13351
|
+
assertParamExists('mongoListClusterCollections', 'orgName', orgName)
|
|
13352
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
13353
|
+
assertParamExists('mongoListClusterCollections', 'clusterName', clusterName)
|
|
13354
|
+
// verify required parameter 'database' is not null or undefined
|
|
13355
|
+
assertParamExists('mongoListClusterCollections', 'database', database)
|
|
13356
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases/{database}/collections`
|
|
13357
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13358
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
13359
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)));
|
|
13360
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13361
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13362
|
+
let baseOptions;
|
|
13363
|
+
if (configuration) {
|
|
13364
|
+
baseOptions = configuration.baseOptions;
|
|
13365
|
+
}
|
|
13366
|
+
|
|
13367
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13368
|
+
const localVarHeaderParameter = {} as any;
|
|
13369
|
+
const localVarQueryParameter = {} as any;
|
|
13370
|
+
|
|
13371
|
+
// authentication BearerToken required
|
|
13372
|
+
// http bearer authentication required
|
|
13373
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13374
|
+
|
|
13375
|
+
// authentication DigestAuth required
|
|
13376
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
13377
|
+
|
|
13378
|
+
|
|
13379
|
+
|
|
13380
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13382
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
13383
|
+
|
|
13384
|
+
return {
|
|
13385
|
+
url: toPathString(localVarUrlObj),
|
|
13386
|
+
options: localVarRequestOptions,
|
|
13387
|
+
};
|
|
13388
|
+
},
|
|
13389
|
+
/**
|
|
13390
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
13391
|
+
* @summary List MongoDB cluster databases
|
|
13392
|
+
* @param {string} orgName
|
|
13393
|
+
* @param {string} clusterName
|
|
13394
|
+
* @param {*} [options] Override http request option.
|
|
13395
|
+
* @throws {RequiredError}
|
|
13396
|
+
*/
|
|
13397
|
+
mongoListClusterDatabases: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13398
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
13399
|
+
assertParamExists('mongoListClusterDatabases', 'orgName', orgName)
|
|
13400
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
13401
|
+
assertParamExists('mongoListClusterDatabases', 'clusterName', clusterName)
|
|
13402
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases`
|
|
13403
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
13404
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
13405
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13406
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13407
|
+
let baseOptions;
|
|
13408
|
+
if (configuration) {
|
|
13409
|
+
baseOptions = configuration.baseOptions;
|
|
13410
|
+
}
|
|
13411
|
+
|
|
13412
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
13413
|
+
const localVarHeaderParameter = {} as any;
|
|
13414
|
+
const localVarQueryParameter = {} as any;
|
|
13415
|
+
|
|
13416
|
+
// authentication BearerToken required
|
|
13417
|
+
// http bearer authentication required
|
|
13418
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
13419
|
+
|
|
13420
|
+
// authentication DigestAuth required
|
|
13421
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
13422
|
+
|
|
13423
|
+
|
|
13424
|
+
|
|
13329
13425
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13330
13426
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13331
13427
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -13391,10 +13487,11 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13391
13487
|
* @param {string} orgName
|
|
13392
13488
|
* @param {string} clusterName
|
|
13393
13489
|
* @param {string} [database]
|
|
13490
|
+
* @param {boolean} [allDatabases] List accounts from all authentication databases. Overrides database; returns role memberships without effective privileges. Use the user detail endpoint for privileges. Requires viewUser and viewRole on the relevant databases.
|
|
13394
13491
|
* @param {*} [options] Override http request option.
|
|
13395
13492
|
* @throws {RequiredError}
|
|
13396
13493
|
*/
|
|
13397
|
-
mongoListRBACUsers: async (orgName: string, clusterName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13494
|
+
mongoListRBACUsers: async (orgName: string, clusterName: string, database?: string, allDatabases?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
13398
13495
|
// verify required parameter 'orgName' is not null or undefined
|
|
13399
13496
|
assertParamExists('mongoListRBACUsers', 'orgName', orgName)
|
|
13400
13497
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -13424,6 +13521,10 @@ export const SharedApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
13424
13521
|
localVarQueryParameter['database'] = database;
|
|
13425
13522
|
}
|
|
13426
13523
|
|
|
13524
|
+
if (allDatabases !== undefined) {
|
|
13525
|
+
localVarQueryParameter['allDatabases'] = allDatabases;
|
|
13526
|
+
}
|
|
13527
|
+
|
|
13427
13528
|
|
|
13428
13529
|
|
|
13429
13530
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -22794,6 +22895,35 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
22794
22895
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoGetRBACUser']?.[localVarOperationServerIndex]?.url;
|
|
22795
22896
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22796
22897
|
},
|
|
22898
|
+
/**
|
|
22899
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
22900
|
+
* @summary List MongoDB cluster database objects
|
|
22901
|
+
* @param {string} orgName
|
|
22902
|
+
* @param {string} clusterName
|
|
22903
|
+
* @param {string} database
|
|
22904
|
+
* @param {*} [options] Override http request option.
|
|
22905
|
+
* @throws {RequiredError}
|
|
22906
|
+
*/
|
|
22907
|
+
async mongoListClusterCollections(orgName: string, clusterName: string, database: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MongoCollectionInfo>>> {
|
|
22908
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListClusterCollections(orgName, clusterName, database, options);
|
|
22909
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22910
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoListClusterCollections']?.[localVarOperationServerIndex]?.url;
|
|
22911
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22912
|
+
},
|
|
22913
|
+
/**
|
|
22914
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
22915
|
+
* @summary List MongoDB cluster databases
|
|
22916
|
+
* @param {string} orgName
|
|
22917
|
+
* @param {string} clusterName
|
|
22918
|
+
* @param {*} [options] Override http request option.
|
|
22919
|
+
* @throws {RequiredError}
|
|
22920
|
+
*/
|
|
22921
|
+
async mongoListClusterDatabases(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
22922
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListClusterDatabases(orgName, clusterName, options);
|
|
22923
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22924
|
+
const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoListClusterDatabases']?.[localVarOperationServerIndex]?.url;
|
|
22925
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22926
|
+
},
|
|
22797
22927
|
/**
|
|
22798
22928
|
*
|
|
22799
22929
|
* @summary ListRBACRoles
|
|
@@ -22815,11 +22945,12 @@ export const SharedApiFp = function(configuration?: Configuration) {
|
|
|
22815
22945
|
* @param {string} orgName
|
|
22816
22946
|
* @param {string} clusterName
|
|
22817
22947
|
* @param {string} [database]
|
|
22948
|
+
* @param {boolean} [allDatabases] List accounts from all authentication databases. Overrides database; returns role memberships without effective privileges. Use the user detail endpoint for privileges. Requires viewUser and viewRole on the relevant databases.
|
|
22818
22949
|
* @param {*} [options] Override http request option.
|
|
22819
22950
|
* @throws {RequiredError}
|
|
22820
22951
|
*/
|
|
22821
|
-
async mongoListRBACUsers(orgName: string, clusterName: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MongoRBACUser>>> {
|
|
22822
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, options);
|
|
22952
|
+
async mongoListRBACUsers(orgName: string, clusterName: string, database?: string, allDatabases?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MongoRBACUser>>> {
|
|
22953
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, allDatabases, options);
|
|
22823
22954
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22824
22955
|
const localVarOperationServerBasePath = operationServerMap['SharedApi.mongoListRBACUsers']?.[localVarOperationServerIndex]?.url;
|
|
22825
22956
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26812,6 +26943,26 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
26812
26943
|
mongoGetRBACUser(requestParameters: SharedApiMongoGetRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACUser> {
|
|
26813
26944
|
return localVarFp.mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
26814
26945
|
},
|
|
26946
|
+
/**
|
|
26947
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
26948
|
+
* @summary List MongoDB cluster database objects
|
|
26949
|
+
* @param {SharedApiMongoListClusterCollectionsRequest} requestParameters Request parameters.
|
|
26950
|
+
* @param {*} [options] Override http request option.
|
|
26951
|
+
* @throws {RequiredError}
|
|
26952
|
+
*/
|
|
26953
|
+
mongoListClusterCollections(requestParameters: SharedApiMongoListClusterCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoCollectionInfo>> {
|
|
26954
|
+
return localVarFp.mongoListClusterCollections(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
|
|
26955
|
+
},
|
|
26956
|
+
/**
|
|
26957
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
26958
|
+
* @summary List MongoDB cluster databases
|
|
26959
|
+
* @param {SharedApiMongoListClusterDatabasesRequest} requestParameters Request parameters.
|
|
26960
|
+
* @param {*} [options] Override http request option.
|
|
26961
|
+
* @throws {RequiredError}
|
|
26962
|
+
*/
|
|
26963
|
+
mongoListClusterDatabases(requestParameters: SharedApiMongoListClusterDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
26964
|
+
return localVarFp.mongoListClusterDatabases(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
26965
|
+
},
|
|
26815
26966
|
/**
|
|
26816
26967
|
*
|
|
26817
26968
|
* @summary ListRBACRoles
|
|
@@ -26830,7 +26981,7 @@ export const SharedApiFactory = function (configuration?: Configuration, basePat
|
|
|
26830
26981
|
* @throws {RequiredError}
|
|
26831
26982
|
*/
|
|
26832
26983
|
mongoListRBACUsers(requestParameters: SharedApiMongoListRBACUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoRBACUser>> {
|
|
26833
|
-
return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
|
|
26984
|
+
return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.allDatabases, options).then((request) => request(axios, basePath));
|
|
26834
26985
|
},
|
|
26835
26986
|
/**
|
|
26836
26987
|
*
|
|
@@ -30174,6 +30325,26 @@ export interface SharedApiInterface {
|
|
|
30174
30325
|
*/
|
|
30175
30326
|
mongoGetRBACUser(requestParameters: SharedApiMongoGetRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACUser>;
|
|
30176
30327
|
|
|
30328
|
+
/**
|
|
30329
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
30330
|
+
* @summary List MongoDB cluster database objects
|
|
30331
|
+
* @param {SharedApiMongoListClusterCollectionsRequest} requestParameters Request parameters.
|
|
30332
|
+
* @param {*} [options] Override http request option.
|
|
30333
|
+
* @throws {RequiredError}
|
|
30334
|
+
* @memberof SharedApiInterface
|
|
30335
|
+
*/
|
|
30336
|
+
mongoListClusterCollections(requestParameters: SharedApiMongoListClusterCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoCollectionInfo>>;
|
|
30337
|
+
|
|
30338
|
+
/**
|
|
30339
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
30340
|
+
* @summary List MongoDB cluster databases
|
|
30341
|
+
* @param {SharedApiMongoListClusterDatabasesRequest} requestParameters Request parameters.
|
|
30342
|
+
* @param {*} [options] Override http request option.
|
|
30343
|
+
* @throws {RequiredError}
|
|
30344
|
+
* @memberof SharedApiInterface
|
|
30345
|
+
*/
|
|
30346
|
+
mongoListClusterDatabases(requestParameters: SharedApiMongoListClusterDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
30347
|
+
|
|
30177
30348
|
/**
|
|
30178
30349
|
*
|
|
30179
30350
|
* @summary ListRBACRoles
|
|
@@ -38776,6 +38947,55 @@ export interface SharedApiMongoGetRBACUserRequest {
|
|
|
38776
38947
|
readonly username: string
|
|
38777
38948
|
}
|
|
38778
38949
|
|
|
38950
|
+
/**
|
|
38951
|
+
* Request parameters for mongoListClusterCollections operation in SharedApi.
|
|
38952
|
+
* @export
|
|
38953
|
+
* @interface SharedApiMongoListClusterCollectionsRequest
|
|
38954
|
+
*/
|
|
38955
|
+
export interface SharedApiMongoListClusterCollectionsRequest {
|
|
38956
|
+
/**
|
|
38957
|
+
*
|
|
38958
|
+
* @type {string}
|
|
38959
|
+
* @memberof SharedApiMongoListClusterCollections
|
|
38960
|
+
*/
|
|
38961
|
+
readonly orgName: string
|
|
38962
|
+
|
|
38963
|
+
/**
|
|
38964
|
+
*
|
|
38965
|
+
* @type {string}
|
|
38966
|
+
* @memberof SharedApiMongoListClusterCollections
|
|
38967
|
+
*/
|
|
38968
|
+
readonly clusterName: string
|
|
38969
|
+
|
|
38970
|
+
/**
|
|
38971
|
+
*
|
|
38972
|
+
* @type {string}
|
|
38973
|
+
* @memberof SharedApiMongoListClusterCollections
|
|
38974
|
+
*/
|
|
38975
|
+
readonly database: string
|
|
38976
|
+
}
|
|
38977
|
+
|
|
38978
|
+
/**
|
|
38979
|
+
* Request parameters for mongoListClusterDatabases operation in SharedApi.
|
|
38980
|
+
* @export
|
|
38981
|
+
* @interface SharedApiMongoListClusterDatabasesRequest
|
|
38982
|
+
*/
|
|
38983
|
+
export interface SharedApiMongoListClusterDatabasesRequest {
|
|
38984
|
+
/**
|
|
38985
|
+
*
|
|
38986
|
+
* @type {string}
|
|
38987
|
+
* @memberof SharedApiMongoListClusterDatabases
|
|
38988
|
+
*/
|
|
38989
|
+
readonly orgName: string
|
|
38990
|
+
|
|
38991
|
+
/**
|
|
38992
|
+
*
|
|
38993
|
+
* @type {string}
|
|
38994
|
+
* @memberof SharedApiMongoListClusterDatabases
|
|
38995
|
+
*/
|
|
38996
|
+
readonly clusterName: string
|
|
38997
|
+
}
|
|
38998
|
+
|
|
38779
38999
|
/**
|
|
38780
39000
|
* Request parameters for mongoListRBACRoles operation in SharedApi.
|
|
38781
39001
|
* @export
|
|
@@ -38830,6 +39050,13 @@ export interface SharedApiMongoListRBACUsersRequest {
|
|
|
38830
39050
|
* @memberof SharedApiMongoListRBACUsers
|
|
38831
39051
|
*/
|
|
38832
39052
|
readonly database?: string
|
|
39053
|
+
|
|
39054
|
+
/**
|
|
39055
|
+
* List accounts from all authentication databases. Overrides database; returns role memberships without effective privileges. Use the user detail endpoint for privileges. Requires viewUser and viewRole on the relevant databases.
|
|
39056
|
+
* @type {boolean}
|
|
39057
|
+
* @memberof SharedApiMongoListRBACUsers
|
|
39058
|
+
*/
|
|
39059
|
+
readonly allDatabases?: boolean
|
|
38833
39060
|
}
|
|
38834
39061
|
|
|
38835
39062
|
/**
|
|
@@ -45614,6 +45841,30 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
45614
45841
|
return SharedApiFp(this.configuration).mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
45615
45842
|
}
|
|
45616
45843
|
|
|
45844
|
+
/**
|
|
45845
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
45846
|
+
* @summary List MongoDB cluster database objects
|
|
45847
|
+
* @param {SharedApiMongoListClusterCollectionsRequest} requestParameters Request parameters.
|
|
45848
|
+
* @param {*} [options] Override http request option.
|
|
45849
|
+
* @throws {RequiredError}
|
|
45850
|
+
* @memberof SharedApi
|
|
45851
|
+
*/
|
|
45852
|
+
public mongoListClusterCollections(requestParameters: SharedApiMongoListClusterCollectionsRequest, options?: RawAxiosRequestConfig) {
|
|
45853
|
+
return SharedApiFp(this.configuration).mongoListClusterCollections(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
|
|
45854
|
+
}
|
|
45855
|
+
|
|
45856
|
+
/**
|
|
45857
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
45858
|
+
* @summary List MongoDB cluster databases
|
|
45859
|
+
* @param {SharedApiMongoListClusterDatabasesRequest} requestParameters Request parameters.
|
|
45860
|
+
* @param {*} [options] Override http request option.
|
|
45861
|
+
* @throws {RequiredError}
|
|
45862
|
+
* @memberof SharedApi
|
|
45863
|
+
*/
|
|
45864
|
+
public mongoListClusterDatabases(requestParameters: SharedApiMongoListClusterDatabasesRequest, options?: RawAxiosRequestConfig) {
|
|
45865
|
+
return SharedApiFp(this.configuration).mongoListClusterDatabases(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
45866
|
+
}
|
|
45867
|
+
|
|
45617
45868
|
/**
|
|
45618
45869
|
*
|
|
45619
45870
|
* @summary ListRBACRoles
|
|
@@ -45635,7 +45886,7 @@ export class SharedApi extends BaseAPI implements SharedApiInterface {
|
|
|
45635
45886
|
* @memberof SharedApi
|
|
45636
45887
|
*/
|
|
45637
45888
|
public mongoListRBACUsers(requestParameters: SharedApiMongoListRBACUsersRequest, options?: RawAxiosRequestConfig) {
|
|
45638
|
-
return SharedApiFp(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
|
|
45889
|
+
return SharedApiFp(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.allDatabases, options).then((request) => request(this.axios, this.basePath));
|
|
45639
45890
|
}
|
|
45640
45891
|
|
|
45641
45892
|
/**
|
|
@@ -19,6 +19,9 @@ import type { AlertSeverity } from './alert-severity';
|
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import type { AlertStatus } from './alert-status';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { ObjectTypeEnum } from './object-type-enum';
|
|
22
25
|
|
|
23
26
|
/**
|
|
24
27
|
* Alert object information
|
|
@@ -56,6 +59,18 @@ export interface AlertObject {
|
|
|
56
59
|
* @memberof AlertObject
|
|
57
60
|
*/
|
|
58
61
|
'clusterName'?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {ObjectTypeEnum}
|
|
65
|
+
* @memberof AlertObject
|
|
66
|
+
*/
|
|
67
|
+
'objectType'?: ObjectTypeEnum;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof AlertObject
|
|
72
|
+
*/
|
|
73
|
+
'objectID'?: string | null;
|
|
59
74
|
/**
|
|
60
75
|
*
|
|
61
76
|
* @type {string}
|
|
@@ -44,6 +44,12 @@ export interface EngineOptionLicense {
|
|
|
44
44
|
* @memberof EngineOptionLicense
|
|
45
45
|
*/
|
|
46
46
|
'fileName'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Allowed engine license types. Omit to retain unrestricted license types.
|
|
49
|
+
* @type {Array<string>}
|
|
50
|
+
* @memberof EngineOptionLicense
|
|
51
|
+
*/
|
|
52
|
+
'allowedTypes'?: Array<string>;
|
|
47
53
|
/**
|
|
48
54
|
* Explicit license file upload slots. Each item maps one UI upload field to the file name written into the license Secret.
|
|
49
55
|
* @type {Array<EngineOptionLicenseFile>}
|
|
@@ -780,6 +780,7 @@ export * from './object-privilege-spec';
|
|
|
780
780
|
export * from './object-privilege-subject';
|
|
781
781
|
export * from './object-privilege-subject-type';
|
|
782
782
|
export * from './object-privilege-target';
|
|
783
|
+
export * from './object-type-enum';
|
|
783
784
|
export * from './offline-instance';
|
|
784
785
|
export * from './offline-instance-list';
|
|
785
786
|
export * from './offset-reset-strategy';
|
|
@@ -32,5 +32,17 @@ export interface LicenseOption {
|
|
|
32
32
|
* @memberof LicenseOption
|
|
33
33
|
*/
|
|
34
34
|
'opsDefName': string;
|
|
35
|
+
/**
|
|
36
|
+
* Optional custom Ops parameter receiving a JSON object of candidate file SHA256 digests.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof LicenseOption
|
|
39
|
+
*/
|
|
40
|
+
'fileDigestParameter'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Create a standard restart dependent on successful license installation.
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof LicenseOption
|
|
45
|
+
*/
|
|
46
|
+
'restartAfterUpdate'?: boolean;
|
|
35
47
|
}
|
|
36
48
|
|
|
@@ -23,6 +23,12 @@ import type { MongoRBACResourceCapability } from './mongo-rbacresource-capabilit
|
|
|
23
23
|
* @interface MongoRBACCapabilities
|
|
24
24
|
*/
|
|
25
25
|
export interface MongoRBACCapabilities {
|
|
26
|
+
/**
|
|
27
|
+
* Supports allDatabases on the account list endpoint.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof MongoRBACCapabilities
|
|
30
|
+
*/
|
|
31
|
+
'allDatabaseUsers'?: boolean;
|
|
26
32
|
/**
|
|
27
33
|
*
|
|
28
34
|
* @type {string}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const ObjectTypeEnum = {
|
|
24
|
+
cluster: 'cluster',
|
|
25
|
+
channel: 'channel',
|
|
26
|
+
unknown: 'unknown'
|
|
27
|
+
} as const;
|
|
28
|
+
|
|
29
|
+
export type ObjectTypeEnum = typeof ObjectTypeEnum[keyof typeof ObjectTypeEnum];
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|