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
package/src/adminapi.yaml
CHANGED
|
@@ -150,6 +150,12 @@ paths:
|
|
|
150
150
|
schema:
|
|
151
151
|
type: string
|
|
152
152
|
default: admin
|
|
153
|
+
- name: allDatabases
|
|
154
|
+
in: query
|
|
155
|
+
description: 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.
|
|
156
|
+
schema:
|
|
157
|
+
type: boolean
|
|
158
|
+
default: false
|
|
153
159
|
responses:
|
|
154
160
|
'200':
|
|
155
161
|
description: Success
|
|
@@ -210,6 +216,89 @@ paths:
|
|
|
210
216
|
application/json:
|
|
211
217
|
schema:
|
|
212
218
|
$ref: '#/components/schemas/MongoRBACUserCreate'
|
|
219
|
+
/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases:
|
|
220
|
+
get:
|
|
221
|
+
summary: List MongoDB cluster databases
|
|
222
|
+
description: Lists existing database names using the cluster management connection. Does not require a personal Workbench datasource.
|
|
223
|
+
operationId: mongoListClusterDatabases
|
|
224
|
+
tags:
|
|
225
|
+
- mongodb
|
|
226
|
+
- account
|
|
227
|
+
- shared
|
|
228
|
+
parameters:
|
|
229
|
+
- name: orgName
|
|
230
|
+
in: path
|
|
231
|
+
required: true
|
|
232
|
+
schema:
|
|
233
|
+
type: string
|
|
234
|
+
- name: clusterName
|
|
235
|
+
in: path
|
|
236
|
+
required: true
|
|
237
|
+
schema:
|
|
238
|
+
type: string
|
|
239
|
+
responses:
|
|
240
|
+
'200':
|
|
241
|
+
description: Database names, sorted; an empty result is an empty array.
|
|
242
|
+
content:
|
|
243
|
+
application/json:
|
|
244
|
+
schema:
|
|
245
|
+
type: array
|
|
246
|
+
items:
|
|
247
|
+
type: string
|
|
248
|
+
'400':
|
|
249
|
+
$ref: '#/components/responses/400'
|
|
250
|
+
'401':
|
|
251
|
+
$ref: '#/components/responses/401'
|
|
252
|
+
'403':
|
|
253
|
+
$ref: '#/components/responses/403'
|
|
254
|
+
'404':
|
|
255
|
+
$ref: '#/components/responses/404'
|
|
256
|
+
'500':
|
|
257
|
+
$ref: '#/components/responses/500'
|
|
258
|
+
/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/databases/{database}/collections:
|
|
259
|
+
get:
|
|
260
|
+
summary: List MongoDB cluster database objects
|
|
261
|
+
description: Lists existing collections, views and time-series collections in a database using the cluster management connection. Returns metadata, not document contents.
|
|
262
|
+
operationId: mongoListClusterCollections
|
|
263
|
+
tags:
|
|
264
|
+
- mongodb
|
|
265
|
+
- account
|
|
266
|
+
- shared
|
|
267
|
+
parameters:
|
|
268
|
+
- name: orgName
|
|
269
|
+
in: path
|
|
270
|
+
required: true
|
|
271
|
+
schema:
|
|
272
|
+
type: string
|
|
273
|
+
- name: clusterName
|
|
274
|
+
in: path
|
|
275
|
+
required: true
|
|
276
|
+
schema:
|
|
277
|
+
type: string
|
|
278
|
+
- name: database
|
|
279
|
+
in: path
|
|
280
|
+
required: true
|
|
281
|
+
schema:
|
|
282
|
+
type: string
|
|
283
|
+
responses:
|
|
284
|
+
'200':
|
|
285
|
+
description: Database objects; an empty database returns an empty array.
|
|
286
|
+
content:
|
|
287
|
+
application/json:
|
|
288
|
+
schema:
|
|
289
|
+
type: array
|
|
290
|
+
items:
|
|
291
|
+
$ref: '#/components/schemas/MongoCollectionInfo'
|
|
292
|
+
'400':
|
|
293
|
+
$ref: '#/components/responses/400'
|
|
294
|
+
'401':
|
|
295
|
+
$ref: '#/components/responses/401'
|
|
296
|
+
'403':
|
|
297
|
+
$ref: '#/components/responses/403'
|
|
298
|
+
'404':
|
|
299
|
+
$ref: '#/components/responses/404'
|
|
300
|
+
'500':
|
|
301
|
+
$ref: '#/components/responses/500'
|
|
213
302
|
/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/capabilities:
|
|
214
303
|
get:
|
|
215
304
|
summary: GetRBACCapabilities
|
|
@@ -29938,6 +30027,42 @@ components:
|
|
|
29938
30027
|
type: array
|
|
29939
30028
|
items:
|
|
29940
30029
|
$ref: '#/components/schemas/MongoRBACRoleRef'
|
|
30030
|
+
MongoCollectionCapabilities:
|
|
30031
|
+
type: object
|
|
30032
|
+
properties:
|
|
30033
|
+
canReadDocuments:
|
|
30034
|
+
type: boolean
|
|
30035
|
+
x-omitempty: false
|
|
30036
|
+
canWriteDocuments:
|
|
30037
|
+
type: boolean
|
|
30038
|
+
x-omitempty: false
|
|
30039
|
+
canManageIndexes:
|
|
30040
|
+
type: boolean
|
|
30041
|
+
x-omitempty: false
|
|
30042
|
+
canSetValidation:
|
|
30043
|
+
type: boolean
|
|
30044
|
+
x-omitempty: false
|
|
30045
|
+
canDrop:
|
|
30046
|
+
type: boolean
|
|
30047
|
+
x-omitempty: false
|
|
30048
|
+
MongoCollectionInfo:
|
|
30049
|
+
type: object
|
|
30050
|
+
properties:
|
|
30051
|
+
name:
|
|
30052
|
+
type: string
|
|
30053
|
+
description: collection or view name
|
|
30054
|
+
type:
|
|
30055
|
+
type: string
|
|
30056
|
+
description: collection type (collection or view)
|
|
30057
|
+
isSystem:
|
|
30058
|
+
type: boolean
|
|
30059
|
+
description: whether this is a MongoDB system collection
|
|
30060
|
+
x-omitempty: false
|
|
30061
|
+
capabilities:
|
|
30062
|
+
$ref: '#/components/schemas/MongoCollectionCapabilities'
|
|
30063
|
+
options:
|
|
30064
|
+
type: object
|
|
30065
|
+
description: collection options, including viewOn/pipeline when type is view
|
|
29941
30066
|
MongoRBACResourceCapability:
|
|
29942
30067
|
type: object
|
|
29943
30068
|
properties:
|
|
@@ -29954,6 +30079,9 @@ components:
|
|
|
29954
30079
|
MongoRBACCapabilities:
|
|
29955
30080
|
type: object
|
|
29956
30081
|
properties:
|
|
30082
|
+
allDatabaseUsers:
|
|
30083
|
+
type: boolean
|
|
30084
|
+
description: Supports allDatabases on the account list endpoint.
|
|
29957
30085
|
engineVersion:
|
|
29958
30086
|
type: string
|
|
29959
30087
|
resources:
|
|
@@ -35814,42 +35942,6 @@ components:
|
|
|
35814
35942
|
isSystem:
|
|
35815
35943
|
type: boolean
|
|
35816
35944
|
x-omitempty: false
|
|
35817
|
-
MongoCollectionCapabilities:
|
|
35818
|
-
type: object
|
|
35819
|
-
properties:
|
|
35820
|
-
canReadDocuments:
|
|
35821
|
-
type: boolean
|
|
35822
|
-
x-omitempty: false
|
|
35823
|
-
canWriteDocuments:
|
|
35824
|
-
type: boolean
|
|
35825
|
-
x-omitempty: false
|
|
35826
|
-
canManageIndexes:
|
|
35827
|
-
type: boolean
|
|
35828
|
-
x-omitempty: false
|
|
35829
|
-
canSetValidation:
|
|
35830
|
-
type: boolean
|
|
35831
|
-
x-omitempty: false
|
|
35832
|
-
canDrop:
|
|
35833
|
-
type: boolean
|
|
35834
|
-
x-omitempty: false
|
|
35835
|
-
MongoCollectionInfo:
|
|
35836
|
-
type: object
|
|
35837
|
-
properties:
|
|
35838
|
-
name:
|
|
35839
|
-
type: string
|
|
35840
|
-
description: collection or view name
|
|
35841
|
-
type:
|
|
35842
|
-
type: string
|
|
35843
|
-
description: collection type (collection or view)
|
|
35844
|
-
isSystem:
|
|
35845
|
-
type: boolean
|
|
35846
|
-
description: whether this is a MongoDB system collection
|
|
35847
|
-
x-omitempty: false
|
|
35848
|
-
capabilities:
|
|
35849
|
-
$ref: '#/components/schemas/MongoCollectionCapabilities'
|
|
35850
|
-
options:
|
|
35851
|
-
type: object
|
|
35852
|
-
description: collection options, including viewOn/pipeline when type is view
|
|
35853
35945
|
MongoCollectionStats:
|
|
35854
35946
|
type: object
|
|
35855
35947
|
properties:
|
|
@@ -40631,6 +40723,12 @@ components:
|
|
|
40631
40723
|
type: integer
|
|
40632
40724
|
info:
|
|
40633
40725
|
type: integer
|
|
40726
|
+
objectTypeEnum:
|
|
40727
|
+
type: string
|
|
40728
|
+
enum:
|
|
40729
|
+
- cluster
|
|
40730
|
+
- channel
|
|
40731
|
+
- unknown
|
|
40634
40732
|
alertStatus:
|
|
40635
40733
|
enum:
|
|
40636
40734
|
- resolved
|
|
@@ -40649,6 +40747,12 @@ components:
|
|
|
40649
40747
|
type: string
|
|
40650
40748
|
clusterName:
|
|
40651
40749
|
type: string
|
|
40750
|
+
objectType:
|
|
40751
|
+
$ref: '#/components/schemas/objectTypeEnum'
|
|
40752
|
+
nullable: true
|
|
40753
|
+
objectID:
|
|
40754
|
+
type: string
|
|
40755
|
+
nullable: true
|
|
40652
40756
|
objectName:
|
|
40653
40757
|
type: string
|
|
40654
40758
|
engine:
|
|
@@ -42131,6 +42235,12 @@ components:
|
|
|
42131
42235
|
type: string
|
|
42132
42236
|
opsDefName:
|
|
42133
42237
|
type: string
|
|
42238
|
+
fileDigestParameter:
|
|
42239
|
+
type: string
|
|
42240
|
+
description: Optional custom Ops parameter receiving a JSON object of candidate file SHA256 digests.
|
|
42241
|
+
restartAfterUpdate:
|
|
42242
|
+
type: boolean
|
|
42243
|
+
description: Create a standard restart dependent on successful license installation.
|
|
42134
42244
|
engineOptionsMetricsQueryType:
|
|
42135
42245
|
type: string
|
|
42136
42246
|
description: |
|
|
@@ -43307,6 +43417,11 @@ components:
|
|
|
43307
43417
|
fileName:
|
|
43308
43418
|
type: string
|
|
43309
43419
|
description: the license file name
|
|
43420
|
+
allowedTypes:
|
|
43421
|
+
type: array
|
|
43422
|
+
description: Allowed engine license types. Omit to retain unrestricted license types.
|
|
43423
|
+
items:
|
|
43424
|
+
type: string
|
|
43310
43425
|
files:
|
|
43311
43426
|
type: array
|
|
43312
43427
|
description: Explicit license file upload slots. Each item maps one UI upload field to the file name written into the license Secret.
|
|
@@ -781,6 +781,7 @@ models/object-privilege-spec.ts
|
|
|
781
781
|
models/object-privilege-subject-type.ts
|
|
782
782
|
models/object-privilege-subject.ts
|
|
783
783
|
models/object-privilege-target.ts
|
|
784
|
+
models/object-type-enum.ts
|
|
784
785
|
models/offline-instance-list.ts
|
|
785
786
|
models/offline-instance.ts
|
|
786
787
|
models/offset-reset-strategy.ts
|
|
@@ -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 = `/api/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 = `/api/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
|
/**
|