kb-cloud-client-typescript 2.4.0-alpha.93 → 2.4.0-alpha.95
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 +1129 -38
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +1283 -149
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/mongodb-api.d.ts +943 -4
- package/dist/adminapi/apis/mongodb-api.d.ts.map +1 -1
- package/dist/adminapi/apis/mongodb-api.js +1005 -0
- package/dist/adminapi/apis/mongodb-api.js.map +1 -1
- package/dist/adminapi/apis/rdbms-api.d.ts +186 -34
- package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/adminapi/apis/rdbms-api.js +166 -37
- package/dist/adminapi/apis/rdbms-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +1196 -105
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +1273 -139
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/component-item-create.d.ts +12 -0
- package/dist/adminapi/models/component-item-create.d.ts.map +1 -1
- package/dist/adminapi/models/component-item.d.ts +19 -0
- package/dist/adminapi/models/component-item.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +12 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +12 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/adminapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/adminapi/models/instance-template-attribute.js +0 -1
- package/dist/adminapi/models/instance-template-attribute.js.map +1 -1
- package/dist/adminapi/models/instance-template-create.d.ts +9 -3
- package/dist/adminapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/adminapi/models/instance.d.ts +6 -0
- package/dist/adminapi/models/instance.d.ts.map +1 -1
- package/dist/adminapi/models/mode-option.d.ts +7 -0
- package/dist/adminapi/models/mode-option.d.ts.map +1 -1
- package/dist/adminapi/models/mongo-rbacbinding-change.d.ts +32 -0
- package/dist/adminapi/models/mongo-rbacbinding-change.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacbinding-change.js +16 -0
- package/dist/adminapi/models/mongo-rbacbinding-change.js.map +1 -0
- package/dist/adminapi/models/mongo-rbaccapabilities.d.ts +32 -0
- package/dist/adminapi/models/mongo-rbaccapabilities.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbaccapabilities.js +16 -0
- package/dist/adminapi/models/mongo-rbaccapabilities.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacpassword-change.d.ts +25 -0
- package/dist/adminapi/models/mongo-rbacpassword-change.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacpassword-change.js +16 -0
- package/dist/adminapi/models/mongo-rbacpassword-change.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacprivilege.d.ts +32 -0
- package/dist/adminapi/models/mongo-rbacprivilege.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacprivilege.js +16 -0
- package/dist/adminapi/models/mongo-rbacprivilege.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacresource-capability.d.ts +31 -0
- package/dist/adminapi/models/mongo-rbacresource-capability.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacresource-capability.js +16 -0
- package/dist/adminapi/models/mongo-rbacresource-capability.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacresource.d.ts +43 -0
- package/dist/adminapi/models/mongo-rbacresource.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacresource.js +16 -0
- package/dist/adminapi/models/mongo-rbacresource.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacrole-ref.d.ts +31 -0
- package/dist/adminapi/models/mongo-rbacrole-ref.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacrole-ref.js +16 -0
- package/dist/adminapi/models/mongo-rbacrole-ref.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacrole-write.d.ts +51 -0
- package/dist/adminapi/models/mongo-rbacrole-write.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacrole-write.js +16 -0
- package/dist/adminapi/models/mongo-rbacrole-write.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacrole.d.ts +69 -0
- package/dist/adminapi/models/mongo-rbacrole.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacrole.js +16 -0
- package/dist/adminapi/models/mongo-rbacrole.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacuser-create.d.ts +44 -0
- package/dist/adminapi/models/mongo-rbacuser-create.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacuser-create.js +16 -0
- package/dist/adminapi/models/mongo-rbacuser-create.js.map +1 -0
- package/dist/adminapi/models/mongo-rbacuser.d.ts +57 -0
- package/dist/adminapi/models/mongo-rbacuser.d.ts.map +1 -0
- package/dist/adminapi/models/mongo-rbacuser.js +16 -0
- package/dist/adminapi/models/mongo-rbacuser.js.map +1 -0
- package/dist/adminapi/models/object-privilege-evidence.d.ts +6 -0
- package/dist/adminapi/models/object-privilege-evidence.d.ts.map +1 -1
- package/dist/adminapi/models/object-privilege-reset-step.d.ts +1 -1
- package/dist/adminapi/models/placement-scope.d.ts +22 -0
- package/dist/adminapi/models/placement-scope.d.ts.map +1 -0
- package/dist/adminapi/models/placement-scope.js +26 -0
- package/dist/adminapi/models/placement-scope.js.map +1 -0
- package/dist/internalapi/models/component-item.d.ts +19 -0
- package/dist/internalapi/models/component-item.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +2 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +2 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts +31 -0
- package/dist/internalapi/models/instance-template-create-env-inner.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js +16 -0
- package/dist/internalapi/models/instance-template-create-env-inner.js.map +1 -0
- package/dist/internalapi/models/instance-template-create.d.ts +72 -0
- package/dist/internalapi/models/instance-template-create.d.ts.map +1 -0
- package/dist/internalapi/models/instance-template-create.js +16 -0
- package/dist/internalapi/models/instance-template-create.js.map +1 -0
- package/dist/openapi/apis/account-api.d.ts +1129 -38
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +1283 -149
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/mongodb-api.d.ts +943 -4
- package/dist/openapi/apis/mongodb-api.d.ts.map +1 -1
- package/dist/openapi/apis/mongodb-api.js +1005 -0
- package/dist/openapi/apis/mongodb-api.js.map +1 -1
- package/dist/openapi/apis/rdbms-api.d.ts +186 -34
- package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
- package/dist/openapi/apis/rdbms-api.js +166 -37
- package/dist/openapi/apis/rdbms-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +1196 -105
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +1273 -139
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/component-item-create.d.ts +12 -0
- package/dist/openapi/models/component-item-create.d.ts.map +1 -1
- package/dist/openapi/models/component-item.d.ts +19 -0
- package/dist/openapi/models/component-item.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +12 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +12 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/instance-template-attribute.d.ts +0 -1
- package/dist/openapi/models/instance-template-attribute.d.ts.map +1 -1
- package/dist/openapi/models/instance-template-attribute.js +0 -1
- package/dist/openapi/models/instance-template-attribute.js.map +1 -1
- package/dist/openapi/models/instance-template-create.d.ts +9 -3
- package/dist/openapi/models/instance-template-create.d.ts.map +1 -1
- package/dist/openapi/models/instance.d.ts +6 -0
- package/dist/openapi/models/instance.d.ts.map +1 -1
- package/dist/openapi/models/mode-option.d.ts +7 -0
- package/dist/openapi/models/mode-option.d.ts.map +1 -1
- package/dist/openapi/models/mongo-rbacbinding-change.d.ts +32 -0
- package/dist/openapi/models/mongo-rbacbinding-change.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacbinding-change.js +16 -0
- package/dist/openapi/models/mongo-rbacbinding-change.js.map +1 -0
- package/dist/openapi/models/mongo-rbaccapabilities.d.ts +32 -0
- package/dist/openapi/models/mongo-rbaccapabilities.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbaccapabilities.js +16 -0
- package/dist/openapi/models/mongo-rbaccapabilities.js.map +1 -0
- package/dist/openapi/models/mongo-rbacpassword-change.d.ts +25 -0
- package/dist/openapi/models/mongo-rbacpassword-change.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacpassword-change.js +16 -0
- package/dist/openapi/models/mongo-rbacpassword-change.js.map +1 -0
- package/dist/openapi/models/mongo-rbacprivilege.d.ts +32 -0
- package/dist/openapi/models/mongo-rbacprivilege.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacprivilege.js +16 -0
- package/dist/openapi/models/mongo-rbacprivilege.js.map +1 -0
- package/dist/openapi/models/mongo-rbacresource-capability.d.ts +31 -0
- package/dist/openapi/models/mongo-rbacresource-capability.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacresource-capability.js +16 -0
- package/dist/openapi/models/mongo-rbacresource-capability.js.map +1 -0
- package/dist/openapi/models/mongo-rbacresource.d.ts +43 -0
- package/dist/openapi/models/mongo-rbacresource.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacresource.js +16 -0
- package/dist/openapi/models/mongo-rbacresource.js.map +1 -0
- package/dist/openapi/models/mongo-rbacrole-ref.d.ts +31 -0
- package/dist/openapi/models/mongo-rbacrole-ref.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacrole-ref.js +16 -0
- package/dist/openapi/models/mongo-rbacrole-ref.js.map +1 -0
- package/dist/openapi/models/mongo-rbacrole-write.d.ts +51 -0
- package/dist/openapi/models/mongo-rbacrole-write.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacrole-write.js +16 -0
- package/dist/openapi/models/mongo-rbacrole-write.js.map +1 -0
- package/dist/openapi/models/mongo-rbacrole.d.ts +69 -0
- package/dist/openapi/models/mongo-rbacrole.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacrole.js +16 -0
- package/dist/openapi/models/mongo-rbacrole.js.map +1 -0
- package/dist/openapi/models/mongo-rbacuser-create.d.ts +44 -0
- package/dist/openapi/models/mongo-rbacuser-create.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacuser-create.js +16 -0
- package/dist/openapi/models/mongo-rbacuser-create.js.map +1 -0
- package/dist/openapi/models/mongo-rbacuser.d.ts +57 -0
- package/dist/openapi/models/mongo-rbacuser.d.ts.map +1 -0
- package/dist/openapi/models/mongo-rbacuser.js +16 -0
- package/dist/openapi/models/mongo-rbacuser.js.map +1 -0
- package/dist/openapi/models/object-privilege-evidence.d.ts +6 -0
- package/dist/openapi/models/object-privilege-evidence.d.ts.map +1 -1
- package/dist/openapi/models/object-privilege-reset-step.d.ts +1 -1
- package/dist/openapi/models/placement-scope.d.ts +22 -0
- package/dist/openapi/models/placement-scope.d.ts.map +1 -0
- package/dist/openapi/models/placement-scope.js +26 -0
- package/dist/openapi/models/placement-scope.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +12 -0
- package/src/adminapi/apis/account-api.ts +3961 -2069
- package/src/adminapi/apis/mongodb-api.ts +1757 -120
- package/src/adminapi/apis/rdbms-api.ts +298 -43
- package/src/adminapi/apis/shared-api.ts +2363 -471
- package/src/adminapi/models/component-item-create.ts +12 -0
- package/src/adminapi/models/component-item.ts +21 -0
- package/src/adminapi/models/index.ts +12 -0
- package/src/adminapi/models/instance-template-attribute.ts +0 -1
- package/src/adminapi/models/instance-template-create.ts +9 -3
- package/src/adminapi/models/instance.ts +6 -0
- package/src/adminapi/models/mode-option.ts +9 -0
- package/src/adminapi/models/mongo-rbacbinding-change.ts +39 -0
- package/src/adminapi/models/mongo-rbaccapabilities.ts +39 -0
- package/src/adminapi/models/mongo-rbacpassword-change.ts +30 -0
- package/src/adminapi/models/mongo-rbacprivilege.ts +39 -0
- package/src/adminapi/models/mongo-rbacresource-capability.ts +36 -0
- package/src/adminapi/models/mongo-rbacresource.ts +48 -0
- package/src/adminapi/models/mongo-rbacrole-ref.ts +36 -0
- package/src/adminapi/models/mongo-rbacrole-write.ts +60 -0
- package/src/adminapi/models/mongo-rbacrole.ts +78 -0
- package/src/adminapi/models/mongo-rbacuser-create.ts +51 -0
- package/src/adminapi/models/mongo-rbacuser.ts +66 -0
- package/src/adminapi/models/object-privilege-evidence.ts +6 -0
- package/src/adminapi/models/object-privilege-reset-step.ts +1 -1
- package/src/adminapi/models/placement-scope.ts +31 -0
- package/src/adminapi.yaml +935 -81
- package/src/internalapi/.openapi-generator/FILES +2 -0
- package/src/internalapi/models/component-item.ts +21 -0
- package/src/internalapi/models/index.ts +2 -0
- package/src/internalapi/models/instance-template-create-env-inner.ts +36 -0
- package/src/internalapi/models/instance-template-create.ts +75 -0
- package/src/internalapi.yaml +62 -0
- package/src/openapi/.openapi-generator/FILES +12 -0
- package/src/openapi/apis/account-api.ts +3961 -2069
- package/src/openapi/apis/mongodb-api.ts +1757 -120
- package/src/openapi/apis/rdbms-api.ts +298 -43
- package/src/openapi/apis/shared-api.ts +2168 -276
- package/src/openapi/models/component-item-create.ts +12 -0
- package/src/openapi/models/component-item.ts +21 -0
- package/src/openapi/models/index.ts +12 -0
- package/src/openapi/models/instance-template-attribute.ts +0 -1
- package/src/openapi/models/instance-template-create.ts +9 -3
- package/src/openapi/models/instance.ts +6 -0
- package/src/openapi/models/mode-option.ts +9 -0
- package/src/openapi/models/mongo-rbacbinding-change.ts +39 -0
- package/src/openapi/models/mongo-rbaccapabilities.ts +39 -0
- package/src/openapi/models/mongo-rbacpassword-change.ts +30 -0
- package/src/openapi/models/mongo-rbacprivilege.ts +39 -0
- package/src/openapi/models/mongo-rbacresource-capability.ts +36 -0
- package/src/openapi/models/mongo-rbacresource.ts +48 -0
- package/src/openapi/models/mongo-rbacrole-ref.ts +36 -0
- package/src/openapi/models/mongo-rbacrole-write.ts +60 -0
- package/src/openapi/models/mongo-rbacrole.ts +78 -0
- package/src/openapi/models/mongo-rbacuser-create.ts +51 -0
- package/src/openapi/models/mongo-rbacuser.ts +66 -0
- package/src/openapi/models/object-privilege-evidence.ts +6 -0
- package/src/openapi/models/object-privilege-reset-step.ts +1 -1
- package/src/openapi/models/placement-scope.ts +31 -0
- package/src/openapi.yaml +935 -81
|
@@ -152,6 +152,557 @@ const MongodbApiAxiosParamCreator = function (configuration) {
|
|
|
152
152
|
options: localVarRequestOptions,
|
|
153
153
|
};
|
|
154
154
|
},
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @summary ChangeRBACUserPassword
|
|
158
|
+
* @param {string} orgName
|
|
159
|
+
* @param {string} clusterName
|
|
160
|
+
* @param {string} database
|
|
161
|
+
* @param {string} username
|
|
162
|
+
* @param {MongoRBACPasswordChange} mongoRBACPasswordChange
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
mongoChangeRBACUserPassword: async (orgName, clusterName, database, username, mongoRBACPasswordChange, options = {}) => {
|
|
167
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
168
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'orgName', orgName);
|
|
169
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'clusterName', clusterName);
|
|
171
|
+
// verify required parameter 'database' is not null or undefined
|
|
172
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'database', database);
|
|
173
|
+
// verify required parameter 'username' is not null or undefined
|
|
174
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'username', username);
|
|
175
|
+
// verify required parameter 'mongoRBACPasswordChange' is not null or undefined
|
|
176
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserPassword', 'mongoRBACPasswordChange', mongoRBACPasswordChange);
|
|
177
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/password`
|
|
178
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
179
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
180
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)))
|
|
181
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
182
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
183
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
184
|
+
let baseOptions;
|
|
185
|
+
if (configuration) {
|
|
186
|
+
baseOptions = configuration.baseOptions;
|
|
187
|
+
}
|
|
188
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
189
|
+
const localVarHeaderParameter = {};
|
|
190
|
+
const localVarQueryParameter = {};
|
|
191
|
+
// authentication BearerToken required
|
|
192
|
+
// http bearer authentication required
|
|
193
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
194
|
+
// authentication DigestAuth required
|
|
195
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
196
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
197
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
198
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
199
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
200
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACPasswordChange, localVarRequestOptions, configuration);
|
|
201
|
+
return {
|
|
202
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
},
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary ChangeRBACUserRoles
|
|
209
|
+
* @param {string} orgName
|
|
210
|
+
* @param {string} clusterName
|
|
211
|
+
* @param {string} database
|
|
212
|
+
* @param {string} username
|
|
213
|
+
* @param {MongoRBACBindingChange} mongoRBACBindingChange
|
|
214
|
+
* @param {*} [options] Override http request option.
|
|
215
|
+
* @throws {RequiredError}
|
|
216
|
+
*/
|
|
217
|
+
mongoChangeRBACUserRoles: async (orgName, clusterName, database, username, mongoRBACBindingChange, options = {}) => {
|
|
218
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
219
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'orgName', orgName);
|
|
220
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
221
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'clusterName', clusterName);
|
|
222
|
+
// verify required parameter 'database' is not null or undefined
|
|
223
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'database', database);
|
|
224
|
+
// verify required parameter 'username' is not null or undefined
|
|
225
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'username', username);
|
|
226
|
+
// verify required parameter 'mongoRBACBindingChange' is not null or undefined
|
|
227
|
+
(0, common_1.assertParamExists)('mongoChangeRBACUserRoles', 'mongoRBACBindingChange', mongoRBACBindingChange);
|
|
228
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}/roles`
|
|
229
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
230
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
231
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)))
|
|
232
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
235
|
+
let baseOptions;
|
|
236
|
+
if (configuration) {
|
|
237
|
+
baseOptions = configuration.baseOptions;
|
|
238
|
+
}
|
|
239
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
240
|
+
const localVarHeaderParameter = {};
|
|
241
|
+
const localVarQueryParameter = {};
|
|
242
|
+
// authentication BearerToken required
|
|
243
|
+
// http bearer authentication required
|
|
244
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
245
|
+
// authentication DigestAuth required
|
|
246
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
247
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
248
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
249
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
251
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACBindingChange, localVarRequestOptions, configuration);
|
|
252
|
+
return {
|
|
253
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
254
|
+
options: localVarRequestOptions,
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @summary CreateRBACRole
|
|
260
|
+
* @param {string} orgName
|
|
261
|
+
* @param {string} clusterName
|
|
262
|
+
* @param {MongoRBACRoleWrite} mongoRBACRoleWrite
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
mongoCreateRBACRole: async (orgName, clusterName, mongoRBACRoleWrite, options = {}) => {
|
|
267
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
268
|
+
(0, common_1.assertParamExists)('mongoCreateRBACRole', 'orgName', orgName);
|
|
269
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('mongoCreateRBACRole', 'clusterName', clusterName);
|
|
271
|
+
// verify required parameter 'mongoRBACRoleWrite' is not null or undefined
|
|
272
|
+
(0, common_1.assertParamExists)('mongoCreateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite);
|
|
273
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
|
|
274
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
275
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
276
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
277
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
278
|
+
let baseOptions;
|
|
279
|
+
if (configuration) {
|
|
280
|
+
baseOptions = configuration.baseOptions;
|
|
281
|
+
}
|
|
282
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
283
|
+
const localVarHeaderParameter = {};
|
|
284
|
+
const localVarQueryParameter = {};
|
|
285
|
+
// authentication BearerToken required
|
|
286
|
+
// http bearer authentication required
|
|
287
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
288
|
+
// authentication DigestAuth required
|
|
289
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
290
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
291
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
294
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACRoleWrite, localVarRequestOptions, configuration);
|
|
295
|
+
return {
|
|
296
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
297
|
+
options: localVarRequestOptions,
|
|
298
|
+
};
|
|
299
|
+
},
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @summary CreateRBACUser
|
|
303
|
+
* @param {string} orgName
|
|
304
|
+
* @param {string} clusterName
|
|
305
|
+
* @param {MongoRBACUserCreate} mongoRBACUserCreate
|
|
306
|
+
* @param {*} [options] Override http request option.
|
|
307
|
+
* @throws {RequiredError}
|
|
308
|
+
*/
|
|
309
|
+
mongoCreateRBACUser: async (orgName, clusterName, mongoRBACUserCreate, options = {}) => {
|
|
310
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
311
|
+
(0, common_1.assertParamExists)('mongoCreateRBACUser', 'orgName', orgName);
|
|
312
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
313
|
+
(0, common_1.assertParamExists)('mongoCreateRBACUser', 'clusterName', clusterName);
|
|
314
|
+
// verify required parameter 'mongoRBACUserCreate' is not null or undefined
|
|
315
|
+
(0, common_1.assertParamExists)('mongoCreateRBACUser', 'mongoRBACUserCreate', mongoRBACUserCreate);
|
|
316
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
|
|
317
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
318
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
321
|
+
let baseOptions;
|
|
322
|
+
if (configuration) {
|
|
323
|
+
baseOptions = configuration.baseOptions;
|
|
324
|
+
}
|
|
325
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
326
|
+
const localVarHeaderParameter = {};
|
|
327
|
+
const localVarQueryParameter = {};
|
|
328
|
+
// authentication BearerToken required
|
|
329
|
+
// http bearer authentication required
|
|
330
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
331
|
+
// authentication DigestAuth required
|
|
332
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
333
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
334
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
335
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
336
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
337
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACUserCreate, localVarRequestOptions, configuration);
|
|
338
|
+
return {
|
|
339
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
340
|
+
options: localVarRequestOptions,
|
|
341
|
+
};
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
*
|
|
345
|
+
* @summary DeleteRBACRole
|
|
346
|
+
* @param {string} orgName
|
|
347
|
+
* @param {string} clusterName
|
|
348
|
+
* @param {string} database
|
|
349
|
+
* @param {string} roleName
|
|
350
|
+
* @param {string} expectedRevision
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
mongoDeleteRBACRole: async (orgName, clusterName, database, roleName, expectedRevision, options = {}) => {
|
|
355
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
356
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACRole', 'orgName', orgName);
|
|
357
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
358
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACRole', 'clusterName', clusterName);
|
|
359
|
+
// verify required parameter 'database' is not null or undefined
|
|
360
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACRole', 'database', database);
|
|
361
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
362
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACRole', 'roleName', roleName);
|
|
363
|
+
// verify required parameter 'expectedRevision' is not null or undefined
|
|
364
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACRole', 'expectedRevision', expectedRevision);
|
|
365
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
|
|
366
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
367
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
368
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)))
|
|
369
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
371
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
372
|
+
let baseOptions;
|
|
373
|
+
if (configuration) {
|
|
374
|
+
baseOptions = configuration.baseOptions;
|
|
375
|
+
}
|
|
376
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
377
|
+
const localVarHeaderParameter = {};
|
|
378
|
+
const localVarQueryParameter = {};
|
|
379
|
+
// authentication BearerToken required
|
|
380
|
+
// http bearer authentication required
|
|
381
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
382
|
+
// authentication DigestAuth required
|
|
383
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
384
|
+
if (expectedRevision !== undefined) {
|
|
385
|
+
localVarQueryParameter['expectedRevision'] = expectedRevision;
|
|
386
|
+
}
|
|
387
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
388
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
389
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
390
|
+
return {
|
|
391
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
392
|
+
options: localVarRequestOptions,
|
|
393
|
+
};
|
|
394
|
+
},
|
|
395
|
+
/**
|
|
396
|
+
*
|
|
397
|
+
* @summary DeleteRBACUser
|
|
398
|
+
* @param {string} orgName
|
|
399
|
+
* @param {string} clusterName
|
|
400
|
+
* @param {string} database
|
|
401
|
+
* @param {string} username
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
mongoDeleteRBACUser: async (orgName, clusterName, database, username, options = {}) => {
|
|
406
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
407
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACUser', 'orgName', orgName);
|
|
408
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
409
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACUser', 'clusterName', clusterName);
|
|
410
|
+
// verify required parameter 'database' is not null or undefined
|
|
411
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACUser', 'database', database);
|
|
412
|
+
// verify required parameter 'username' is not null or undefined
|
|
413
|
+
(0, common_1.assertParamExists)('mongoDeleteRBACUser', 'username', username);
|
|
414
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
|
|
415
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
416
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
417
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)))
|
|
418
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
420
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
421
|
+
let baseOptions;
|
|
422
|
+
if (configuration) {
|
|
423
|
+
baseOptions = configuration.baseOptions;
|
|
424
|
+
}
|
|
425
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
426
|
+
const localVarHeaderParameter = {};
|
|
427
|
+
const localVarQueryParameter = {};
|
|
428
|
+
// authentication BearerToken required
|
|
429
|
+
// http bearer authentication required
|
|
430
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
431
|
+
// authentication DigestAuth required
|
|
432
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
433
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
434
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
435
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
436
|
+
return {
|
|
437
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
438
|
+
options: localVarRequestOptions,
|
|
439
|
+
};
|
|
440
|
+
},
|
|
441
|
+
/**
|
|
442
|
+
*
|
|
443
|
+
* @summary GetRBACCapabilities
|
|
444
|
+
* @param {string} orgName
|
|
445
|
+
* @param {string} clusterName
|
|
446
|
+
* @param {*} [options] Override http request option.
|
|
447
|
+
* @throws {RequiredError}
|
|
448
|
+
*/
|
|
449
|
+
mongoGetRBACCapabilities: async (orgName, clusterName, options = {}) => {
|
|
450
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
451
|
+
(0, common_1.assertParamExists)('mongoGetRBACCapabilities', 'orgName', orgName);
|
|
452
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
453
|
+
(0, common_1.assertParamExists)('mongoGetRBACCapabilities', 'clusterName', clusterName);
|
|
454
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/capabilities`
|
|
455
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
456
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
457
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
458
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
459
|
+
let baseOptions;
|
|
460
|
+
if (configuration) {
|
|
461
|
+
baseOptions = configuration.baseOptions;
|
|
462
|
+
}
|
|
463
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
464
|
+
const localVarHeaderParameter = {};
|
|
465
|
+
const localVarQueryParameter = {};
|
|
466
|
+
// authentication BearerToken required
|
|
467
|
+
// http bearer authentication required
|
|
468
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
469
|
+
// authentication DigestAuth required
|
|
470
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
471
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
473
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
474
|
+
return {
|
|
475
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
476
|
+
options: localVarRequestOptions,
|
|
477
|
+
};
|
|
478
|
+
},
|
|
479
|
+
/**
|
|
480
|
+
*
|
|
481
|
+
* @summary GetRBACRole
|
|
482
|
+
* @param {string} orgName
|
|
483
|
+
* @param {string} clusterName
|
|
484
|
+
* @param {string} database
|
|
485
|
+
* @param {string} roleName
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
mongoGetRBACRole: async (orgName, clusterName, database, roleName, options = {}) => {
|
|
490
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
491
|
+
(0, common_1.assertParamExists)('mongoGetRBACRole', 'orgName', orgName);
|
|
492
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
493
|
+
(0, common_1.assertParamExists)('mongoGetRBACRole', 'clusterName', clusterName);
|
|
494
|
+
// verify required parameter 'database' is not null or undefined
|
|
495
|
+
(0, common_1.assertParamExists)('mongoGetRBACRole', 'database', database);
|
|
496
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
497
|
+
(0, common_1.assertParamExists)('mongoGetRBACRole', 'roleName', roleName);
|
|
498
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
|
|
499
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
500
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
501
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)))
|
|
502
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
504
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
505
|
+
let baseOptions;
|
|
506
|
+
if (configuration) {
|
|
507
|
+
baseOptions = configuration.baseOptions;
|
|
508
|
+
}
|
|
509
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
510
|
+
const localVarHeaderParameter = {};
|
|
511
|
+
const localVarQueryParameter = {};
|
|
512
|
+
// authentication BearerToken required
|
|
513
|
+
// http bearer authentication required
|
|
514
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
515
|
+
// authentication DigestAuth required
|
|
516
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
517
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
518
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
519
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
520
|
+
return {
|
|
521
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
522
|
+
options: localVarRequestOptions,
|
|
523
|
+
};
|
|
524
|
+
},
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @summary GetRBACUser
|
|
528
|
+
* @param {string} orgName
|
|
529
|
+
* @param {string} clusterName
|
|
530
|
+
* @param {string} database
|
|
531
|
+
* @param {string} username
|
|
532
|
+
* @param {*} [options] Override http request option.
|
|
533
|
+
* @throws {RequiredError}
|
|
534
|
+
*/
|
|
535
|
+
mongoGetRBACUser: async (orgName, clusterName, database, username, options = {}) => {
|
|
536
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
537
|
+
(0, common_1.assertParamExists)('mongoGetRBACUser', 'orgName', orgName);
|
|
538
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
539
|
+
(0, common_1.assertParamExists)('mongoGetRBACUser', 'clusterName', clusterName);
|
|
540
|
+
// verify required parameter 'database' is not null or undefined
|
|
541
|
+
(0, common_1.assertParamExists)('mongoGetRBACUser', 'database', database);
|
|
542
|
+
// verify required parameter 'username' is not null or undefined
|
|
543
|
+
(0, common_1.assertParamExists)('mongoGetRBACUser', 'username', username);
|
|
544
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users/{database}/{username}`
|
|
545
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
546
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
547
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)))
|
|
548
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
549
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
550
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
551
|
+
let baseOptions;
|
|
552
|
+
if (configuration) {
|
|
553
|
+
baseOptions = configuration.baseOptions;
|
|
554
|
+
}
|
|
555
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
556
|
+
const localVarHeaderParameter = {};
|
|
557
|
+
const localVarQueryParameter = {};
|
|
558
|
+
// authentication BearerToken required
|
|
559
|
+
// http bearer authentication required
|
|
560
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
561
|
+
// authentication DigestAuth required
|
|
562
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
563
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
565
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
566
|
+
return {
|
|
567
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
568
|
+
options: localVarRequestOptions,
|
|
569
|
+
};
|
|
570
|
+
},
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary ListRBACRoles
|
|
574
|
+
* @param {string} orgName
|
|
575
|
+
* @param {string} clusterName
|
|
576
|
+
* @param {string} [database]
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
mongoListRBACRoles: async (orgName, clusterName, database, options = {}) => {
|
|
581
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
582
|
+
(0, common_1.assertParamExists)('mongoListRBACRoles', 'orgName', orgName);
|
|
583
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
584
|
+
(0, common_1.assertParamExists)('mongoListRBACRoles', 'clusterName', clusterName);
|
|
585
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles`
|
|
586
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
587
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
588
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
589
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
590
|
+
let baseOptions;
|
|
591
|
+
if (configuration) {
|
|
592
|
+
baseOptions = configuration.baseOptions;
|
|
593
|
+
}
|
|
594
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
595
|
+
const localVarHeaderParameter = {};
|
|
596
|
+
const localVarQueryParameter = {};
|
|
597
|
+
// authentication BearerToken required
|
|
598
|
+
// http bearer authentication required
|
|
599
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
600
|
+
// authentication DigestAuth required
|
|
601
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
602
|
+
if (database !== undefined) {
|
|
603
|
+
localVarQueryParameter['database'] = database;
|
|
604
|
+
}
|
|
605
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
606
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
607
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
608
|
+
return {
|
|
609
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
610
|
+
options: localVarRequestOptions,
|
|
611
|
+
};
|
|
612
|
+
},
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @summary ListRBACUsers
|
|
616
|
+
* @param {string} orgName
|
|
617
|
+
* @param {string} clusterName
|
|
618
|
+
* @param {string} [database]
|
|
619
|
+
* @param {*} [options] Override http request option.
|
|
620
|
+
* @throws {RequiredError}
|
|
621
|
+
*/
|
|
622
|
+
mongoListRBACUsers: async (orgName, clusterName, database, options = {}) => {
|
|
623
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
624
|
+
(0, common_1.assertParamExists)('mongoListRBACUsers', 'orgName', orgName);
|
|
625
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
626
|
+
(0, common_1.assertParamExists)('mongoListRBACUsers', 'clusterName', clusterName);
|
|
627
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/users`
|
|
628
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
629
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
630
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
631
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
632
|
+
let baseOptions;
|
|
633
|
+
if (configuration) {
|
|
634
|
+
baseOptions = configuration.baseOptions;
|
|
635
|
+
}
|
|
636
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
637
|
+
const localVarHeaderParameter = {};
|
|
638
|
+
const localVarQueryParameter = {};
|
|
639
|
+
// authentication BearerToken required
|
|
640
|
+
// http bearer authentication required
|
|
641
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
642
|
+
// authentication DigestAuth required
|
|
643
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
644
|
+
if (database !== undefined) {
|
|
645
|
+
localVarQueryParameter['database'] = database;
|
|
646
|
+
}
|
|
647
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
648
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
649
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
650
|
+
return {
|
|
651
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
652
|
+
options: localVarRequestOptions,
|
|
653
|
+
};
|
|
654
|
+
},
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @summary UpdateRBACRole
|
|
658
|
+
* @param {string} orgName
|
|
659
|
+
* @param {string} clusterName
|
|
660
|
+
* @param {string} database
|
|
661
|
+
* @param {string} roleName
|
|
662
|
+
* @param {MongoRBACRoleWrite} mongoRBACRoleWrite
|
|
663
|
+
* @param {*} [options] Override http request option.
|
|
664
|
+
* @throws {RequiredError}
|
|
665
|
+
*/
|
|
666
|
+
mongoUpdateRBACRole: async (orgName, clusterName, database, roleName, mongoRBACRoleWrite, options = {}) => {
|
|
667
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
668
|
+
(0, common_1.assertParamExists)('mongoUpdateRBACRole', 'orgName', orgName);
|
|
669
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
670
|
+
(0, common_1.assertParamExists)('mongoUpdateRBACRole', 'clusterName', clusterName);
|
|
671
|
+
// verify required parameter 'database' is not null or undefined
|
|
672
|
+
(0, common_1.assertParamExists)('mongoUpdateRBACRole', 'database', database);
|
|
673
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
674
|
+
(0, common_1.assertParamExists)('mongoUpdateRBACRole', 'roleName', roleName);
|
|
675
|
+
// verify required parameter 'mongoRBACRoleWrite' is not null or undefined
|
|
676
|
+
(0, common_1.assertParamExists)('mongoUpdateRBACRole', 'mongoRBACRoleWrite', mongoRBACRoleWrite);
|
|
677
|
+
const localVarPath = `/admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/rbac/roles/{database}/{roleName}`
|
|
678
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
679
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
680
|
+
.replace(`{${"database"}}`, encodeURIComponent(String(database)))
|
|
681
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
683
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
684
|
+
let baseOptions;
|
|
685
|
+
if (configuration) {
|
|
686
|
+
baseOptions = configuration.baseOptions;
|
|
687
|
+
}
|
|
688
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
689
|
+
const localVarHeaderParameter = {};
|
|
690
|
+
const localVarQueryParameter = {};
|
|
691
|
+
// authentication BearerToken required
|
|
692
|
+
// http bearer authentication required
|
|
693
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
694
|
+
// authentication DigestAuth required
|
|
695
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
696
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
697
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
698
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
699
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
700
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(mongoRBACRoleWrite, localVarRequestOptions, configuration);
|
|
701
|
+
return {
|
|
702
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
703
|
+
options: localVarRequestOptions,
|
|
704
|
+
};
|
|
705
|
+
},
|
|
155
706
|
};
|
|
156
707
|
};
|
|
157
708
|
exports.MongodbApiAxiosParamCreator = MongodbApiAxiosParamCreator;
|
|
@@ -209,6 +760,208 @@ const MongodbApiFp = function (configuration) {
|
|
|
209
760
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.listMongoDBAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
210
761
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
211
762
|
},
|
|
763
|
+
/**
|
|
764
|
+
*
|
|
765
|
+
* @summary ChangeRBACUserPassword
|
|
766
|
+
* @param {string} orgName
|
|
767
|
+
* @param {string} clusterName
|
|
768
|
+
* @param {string} database
|
|
769
|
+
* @param {string} username
|
|
770
|
+
* @param {MongoRBACPasswordChange} mongoRBACPasswordChange
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
*/
|
|
774
|
+
async mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options) {
|
|
775
|
+
var _a, _b, _c;
|
|
776
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserPassword(orgName, clusterName, database, username, mongoRBACPasswordChange, options);
|
|
777
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
778
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoChangeRBACUserPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
779
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
780
|
+
},
|
|
781
|
+
/**
|
|
782
|
+
*
|
|
783
|
+
* @summary ChangeRBACUserRoles
|
|
784
|
+
* @param {string} orgName
|
|
785
|
+
* @param {string} clusterName
|
|
786
|
+
* @param {string} database
|
|
787
|
+
* @param {string} username
|
|
788
|
+
* @param {MongoRBACBindingChange} mongoRBACBindingChange
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
async mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options) {
|
|
793
|
+
var _a, _b, _c;
|
|
794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoChangeRBACUserRoles(orgName, clusterName, database, username, mongoRBACBindingChange, options);
|
|
795
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
796
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoChangeRBACUserRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
797
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
798
|
+
},
|
|
799
|
+
/**
|
|
800
|
+
*
|
|
801
|
+
* @summary CreateRBACRole
|
|
802
|
+
* @param {string} orgName
|
|
803
|
+
* @param {string} clusterName
|
|
804
|
+
* @param {MongoRBACRoleWrite} mongoRBACRoleWrite
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
async mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options) {
|
|
809
|
+
var _a, _b, _c;
|
|
810
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACRole(orgName, clusterName, mongoRBACRoleWrite, options);
|
|
811
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
812
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoCreateRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
813
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
814
|
+
},
|
|
815
|
+
/**
|
|
816
|
+
*
|
|
817
|
+
* @summary CreateRBACUser
|
|
818
|
+
* @param {string} orgName
|
|
819
|
+
* @param {string} clusterName
|
|
820
|
+
* @param {MongoRBACUserCreate} mongoRBACUserCreate
|
|
821
|
+
* @param {*} [options] Override http request option.
|
|
822
|
+
* @throws {RequiredError}
|
|
823
|
+
*/
|
|
824
|
+
async mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options) {
|
|
825
|
+
var _a, _b, _c;
|
|
826
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoCreateRBACUser(orgName, clusterName, mongoRBACUserCreate, options);
|
|
827
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
828
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoCreateRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
829
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
830
|
+
},
|
|
831
|
+
/**
|
|
832
|
+
*
|
|
833
|
+
* @summary DeleteRBACRole
|
|
834
|
+
* @param {string} orgName
|
|
835
|
+
* @param {string} clusterName
|
|
836
|
+
* @param {string} database
|
|
837
|
+
* @param {string} roleName
|
|
838
|
+
* @param {string} expectedRevision
|
|
839
|
+
* @param {*} [options] Override http request option.
|
|
840
|
+
* @throws {RequiredError}
|
|
841
|
+
*/
|
|
842
|
+
async mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options) {
|
|
843
|
+
var _a, _b, _c;
|
|
844
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACRole(orgName, clusterName, database, roleName, expectedRevision, options);
|
|
845
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
846
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoDeleteRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
847
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
848
|
+
},
|
|
849
|
+
/**
|
|
850
|
+
*
|
|
851
|
+
* @summary DeleteRBACUser
|
|
852
|
+
* @param {string} orgName
|
|
853
|
+
* @param {string} clusterName
|
|
854
|
+
* @param {string} database
|
|
855
|
+
* @param {string} username
|
|
856
|
+
* @param {*} [options] Override http request option.
|
|
857
|
+
* @throws {RequiredError}
|
|
858
|
+
*/
|
|
859
|
+
async mongoDeleteRBACUser(orgName, clusterName, database, username, options) {
|
|
860
|
+
var _a, _b, _c;
|
|
861
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoDeleteRBACUser(orgName, clusterName, database, username, options);
|
|
862
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
863
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoDeleteRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
864
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
865
|
+
},
|
|
866
|
+
/**
|
|
867
|
+
*
|
|
868
|
+
* @summary GetRBACCapabilities
|
|
869
|
+
* @param {string} orgName
|
|
870
|
+
* @param {string} clusterName
|
|
871
|
+
* @param {*} [options] Override http request option.
|
|
872
|
+
* @throws {RequiredError}
|
|
873
|
+
*/
|
|
874
|
+
async mongoGetRBACCapabilities(orgName, clusterName, options) {
|
|
875
|
+
var _a, _b, _c;
|
|
876
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACCapabilities(orgName, clusterName, options);
|
|
877
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
878
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoGetRBACCapabilities']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
879
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
880
|
+
},
|
|
881
|
+
/**
|
|
882
|
+
*
|
|
883
|
+
* @summary GetRBACRole
|
|
884
|
+
* @param {string} orgName
|
|
885
|
+
* @param {string} clusterName
|
|
886
|
+
* @param {string} database
|
|
887
|
+
* @param {string} roleName
|
|
888
|
+
* @param {*} [options] Override http request option.
|
|
889
|
+
* @throws {RequiredError}
|
|
890
|
+
*/
|
|
891
|
+
async mongoGetRBACRole(orgName, clusterName, database, roleName, options) {
|
|
892
|
+
var _a, _b, _c;
|
|
893
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACRole(orgName, clusterName, database, roleName, options);
|
|
894
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
895
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoGetRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
896
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
897
|
+
},
|
|
898
|
+
/**
|
|
899
|
+
*
|
|
900
|
+
* @summary GetRBACUser
|
|
901
|
+
* @param {string} orgName
|
|
902
|
+
* @param {string} clusterName
|
|
903
|
+
* @param {string} database
|
|
904
|
+
* @param {string} username
|
|
905
|
+
* @param {*} [options] Override http request option.
|
|
906
|
+
* @throws {RequiredError}
|
|
907
|
+
*/
|
|
908
|
+
async mongoGetRBACUser(orgName, clusterName, database, username, options) {
|
|
909
|
+
var _a, _b, _c;
|
|
910
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoGetRBACUser(orgName, clusterName, database, username, options);
|
|
911
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
912
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoGetRBACUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
913
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
914
|
+
},
|
|
915
|
+
/**
|
|
916
|
+
*
|
|
917
|
+
* @summary ListRBACRoles
|
|
918
|
+
* @param {string} orgName
|
|
919
|
+
* @param {string} clusterName
|
|
920
|
+
* @param {string} [database]
|
|
921
|
+
* @param {*} [options] Override http request option.
|
|
922
|
+
* @throws {RequiredError}
|
|
923
|
+
*/
|
|
924
|
+
async mongoListRBACRoles(orgName, clusterName, database, options) {
|
|
925
|
+
var _a, _b, _c;
|
|
926
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACRoles(orgName, clusterName, database, options);
|
|
927
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
928
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoListRBACRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
929
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
930
|
+
},
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
* @summary ListRBACUsers
|
|
934
|
+
* @param {string} orgName
|
|
935
|
+
* @param {string} clusterName
|
|
936
|
+
* @param {string} [database]
|
|
937
|
+
* @param {*} [options] Override http request option.
|
|
938
|
+
* @throws {RequiredError}
|
|
939
|
+
*/
|
|
940
|
+
async mongoListRBACUsers(orgName, clusterName, database, options) {
|
|
941
|
+
var _a, _b, _c;
|
|
942
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoListRBACUsers(orgName, clusterName, database, options);
|
|
943
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
944
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoListRBACUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
945
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
946
|
+
},
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* @summary UpdateRBACRole
|
|
950
|
+
* @param {string} orgName
|
|
951
|
+
* @param {string} clusterName
|
|
952
|
+
* @param {string} database
|
|
953
|
+
* @param {string} roleName
|
|
954
|
+
* @param {MongoRBACRoleWrite} mongoRBACRoleWrite
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
async mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options) {
|
|
959
|
+
var _a, _b, _c;
|
|
960
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.mongoUpdateRBACRole(orgName, clusterName, database, roleName, mongoRBACRoleWrite, options);
|
|
961
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
962
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MongodbApi.mongoUpdateRBACRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
963
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
964
|
+
},
|
|
212
965
|
};
|
|
213
966
|
};
|
|
214
967
|
exports.MongodbApiFp = MongodbApiFp;
|
|
@@ -249,6 +1002,126 @@ const MongodbApiFactory = function (configuration, basePath, axios) {
|
|
|
249
1002
|
listMongoDBAccounts(requestParameters, options) {
|
|
250
1003
|
return localVarFp.listMongoDBAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
251
1004
|
},
|
|
1005
|
+
/**
|
|
1006
|
+
*
|
|
1007
|
+
* @summary ChangeRBACUserPassword
|
|
1008
|
+
* @param {MongodbApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
|
|
1009
|
+
* @param {*} [options] Override http request option.
|
|
1010
|
+
* @throws {RequiredError}
|
|
1011
|
+
*/
|
|
1012
|
+
mongoChangeRBACUserPassword(requestParameters, options) {
|
|
1013
|
+
return localVarFp.mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(axios, basePath));
|
|
1014
|
+
},
|
|
1015
|
+
/**
|
|
1016
|
+
*
|
|
1017
|
+
* @summary ChangeRBACUserRoles
|
|
1018
|
+
* @param {MongodbApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
|
|
1019
|
+
* @param {*} [options] Override http request option.
|
|
1020
|
+
* @throws {RequiredError}
|
|
1021
|
+
*/
|
|
1022
|
+
mongoChangeRBACUserRoles(requestParameters, options) {
|
|
1023
|
+
return localVarFp.mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(axios, basePath));
|
|
1024
|
+
},
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* @summary CreateRBACRole
|
|
1028
|
+
* @param {MongodbApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
|
|
1029
|
+
* @param {*} [options] Override http request option.
|
|
1030
|
+
* @throws {RequiredError}
|
|
1031
|
+
*/
|
|
1032
|
+
mongoCreateRBACRole(requestParameters, options) {
|
|
1033
|
+
return localVarFp.mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
|
|
1034
|
+
},
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
* @summary CreateRBACUser
|
|
1038
|
+
* @param {MongodbApiMongoCreateRBACUserRequest} requestParameters Request parameters.
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
*/
|
|
1042
|
+
mongoCreateRBACUser(requestParameters, options) {
|
|
1043
|
+
return localVarFp.mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(axios, basePath));
|
|
1044
|
+
},
|
|
1045
|
+
/**
|
|
1046
|
+
*
|
|
1047
|
+
* @summary DeleteRBACRole
|
|
1048
|
+
* @param {MongodbApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
|
|
1049
|
+
* @param {*} [options] Override http request option.
|
|
1050
|
+
* @throws {RequiredError}
|
|
1051
|
+
*/
|
|
1052
|
+
mongoDeleteRBACRole(requestParameters, options) {
|
|
1053
|
+
return localVarFp.mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(axios, basePath));
|
|
1054
|
+
},
|
|
1055
|
+
/**
|
|
1056
|
+
*
|
|
1057
|
+
* @summary DeleteRBACUser
|
|
1058
|
+
* @param {MongodbApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
|
|
1059
|
+
* @param {*} [options] Override http request option.
|
|
1060
|
+
* @throws {RequiredError}
|
|
1061
|
+
*/
|
|
1062
|
+
mongoDeleteRBACUser(requestParameters, options) {
|
|
1063
|
+
return localVarFp.mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
1064
|
+
},
|
|
1065
|
+
/**
|
|
1066
|
+
*
|
|
1067
|
+
* @summary GetRBACCapabilities
|
|
1068
|
+
* @param {MongodbApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
|
|
1069
|
+
* @param {*} [options] Override http request option.
|
|
1070
|
+
* @throws {RequiredError}
|
|
1071
|
+
*/
|
|
1072
|
+
mongoGetRBACCapabilities(requestParameters, options) {
|
|
1073
|
+
return localVarFp.mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
1074
|
+
},
|
|
1075
|
+
/**
|
|
1076
|
+
*
|
|
1077
|
+
* @summary GetRBACRole
|
|
1078
|
+
* @param {MongodbApiMongoGetRBACRoleRequest} requestParameters Request parameters.
|
|
1079
|
+
* @param {*} [options] Override http request option.
|
|
1080
|
+
* @throws {RequiredError}
|
|
1081
|
+
*/
|
|
1082
|
+
mongoGetRBACRole(requestParameters, options) {
|
|
1083
|
+
return localVarFp.mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
1084
|
+
},
|
|
1085
|
+
/**
|
|
1086
|
+
*
|
|
1087
|
+
* @summary GetRBACUser
|
|
1088
|
+
* @param {MongodbApiMongoGetRBACUserRequest} requestParameters Request parameters.
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
mongoGetRBACUser(requestParameters, options) {
|
|
1093
|
+
return localVarFp.mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
1094
|
+
},
|
|
1095
|
+
/**
|
|
1096
|
+
*
|
|
1097
|
+
* @summary ListRBACRoles
|
|
1098
|
+
* @param {MongodbApiMongoListRBACRolesRequest} requestParameters Request parameters.
|
|
1099
|
+
* @param {*} [options] Override http request option.
|
|
1100
|
+
* @throws {RequiredError}
|
|
1101
|
+
*/
|
|
1102
|
+
mongoListRBACRoles(requestParameters, options) {
|
|
1103
|
+
return localVarFp.mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
|
|
1104
|
+
},
|
|
1105
|
+
/**
|
|
1106
|
+
*
|
|
1107
|
+
* @summary ListRBACUsers
|
|
1108
|
+
* @param {MongodbApiMongoListRBACUsersRequest} requestParameters Request parameters.
|
|
1109
|
+
* @param {*} [options] Override http request option.
|
|
1110
|
+
* @throws {RequiredError}
|
|
1111
|
+
*/
|
|
1112
|
+
mongoListRBACUsers(requestParameters, options) {
|
|
1113
|
+
return localVarFp.mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(axios, basePath));
|
|
1114
|
+
},
|
|
1115
|
+
/**
|
|
1116
|
+
*
|
|
1117
|
+
* @summary UpdateRBACRole
|
|
1118
|
+
* @param {MongodbApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
|
|
1119
|
+
* @param {*} [options] Override http request option.
|
|
1120
|
+
* @throws {RequiredError}
|
|
1121
|
+
*/
|
|
1122
|
+
mongoUpdateRBACRole(requestParameters, options) {
|
|
1123
|
+
return localVarFp.mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(axios, basePath));
|
|
1124
|
+
},
|
|
252
1125
|
};
|
|
253
1126
|
};
|
|
254
1127
|
exports.MongodbApiFactory = MongodbApiFactory;
|
|
@@ -292,6 +1165,138 @@ class MongodbApi extends base_1.BaseAPI {
|
|
|
292
1165
|
listMongoDBAccounts(requestParameters, options) {
|
|
293
1166
|
return (0, exports.MongodbApiFp)(this.configuration).listMongoDBAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
294
1167
|
}
|
|
1168
|
+
/**
|
|
1169
|
+
*
|
|
1170
|
+
* @summary ChangeRBACUserPassword
|
|
1171
|
+
* @param {MongodbApiMongoChangeRBACUserPasswordRequest} requestParameters Request parameters.
|
|
1172
|
+
* @param {*} [options] Override http request option.
|
|
1173
|
+
* @throws {RequiredError}
|
|
1174
|
+
* @memberof MongodbApi
|
|
1175
|
+
*/
|
|
1176
|
+
mongoChangeRBACUserPassword(requestParameters, options) {
|
|
1177
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoChangeRBACUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACPasswordChange, options).then((request) => request(this.axios, this.basePath));
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @summary ChangeRBACUserRoles
|
|
1182
|
+
* @param {MongodbApiMongoChangeRBACUserRolesRequest} requestParameters Request parameters.
|
|
1183
|
+
* @param {*} [options] Override http request option.
|
|
1184
|
+
* @throws {RequiredError}
|
|
1185
|
+
* @memberof MongodbApi
|
|
1186
|
+
*/
|
|
1187
|
+
mongoChangeRBACUserRoles(requestParameters, options) {
|
|
1188
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoChangeRBACUserRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, requestParameters.mongoRBACBindingChange, options).then((request) => request(this.axios, this.basePath));
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @summary CreateRBACRole
|
|
1193
|
+
* @param {MongodbApiMongoCreateRBACRoleRequest} requestParameters Request parameters.
|
|
1194
|
+
* @param {*} [options] Override http request option.
|
|
1195
|
+
* @throws {RequiredError}
|
|
1196
|
+
* @memberof MongodbApi
|
|
1197
|
+
*/
|
|
1198
|
+
mongoCreateRBACRole(requestParameters, options) {
|
|
1199
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoCreateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @summary CreateRBACUser
|
|
1204
|
+
* @param {MongodbApiMongoCreateRBACUserRequest} requestParameters Request parameters.
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
* @memberof MongodbApi
|
|
1208
|
+
*/
|
|
1209
|
+
mongoCreateRBACUser(requestParameters, options) {
|
|
1210
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoCreateRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.mongoRBACUserCreate, options).then((request) => request(this.axios, this.basePath));
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
*
|
|
1214
|
+
* @summary DeleteRBACRole
|
|
1215
|
+
* @param {MongodbApiMongoDeleteRBACRoleRequest} requestParameters Request parameters.
|
|
1216
|
+
* @param {*} [options] Override http request option.
|
|
1217
|
+
* @throws {RequiredError}
|
|
1218
|
+
* @memberof MongodbApi
|
|
1219
|
+
*/
|
|
1220
|
+
mongoDeleteRBACRole(requestParameters, options) {
|
|
1221
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoDeleteRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.expectedRevision, options).then((request) => request(this.axios, this.basePath));
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
*
|
|
1225
|
+
* @summary DeleteRBACUser
|
|
1226
|
+
* @param {MongodbApiMongoDeleteRBACUserRequest} requestParameters Request parameters.
|
|
1227
|
+
* @param {*} [options] Override http request option.
|
|
1228
|
+
* @throws {RequiredError}
|
|
1229
|
+
* @memberof MongodbApi
|
|
1230
|
+
*/
|
|
1231
|
+
mongoDeleteRBACUser(requestParameters, options) {
|
|
1232
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoDeleteRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
1233
|
+
}
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @summary GetRBACCapabilities
|
|
1237
|
+
* @param {MongodbApiMongoGetRBACCapabilitiesRequest} requestParameters Request parameters.
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
* @memberof MongodbApi
|
|
1241
|
+
*/
|
|
1242
|
+
mongoGetRBACCapabilities(requestParameters, options) {
|
|
1243
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoGetRBACCapabilities(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
*
|
|
1247
|
+
* @summary GetRBACRole
|
|
1248
|
+
* @param {MongodbApiMongoGetRBACRoleRequest} requestParameters Request parameters.
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
* @memberof MongodbApi
|
|
1252
|
+
*/
|
|
1253
|
+
mongoGetRBACRole(requestParameters, options) {
|
|
1254
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoGetRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
*
|
|
1258
|
+
* @summary GetRBACUser
|
|
1259
|
+
* @param {MongodbApiMongoGetRBACUserRequest} requestParameters Request parameters.
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
* @memberof MongodbApi
|
|
1263
|
+
*/
|
|
1264
|
+
mongoGetRBACUser(requestParameters, options) {
|
|
1265
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoGetRBACUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
*
|
|
1269
|
+
* @summary ListRBACRoles
|
|
1270
|
+
* @param {MongodbApiMongoListRBACRolesRequest} requestParameters Request parameters.
|
|
1271
|
+
* @param {*} [options] Override http request option.
|
|
1272
|
+
* @throws {RequiredError}
|
|
1273
|
+
* @memberof MongodbApi
|
|
1274
|
+
*/
|
|
1275
|
+
mongoListRBACRoles(requestParameters, options) {
|
|
1276
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoListRBACRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
*
|
|
1280
|
+
* @summary ListRBACUsers
|
|
1281
|
+
* @param {MongodbApiMongoListRBACUsersRequest} requestParameters Request parameters.
|
|
1282
|
+
* @param {*} [options] Override http request option.
|
|
1283
|
+
* @throws {RequiredError}
|
|
1284
|
+
* @memberof MongodbApi
|
|
1285
|
+
*/
|
|
1286
|
+
mongoListRBACUsers(requestParameters, options) {
|
|
1287
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoListRBACUsers(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, options).then((request) => request(this.axios, this.basePath));
|
|
1288
|
+
}
|
|
1289
|
+
/**
|
|
1290
|
+
*
|
|
1291
|
+
* @summary UpdateRBACRole
|
|
1292
|
+
* @param {MongodbApiMongoUpdateRBACRoleRequest} requestParameters Request parameters.
|
|
1293
|
+
* @param {*} [options] Override http request option.
|
|
1294
|
+
* @throws {RequiredError}
|
|
1295
|
+
* @memberof MongodbApi
|
|
1296
|
+
*/
|
|
1297
|
+
mongoUpdateRBACRole(requestParameters, options) {
|
|
1298
|
+
return (0, exports.MongodbApiFp)(this.configuration).mongoUpdateRBACRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.roleName, requestParameters.mongoRBACRoleWrite, options).then((request) => request(this.axios, this.basePath));
|
|
1299
|
+
}
|
|
295
1300
|
}
|
|
296
1301
|
exports.MongodbApi = MongodbApi;
|
|
297
1302
|
//# sourceMappingURL=mongodb-api.js.map
|