kb-cloud-client-typescript 2.4.0-alpha.98 → 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/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/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/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/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/index.ts +1 -0
- package/src/adminapi/models/mongo-rbaccapabilities.ts +6 -0
- package/src/adminapi/models/object-type-enum.ts +32 -0
- package/src/adminapi.yaml +140 -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/index.ts +1 -0
- package/src/openapi/models/mongo-rbaccapabilities.ts +6 -0
- package/src/openapi/models/object-type-enum.ts +32 -0
- package/src/openapi.yaml +140 -36
|
@@ -50,6 +50,8 @@ import type { MilvusRoleList } from '../models';
|
|
|
50
50
|
// @ts-ignore
|
|
51
51
|
import type { MilvusRoleRequest } from '../models';
|
|
52
52
|
// @ts-ignore
|
|
53
|
+
import type { MongoCollectionInfo } from '../models';
|
|
54
|
+
// @ts-ignore
|
|
53
55
|
import type { MongoRBACBindingChange } from '../models';
|
|
54
56
|
// @ts-ignore
|
|
55
57
|
import type { MongoRBACCapabilities } from '../models';
|
|
@@ -2803,6 +2805,100 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2803
2805
|
|
|
2804
2806
|
|
|
2805
2807
|
|
|
2808
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2809
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2810
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2811
|
+
|
|
2812
|
+
return {
|
|
2813
|
+
url: toPathString(localVarUrlObj),
|
|
2814
|
+
options: localVarRequestOptions,
|
|
2815
|
+
};
|
|
2816
|
+
},
|
|
2817
|
+
/**
|
|
2818
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
2819
|
+
* @summary List MongoDB cluster database objects
|
|
2820
|
+
* @param {string} orgName
|
|
2821
|
+
* @param {string} clusterName
|
|
2822
|
+
* @param {string} database
|
|
2823
|
+
* @param {*} [options] Override http request option.
|
|
2824
|
+
* @throws {RequiredError}
|
|
2825
|
+
*/
|
|
2826
|
+
mongoListClusterCollections: async (orgName: string, clusterName: string, database: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2827
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2828
|
+
assertParamExists('mongoListClusterCollections', 'orgName', orgName)
|
|
2829
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2830
|
+
assertParamExists('mongoListClusterCollections', 'clusterName', clusterName)
|
|
2831
|
+
// verify required parameter 'database' is not null or undefined
|
|
2832
|
+
assertParamExists('mongoListClusterCollections', 'database', database)
|
|
2833
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases/{database}/collections`
|
|
2834
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2835
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
2836
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)));
|
|
2837
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2838
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2839
|
+
let baseOptions;
|
|
2840
|
+
if (configuration) {
|
|
2841
|
+
baseOptions = configuration.baseOptions;
|
|
2842
|
+
}
|
|
2843
|
+
|
|
2844
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2845
|
+
const localVarHeaderParameter = {} as any;
|
|
2846
|
+
const localVarQueryParameter = {} as any;
|
|
2847
|
+
|
|
2848
|
+
// authentication BearerToken required
|
|
2849
|
+
// http bearer authentication required
|
|
2850
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2851
|
+
|
|
2852
|
+
// authentication DigestAuth required
|
|
2853
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2854
|
+
|
|
2855
|
+
|
|
2856
|
+
|
|
2857
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2858
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2859
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2860
|
+
|
|
2861
|
+
return {
|
|
2862
|
+
url: toPathString(localVarUrlObj),
|
|
2863
|
+
options: localVarRequestOptions,
|
|
2864
|
+
};
|
|
2865
|
+
},
|
|
2866
|
+
/**
|
|
2867
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
2868
|
+
* @summary List MongoDB cluster databases
|
|
2869
|
+
* @param {string} orgName
|
|
2870
|
+
* @param {string} clusterName
|
|
2871
|
+
* @param {*} [options] Override http request option.
|
|
2872
|
+
* @throws {RequiredError}
|
|
2873
|
+
*/
|
|
2874
|
+
mongoListClusterDatabases: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2875
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
2876
|
+
assertParamExists('mongoListClusterDatabases', 'orgName', orgName)
|
|
2877
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
2878
|
+
assertParamExists('mongoListClusterDatabases', 'clusterName', clusterName)
|
|
2879
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases`
|
|
2880
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
2881
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
2882
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2883
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2884
|
+
let baseOptions;
|
|
2885
|
+
if (configuration) {
|
|
2886
|
+
baseOptions = configuration.baseOptions;
|
|
2887
|
+
}
|
|
2888
|
+
|
|
2889
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2890
|
+
const localVarHeaderParameter = {} as any;
|
|
2891
|
+
const localVarQueryParameter = {} as any;
|
|
2892
|
+
|
|
2893
|
+
// authentication BearerToken required
|
|
2894
|
+
// http bearer authentication required
|
|
2895
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2896
|
+
|
|
2897
|
+
// authentication DigestAuth required
|
|
2898
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
2899
|
+
|
|
2900
|
+
|
|
2901
|
+
|
|
2806
2902
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2807
2903
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2808
2904
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -2868,10 +2964,11 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2868
2964
|
* @param {string} orgName
|
|
2869
2965
|
* @param {string} clusterName
|
|
2870
2966
|
* @param {string} [database]
|
|
2967
|
+
* @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.
|
|
2871
2968
|
* @param {*} [options] Override http request option.
|
|
2872
2969
|
* @throws {RequiredError}
|
|
2873
2970
|
*/
|
|
2874
|
-
mongoListRBACUsers: async (orgName: string, clusterName: string, database?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2971
|
+
mongoListRBACUsers: async (orgName: string, clusterName: string, database?: string, allDatabases?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2875
2972
|
// verify required parameter 'orgName' is not null or undefined
|
|
2876
2973
|
assertParamExists('mongoListRBACUsers', 'orgName', orgName)
|
|
2877
2974
|
// verify required parameter 'clusterName' is not null or undefined
|
|
@@ -2901,6 +2998,10 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
2901
2998
|
localVarQueryParameter['database'] = database;
|
|
2902
2999
|
}
|
|
2903
3000
|
|
|
3001
|
+
if (allDatabases !== undefined) {
|
|
3002
|
+
localVarQueryParameter['allDatabases'] = allDatabases;
|
|
3003
|
+
}
|
|
3004
|
+
|
|
2904
3005
|
|
|
2905
3006
|
|
|
2906
3007
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4763,6 +4864,35 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
4763
4864
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.mongoGetRBACUser']?.[localVarOperationServerIndex]?.url;
|
|
4764
4865
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4765
4866
|
},
|
|
4867
|
+
/**
|
|
4868
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
4869
|
+
* @summary List MongoDB cluster database objects
|
|
4870
|
+
* @param {string} orgName
|
|
4871
|
+
* @param {string} clusterName
|
|
4872
|
+
* @param {string} database
|
|
4873
|
+
* @param {*} [options] Override http request option.
|
|
4874
|
+
* @throws {RequiredError}
|
|
4875
|
+
*/
|
|
4876
|
+
async mongoListClusterCollections(orgName: string, clusterName: string, database: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MongoCollectionInfo>>> {
|
|
4877
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListClusterCollections(orgName, clusterName, database, options);
|
|
4878
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4879
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.mongoListClusterCollections']?.[localVarOperationServerIndex]?.url;
|
|
4880
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4881
|
+
},
|
|
4882
|
+
/**
|
|
4883
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
4884
|
+
* @summary List MongoDB cluster databases
|
|
4885
|
+
* @param {string} orgName
|
|
4886
|
+
* @param {string} clusterName
|
|
4887
|
+
* @param {*} [options] Override http request option.
|
|
4888
|
+
* @throws {RequiredError}
|
|
4889
|
+
*/
|
|
4890
|
+
async mongoListClusterDatabases(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>> {
|
|
4891
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListClusterDatabases(orgName, clusterName, options);
|
|
4892
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4893
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.mongoListClusterDatabases']?.[localVarOperationServerIndex]?.url;
|
|
4894
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4895
|
+
},
|
|
4766
4896
|
/**
|
|
4767
4897
|
*
|
|
4768
4898
|
* @summary ListRBACRoles
|
|
@@ -4784,11 +4914,12 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
4784
4914
|
* @param {string} orgName
|
|
4785
4915
|
* @param {string} clusterName
|
|
4786
4916
|
* @param {string} [database]
|
|
4917
|
+
* @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.
|
|
4787
4918
|
* @param {*} [options] Override http request option.
|
|
4788
4919
|
* @throws {RequiredError}
|
|
4789
4920
|
*/
|
|
4790
|
-
async mongoListRBACUsers(orgName: string, clusterName: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MongoRBACUser>>> {
|
|
4791
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, options);
|
|
4921
|
+
async mongoListRBACUsers(orgName: string, clusterName: string, database?: string, allDatabases?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MongoRBACUser>>> {
|
|
4922
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, allDatabases, options);
|
|
4792
4923
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
4793
4924
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.mongoListRBACUsers']?.[localVarOperationServerIndex]?.url;
|
|
4794
4925
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5604,6 +5735,26 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
5604
5735
|
mongoGetRBACUser(requestParameters: AccountApiMongoGetRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACUser> {
|
|
5605
5736
|
return localVarFp.mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
5606
5737
|
},
|
|
5738
|
+
/**
|
|
5739
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
5740
|
+
* @summary List MongoDB cluster database objects
|
|
5741
|
+
* @param {AccountApiMongoListClusterCollectionsRequest} requestParameters Request parameters.
|
|
5742
|
+
* @param {*} [options] Override http request option.
|
|
5743
|
+
* @throws {RequiredError}
|
|
5744
|
+
*/
|
|
5745
|
+
mongoListClusterCollections(requestParameters: AccountApiMongoListClusterCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoCollectionInfo>> {
|
|
5746
|
+
return localVarFp.mongoListClusterCollections(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
|
|
5747
|
+
},
|
|
5748
|
+
/**
|
|
5749
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
5750
|
+
* @summary List MongoDB cluster databases
|
|
5751
|
+
* @param {AccountApiMongoListClusterDatabasesRequest} requestParameters Request parameters.
|
|
5752
|
+
* @param {*} [options] Override http request option.
|
|
5753
|
+
* @throws {RequiredError}
|
|
5754
|
+
*/
|
|
5755
|
+
mongoListClusterDatabases(requestParameters: AccountApiMongoListClusterDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>> {
|
|
5756
|
+
return localVarFp.mongoListClusterDatabases(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
5757
|
+
},
|
|
5607
5758
|
/**
|
|
5608
5759
|
*
|
|
5609
5760
|
* @summary ListRBACRoles
|
|
@@ -5622,7 +5773,7 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
5622
5773
|
* @throws {RequiredError}
|
|
5623
5774
|
*/
|
|
5624
5775
|
mongoListRBACUsers(requestParameters: AccountApiMongoListRBACUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoRBACUser>> {
|
|
5625
|
-
return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
|
|
5776
|
+
return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.allDatabases, options).then((request) => request(axios, basePath));
|
|
5626
5777
|
},
|
|
5627
5778
|
/**
|
|
5628
5779
|
*
|
|
@@ -6313,6 +6464,26 @@ export interface AccountApiInterface {
|
|
|
6313
6464
|
*/
|
|
6314
6465
|
mongoGetRBACUser(requestParameters: AccountApiMongoGetRBACUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<MongoRBACUser>;
|
|
6315
6466
|
|
|
6467
|
+
/**
|
|
6468
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
6469
|
+
* @summary List MongoDB cluster database objects
|
|
6470
|
+
* @param {AccountApiMongoListClusterCollectionsRequest} requestParameters Request parameters.
|
|
6471
|
+
* @param {*} [options] Override http request option.
|
|
6472
|
+
* @throws {RequiredError}
|
|
6473
|
+
* @memberof AccountApiInterface
|
|
6474
|
+
*/
|
|
6475
|
+
mongoListClusterCollections(requestParameters: AccountApiMongoListClusterCollectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<MongoCollectionInfo>>;
|
|
6476
|
+
|
|
6477
|
+
/**
|
|
6478
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
6479
|
+
* @summary List MongoDB cluster databases
|
|
6480
|
+
* @param {AccountApiMongoListClusterDatabasesRequest} requestParameters Request parameters.
|
|
6481
|
+
* @param {*} [options] Override http request option.
|
|
6482
|
+
* @throws {RequiredError}
|
|
6483
|
+
* @memberof AccountApiInterface
|
|
6484
|
+
*/
|
|
6485
|
+
mongoListClusterDatabases(requestParameters: AccountApiMongoListClusterDatabasesRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<string>>;
|
|
6486
|
+
|
|
6316
6487
|
/**
|
|
6317
6488
|
*
|
|
6318
6489
|
* @summary ListRBACRoles
|
|
@@ -8244,6 +8415,55 @@ export interface AccountApiMongoGetRBACUserRequest {
|
|
|
8244
8415
|
readonly username: string
|
|
8245
8416
|
}
|
|
8246
8417
|
|
|
8418
|
+
/**
|
|
8419
|
+
* Request parameters for mongoListClusterCollections operation in AccountApi.
|
|
8420
|
+
* @export
|
|
8421
|
+
* @interface AccountApiMongoListClusterCollectionsRequest
|
|
8422
|
+
*/
|
|
8423
|
+
export interface AccountApiMongoListClusterCollectionsRequest {
|
|
8424
|
+
/**
|
|
8425
|
+
*
|
|
8426
|
+
* @type {string}
|
|
8427
|
+
* @memberof AccountApiMongoListClusterCollections
|
|
8428
|
+
*/
|
|
8429
|
+
readonly orgName: string
|
|
8430
|
+
|
|
8431
|
+
/**
|
|
8432
|
+
*
|
|
8433
|
+
* @type {string}
|
|
8434
|
+
* @memberof AccountApiMongoListClusterCollections
|
|
8435
|
+
*/
|
|
8436
|
+
readonly clusterName: string
|
|
8437
|
+
|
|
8438
|
+
/**
|
|
8439
|
+
*
|
|
8440
|
+
* @type {string}
|
|
8441
|
+
* @memberof AccountApiMongoListClusterCollections
|
|
8442
|
+
*/
|
|
8443
|
+
readonly database: string
|
|
8444
|
+
}
|
|
8445
|
+
|
|
8446
|
+
/**
|
|
8447
|
+
* Request parameters for mongoListClusterDatabases operation in AccountApi.
|
|
8448
|
+
* @export
|
|
8449
|
+
* @interface AccountApiMongoListClusterDatabasesRequest
|
|
8450
|
+
*/
|
|
8451
|
+
export interface AccountApiMongoListClusterDatabasesRequest {
|
|
8452
|
+
/**
|
|
8453
|
+
*
|
|
8454
|
+
* @type {string}
|
|
8455
|
+
* @memberof AccountApiMongoListClusterDatabases
|
|
8456
|
+
*/
|
|
8457
|
+
readonly orgName: string
|
|
8458
|
+
|
|
8459
|
+
/**
|
|
8460
|
+
*
|
|
8461
|
+
* @type {string}
|
|
8462
|
+
* @memberof AccountApiMongoListClusterDatabases
|
|
8463
|
+
*/
|
|
8464
|
+
readonly clusterName: string
|
|
8465
|
+
}
|
|
8466
|
+
|
|
8247
8467
|
/**
|
|
8248
8468
|
* Request parameters for mongoListRBACRoles operation in AccountApi.
|
|
8249
8469
|
* @export
|
|
@@ -8298,6 +8518,13 @@ export interface AccountApiMongoListRBACUsersRequest {
|
|
|
8298
8518
|
* @memberof AccountApiMongoListRBACUsers
|
|
8299
8519
|
*/
|
|
8300
8520
|
readonly database?: string
|
|
8521
|
+
|
|
8522
|
+
/**
|
|
8523
|
+
* 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.
|
|
8524
|
+
* @type {boolean}
|
|
8525
|
+
* @memberof AccountApiMongoListRBACUsers
|
|
8526
|
+
*/
|
|
8527
|
+
readonly allDatabases?: boolean
|
|
8301
8528
|
}
|
|
8302
8529
|
|
|
8303
8530
|
/**
|
|
@@ -9628,6 +9855,30 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
9628
9855
|
return AccountApiFp(this.configuration).mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
9629
9856
|
}
|
|
9630
9857
|
|
|
9858
|
+
/**
|
|
9859
|
+
* Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
9860
|
+
* @summary List MongoDB cluster database objects
|
|
9861
|
+
* @param {AccountApiMongoListClusterCollectionsRequest} requestParameters Request parameters.
|
|
9862
|
+
* @param {*} [options] Override http request option.
|
|
9863
|
+
* @throws {RequiredError}
|
|
9864
|
+
* @memberof AccountApi
|
|
9865
|
+
*/
|
|
9866
|
+
public mongoListClusterCollections(requestParameters: AccountApiMongoListClusterCollectionsRequest, options?: RawAxiosRequestConfig) {
|
|
9867
|
+
return AccountApiFp(this.configuration).mongoListClusterCollections(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
|
|
9868
|
+
}
|
|
9869
|
+
|
|
9870
|
+
/**
|
|
9871
|
+
* Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
9872
|
+
* @summary List MongoDB cluster databases
|
|
9873
|
+
* @param {AccountApiMongoListClusterDatabasesRequest} requestParameters Request parameters.
|
|
9874
|
+
* @param {*} [options] Override http request option.
|
|
9875
|
+
* @throws {RequiredError}
|
|
9876
|
+
* @memberof AccountApi
|
|
9877
|
+
*/
|
|
9878
|
+
public mongoListClusterDatabases(requestParameters: AccountApiMongoListClusterDatabasesRequest, options?: RawAxiosRequestConfig) {
|
|
9879
|
+
return AccountApiFp(this.configuration).mongoListClusterDatabases(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
9880
|
+
}
|
|
9881
|
+
|
|
9631
9882
|
/**
|
|
9632
9883
|
*
|
|
9633
9884
|
* @summary ListRBACRoles
|
|
@@ -9649,7 +9900,7 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
9649
9900
|
* @memberof AccountApi
|
|
9650
9901
|
*/
|
|
9651
9902
|
public mongoListRBACUsers(requestParameters: AccountApiMongoListRBACUsersRequest, options?: RawAxiosRequestConfig) {
|
|
9652
|
-
return AccountApiFp(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
|
|
9903
|
+
return AccountApiFp(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.allDatabases, options).then((request) => request(this.axios, this.basePath));
|
|
9653
9904
|
}
|
|
9654
9905
|
|
|
9655
9906
|
/**
|