kb-cloud-client-typescript 2.2.96 → 2.2.97

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.
Files changed (43) hide show
  1. package/dist/openapi/apis/account-api.d.ts +406 -0
  2. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/openapi/apis/account-api.js +427 -0
  4. package/dist/openapi/apis/account-api.js.map +1 -1
  5. package/dist/openapi/apis/rdbms-api.d.ts +406 -0
  6. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/openapi/apis/rdbms-api.js +427 -0
  8. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/openapi/apis/shared-api.d.ts +406 -0
  10. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/openapi/apis/shared-api.js +427 -0
  12. package/dist/openapi/apis/shared-api.js.map +1 -1
  13. package/dist/openapi/models/dms-service-account-create-request.d.ts +55 -0
  14. package/dist/openapi/models/dms-service-account-create-request.d.ts.map +1 -0
  15. package/dist/openapi/models/dms-service-account-create-request.js +16 -0
  16. package/dist/openapi/models/dms-service-account-create-request.js.map +1 -0
  17. package/dist/openapi/models/dms-service-account-status.d.ts +22 -0
  18. package/dist/openapi/models/dms-service-account-status.d.ts.map +1 -0
  19. package/dist/openapi/models/dms-service-account-status.js +26 -0
  20. package/dist/openapi/models/dms-service-account-status.js.map +1 -0
  21. package/dist/openapi/models/dms-service-account-update-request.d.ts +32 -0
  22. package/dist/openapi/models/dms-service-account-update-request.d.ts.map +1 -0
  23. package/dist/openapi/models/dms-service-account-update-request.js +16 -0
  24. package/dist/openapi/models/dms-service-account-update-request.js.map +1 -0
  25. package/dist/openapi/models/dms-service-account.d.ts +73 -0
  26. package/dist/openapi/models/dms-service-account.d.ts.map +1 -0
  27. package/dist/openapi/models/dms-service-account.js +16 -0
  28. package/dist/openapi/models/dms-service-account.js.map +1 -0
  29. package/dist/openapi/models/index.d.ts +4 -0
  30. package/dist/openapi/models/index.d.ts.map +1 -1
  31. package/dist/openapi/models/index.js +4 -0
  32. package/dist/openapi/models/index.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/openapi/.openapi-generator/FILES +4 -0
  35. package/src/openapi/apis/account-api.ts +703 -0
  36. package/src/openapi/apis/rdbms-api.ts +703 -0
  37. package/src/openapi/apis/shared-api.ts +703 -0
  38. package/src/openapi/models/dms-service-account-create-request.ts +60 -0
  39. package/src/openapi/models/dms-service-account-status.ts +31 -0
  40. package/src/openapi/models/dms-service-account-update-request.ts +41 -0
  41. package/src/openapi/models/dms-service-account.ts +78 -0
  42. package/src/openapi/models/index.ts +4 -0
  43. package/src/openapi.yaml +330 -0
@@ -1277,6 +1277,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
1277
1277
  options: localVarRequestOptions,
1278
1278
  };
1279
1279
  },
1280
+ /**
1281
+ * create a MinIO service account access key
1282
+ * @summary Create MinIO access key
1283
+ * @param {string} engineName name of the engine
1284
+ * @param {string} orgName name of the organization
1285
+ * @param {string} clusterName name of the cluster
1286
+ * @param {DmsServiceAccountCreateRequest} body
1287
+ * @param {*} [options] Override http request option.
1288
+ * @throws {RequiredError}
1289
+ */
1290
+ createServiceAccount: async (engineName, orgName, clusterName, body, options = {}) => {
1291
+ // verify required parameter 'engineName' is not null or undefined
1292
+ (0, common_1.assertParamExists)('createServiceAccount', 'engineName', engineName);
1293
+ // verify required parameter 'orgName' is not null or undefined
1294
+ (0, common_1.assertParamExists)('createServiceAccount', 'orgName', orgName);
1295
+ // verify required parameter 'clusterName' is not null or undefined
1296
+ (0, common_1.assertParamExists)('createServiceAccount', 'clusterName', clusterName);
1297
+ // verify required parameter 'body' is not null or undefined
1298
+ (0, common_1.assertParamExists)('createServiceAccount', 'body', body);
1299
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
1300
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1301
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1302
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
1303
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1304
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1305
+ let baseOptions;
1306
+ if (configuration) {
1307
+ baseOptions = configuration.baseOptions;
1308
+ }
1309
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1310
+ const localVarHeaderParameter = {};
1311
+ const localVarQueryParameter = {};
1312
+ // authentication BearerToken required
1313
+ // http bearer authentication required
1314
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1315
+ // authentication DigestAuth required
1316
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1317
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1318
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1319
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1320
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1321
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1322
+ return {
1323
+ url: (0, common_1.toPathString)(localVarUrlObj),
1324
+ options: localVarRequestOptions,
1325
+ };
1326
+ },
1280
1327
  /**
1281
1328
  * create tag
1282
1329
  * @summary Create cluster tags
@@ -2724,6 +2771,52 @@ const SharedApiAxiosParamCreator = function (configuration) {
2724
2771
  options: localVarRequestOptions,
2725
2772
  };
2726
2773
  },
2774
+ /**
2775
+ * delete a MinIO service account access key
2776
+ * @summary Delete MinIO access key
2777
+ * @param {string} engineName name of the engine
2778
+ * @param {string} orgName name of the organization
2779
+ * @param {string} clusterName name of the cluster
2780
+ * @param {string} accessKey MinIO access key
2781
+ * @param {*} [options] Override http request option.
2782
+ * @throws {RequiredError}
2783
+ */
2784
+ deleteServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
2785
+ // verify required parameter 'engineName' is not null or undefined
2786
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'engineName', engineName);
2787
+ // verify required parameter 'orgName' is not null or undefined
2788
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'orgName', orgName);
2789
+ // verify required parameter 'clusterName' is not null or undefined
2790
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'clusterName', clusterName);
2791
+ // verify required parameter 'accessKey' is not null or undefined
2792
+ (0, common_1.assertParamExists)('deleteServiceAccount', 'accessKey', accessKey);
2793
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
2794
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
2795
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
2796
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
2797
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
2798
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2799
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2800
+ let baseOptions;
2801
+ if (configuration) {
2802
+ baseOptions = configuration.baseOptions;
2803
+ }
2804
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2805
+ const localVarHeaderParameter = {};
2806
+ const localVarQueryParameter = {};
2807
+ // authentication BearerToken required
2808
+ // http bearer authentication required
2809
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2810
+ // authentication DigestAuth required
2811
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2812
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2813
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2814
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2815
+ return {
2816
+ url: (0, common_1.toPathString)(localVarUrlObj),
2817
+ options: localVarRequestOptions,
2818
+ };
2819
+ },
2727
2820
  /**
2728
2821
  * delete cluster tag
2729
2822
  * @summary Delete tag
@@ -5236,6 +5329,52 @@ const SharedApiAxiosParamCreator = function (configuration) {
5236
5329
  options: localVarRequestOptions,
5237
5330
  };
5238
5331
  },
5332
+ /**
5333
+ * get a MinIO service account access key
5334
+ * @summary Get MinIO access key
5335
+ * @param {string} engineName name of the engine
5336
+ * @param {string} orgName name of the organization
5337
+ * @param {string} clusterName name of the cluster
5338
+ * @param {string} accessKey MinIO access key
5339
+ * @param {*} [options] Override http request option.
5340
+ * @throws {RequiredError}
5341
+ */
5342
+ getServiceAccount: async (engineName, orgName, clusterName, accessKey, options = {}) => {
5343
+ // verify required parameter 'engineName' is not null or undefined
5344
+ (0, common_1.assertParamExists)('getServiceAccount', 'engineName', engineName);
5345
+ // verify required parameter 'orgName' is not null or undefined
5346
+ (0, common_1.assertParamExists)('getServiceAccount', 'orgName', orgName);
5347
+ // verify required parameter 'clusterName' is not null or undefined
5348
+ (0, common_1.assertParamExists)('getServiceAccount', 'clusterName', clusterName);
5349
+ // verify required parameter 'accessKey' is not null or undefined
5350
+ (0, common_1.assertParamExists)('getServiceAccount', 'accessKey', accessKey);
5351
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
5352
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
5353
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5354
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
5355
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
5356
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5357
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5358
+ let baseOptions;
5359
+ if (configuration) {
5360
+ baseOptions = configuration.baseOptions;
5361
+ }
5362
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5363
+ const localVarHeaderParameter = {};
5364
+ const localVarQueryParameter = {};
5365
+ // authentication BearerToken required
5366
+ // http bearer authentication required
5367
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5368
+ // authentication DigestAuth required
5369
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
5370
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5371
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5372
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5373
+ return {
5374
+ url: (0, common_1.toPathString)(localVarUrlObj),
5375
+ options: localVarRequestOptions,
5376
+ };
5377
+ },
5239
5378
  /**
5240
5379
  * Get statistics summary for slow logs of a cluster
5241
5380
  * @summary Get cluster slow log statistics
@@ -7692,6 +7831,52 @@ const SharedApiAxiosParamCreator = function (configuration) {
7692
7831
  options: localVarRequestOptions,
7693
7832
  };
7694
7833
  },
7834
+ /**
7835
+ * list MinIO service account access keys
7836
+ * @summary List MinIO access keys
7837
+ * @param {string} engineName name of the engine
7838
+ * @param {string} orgName name of the organization
7839
+ * @param {string} clusterName name of the cluster
7840
+ * @param {string} [userName] MinIO user that owns the service accounts
7841
+ * @param {*} [options] Override http request option.
7842
+ * @throws {RequiredError}
7843
+ */
7844
+ listServiceAccounts: async (engineName, orgName, clusterName, userName, options = {}) => {
7845
+ // verify required parameter 'engineName' is not null or undefined
7846
+ (0, common_1.assertParamExists)('listServiceAccounts', 'engineName', engineName);
7847
+ // verify required parameter 'orgName' is not null or undefined
7848
+ (0, common_1.assertParamExists)('listServiceAccounts', 'orgName', orgName);
7849
+ // verify required parameter 'clusterName' is not null or undefined
7850
+ (0, common_1.assertParamExists)('listServiceAccounts', 'clusterName', clusterName);
7851
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
7852
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
7853
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
7854
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
7855
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7856
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7857
+ let baseOptions;
7858
+ if (configuration) {
7859
+ baseOptions = configuration.baseOptions;
7860
+ }
7861
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7862
+ const localVarHeaderParameter = {};
7863
+ const localVarQueryParameter = {};
7864
+ // authentication BearerToken required
7865
+ // http bearer authentication required
7866
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7867
+ // authentication DigestAuth required
7868
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
7869
+ if (userName !== undefined) {
7870
+ localVarQueryParameter['userName'] = userName;
7871
+ }
7872
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7873
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7874
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7875
+ return {
7876
+ url: (0, common_1.toPathString)(localVarUrlObj),
7877
+ options: localVarRequestOptions,
7878
+ };
7879
+ },
7695
7880
  /**
7696
7881
  * list the service version of the engine
7697
7882
  * @summary list the service version of the engine
@@ -11146,6 +11331,57 @@ const SharedApiAxiosParamCreator = function (configuration) {
11146
11331
  options: localVarRequestOptions,
11147
11332
  };
11148
11333
  },
11334
+ /**
11335
+ * update a MinIO service account access key
11336
+ * @summary Update MinIO access key
11337
+ * @param {string} engineName name of the engine
11338
+ * @param {string} orgName name of the organization
11339
+ * @param {string} clusterName name of the cluster
11340
+ * @param {string} accessKey MinIO access key
11341
+ * @param {DmsServiceAccountUpdateRequest} body
11342
+ * @param {*} [options] Override http request option.
11343
+ * @throws {RequiredError}
11344
+ */
11345
+ updateServiceAccount: async (engineName, orgName, clusterName, accessKey, body, options = {}) => {
11346
+ // verify required parameter 'engineName' is not null or undefined
11347
+ (0, common_1.assertParamExists)('updateServiceAccount', 'engineName', engineName);
11348
+ // verify required parameter 'orgName' is not null or undefined
11349
+ (0, common_1.assertParamExists)('updateServiceAccount', 'orgName', orgName);
11350
+ // verify required parameter 'clusterName' is not null or undefined
11351
+ (0, common_1.assertParamExists)('updateServiceAccount', 'clusterName', clusterName);
11352
+ // verify required parameter 'accessKey' is not null or undefined
11353
+ (0, common_1.assertParamExists)('updateServiceAccount', 'accessKey', accessKey);
11354
+ // verify required parameter 'body' is not null or undefined
11355
+ (0, common_1.assertParamExists)('updateServiceAccount', 'body', body);
11356
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
11357
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
11358
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
11359
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
11360
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
11361
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11362
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11363
+ let baseOptions;
11364
+ if (configuration) {
11365
+ baseOptions = configuration.baseOptions;
11366
+ }
11367
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
11368
+ const localVarHeaderParameter = {};
11369
+ const localVarQueryParameter = {};
11370
+ // authentication BearerToken required
11371
+ // http bearer authentication required
11372
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
11373
+ // authentication DigestAuth required
11374
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
11375
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11376
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11377
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11378
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11379
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
11380
+ return {
11381
+ url: (0, common_1.toPathString)(localVarUrlObj),
11382
+ options: localVarRequestOptions,
11383
+ };
11384
+ },
11149
11385
  /**
11150
11386
  * Enable or disable SQL audit log for a cluster component
11151
11387
  * @summary Update SQL audit log status
@@ -11860,6 +12096,23 @@ const SharedApiFp = function (configuration) {
11860
12096
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11861
12097
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11862
12098
  },
12099
+ /**
12100
+ * create a MinIO service account access key
12101
+ * @summary Create MinIO access key
12102
+ * @param {string} engineName name of the engine
12103
+ * @param {string} orgName name of the organization
12104
+ * @param {string} clusterName name of the cluster
12105
+ * @param {DmsServiceAccountCreateRequest} body
12106
+ * @param {*} [options] Override http request option.
12107
+ * @throws {RequiredError}
12108
+ */
12109
+ async createServiceAccount(engineName, orgName, clusterName, body, options) {
12110
+ var _a, _b, _c;
12111
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceAccount(engineName, orgName, clusterName, body, options);
12112
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12113
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.createServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12114
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12115
+ },
11863
12116
  /**
11864
12117
  * create tag
11865
12118
  * @summary Create cluster tags
@@ -12412,6 +12665,23 @@ const SharedApiFp = function (configuration) {
12412
12665
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteRoleByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12413
12666
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12414
12667
  },
12668
+ /**
12669
+ * delete a MinIO service account access key
12670
+ * @summary Delete MinIO access key
12671
+ * @param {string} engineName name of the engine
12672
+ * @param {string} orgName name of the organization
12673
+ * @param {string} clusterName name of the cluster
12674
+ * @param {string} accessKey MinIO access key
12675
+ * @param {*} [options] Override http request option.
12676
+ * @throws {RequiredError}
12677
+ */
12678
+ async deleteServiceAccount(engineName, orgName, clusterName, accessKey, options) {
12679
+ var _a, _b, _c;
12680
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServiceAccount(engineName, orgName, clusterName, accessKey, options);
12681
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12682
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12683
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12684
+ },
12415
12685
  /**
12416
12686
  * delete cluster tag
12417
12687
  * @summary Delete tag
@@ -13354,6 +13624,23 @@ const SharedApiFp = function (configuration) {
13354
13624
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getSchemaList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13355
13625
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13356
13626
  },
13627
+ /**
13628
+ * get a MinIO service account access key
13629
+ * @summary Get MinIO access key
13630
+ * @param {string} engineName name of the engine
13631
+ * @param {string} orgName name of the organization
13632
+ * @param {string} clusterName name of the cluster
13633
+ * @param {string} accessKey MinIO access key
13634
+ * @param {*} [options] Override http request option.
13635
+ * @throws {RequiredError}
13636
+ */
13637
+ async getServiceAccount(engineName, orgName, clusterName, accessKey, options) {
13638
+ var _a, _b, _c;
13639
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceAccount(engineName, orgName, clusterName, accessKey, options);
13640
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13641
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13642
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13643
+ },
13357
13644
  /**
13358
13645
  * Get statistics summary for slow logs of a cluster
13359
13646
  * @summary Get cluster slow log statistics
@@ -14280,6 +14567,23 @@ const SharedApiFp = function (configuration) {
14280
14567
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14281
14568
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14282
14569
  },
14570
+ /**
14571
+ * list MinIO service account access keys
14572
+ * @summary List MinIO access keys
14573
+ * @param {string} engineName name of the engine
14574
+ * @param {string} orgName name of the organization
14575
+ * @param {string} clusterName name of the cluster
14576
+ * @param {string} [userName] MinIO user that owns the service accounts
14577
+ * @param {*} [options] Override http request option.
14578
+ * @throws {RequiredError}
14579
+ */
14580
+ async listServiceAccounts(engineName, orgName, clusterName, userName, options) {
14581
+ var _a, _b, _c;
14582
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceAccounts(engineName, orgName, clusterName, userName, options);
14583
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14584
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listServiceAccounts']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14585
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14586
+ },
14283
14587
  /**
14284
14588
  * list the service version of the engine
14285
14589
  * @summary list the service version of the engine
@@ -15537,6 +15841,24 @@ const SharedApiFp = function (configuration) {
15537
15841
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateRoleByName']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15538
15842
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15539
15843
  },
15844
+ /**
15845
+ * update a MinIO service account access key
15846
+ * @summary Update MinIO access key
15847
+ * @param {string} engineName name of the engine
15848
+ * @param {string} orgName name of the organization
15849
+ * @param {string} clusterName name of the cluster
15850
+ * @param {string} accessKey MinIO access key
15851
+ * @param {DmsServiceAccountUpdateRequest} body
15852
+ * @param {*} [options] Override http request option.
15853
+ * @throws {RequiredError}
15854
+ */
15855
+ async updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options) {
15856
+ var _a, _b, _c;
15857
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options);
15858
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15859
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.updateServiceAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15860
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15861
+ },
15540
15862
  /**
15541
15863
  * Enable or disable SQL audit log for a cluster component
15542
15864
  * @summary Update SQL audit log status
@@ -15912,6 +16234,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
15912
16234
  createRole(requestParameters, options) {
15913
16235
  return localVarFp.createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(axios, basePath));
15914
16236
  },
16237
+ /**
16238
+ * create a MinIO service account access key
16239
+ * @summary Create MinIO access key
16240
+ * @param {SharedApiCreateServiceAccountRequest} requestParameters Request parameters.
16241
+ * @param {*} [options] Override http request option.
16242
+ * @throws {RequiredError}
16243
+ */
16244
+ createServiceAccount(requestParameters, options) {
16245
+ return localVarFp.createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
16246
+ },
15915
16247
  /**
15916
16248
  * create tag
15917
16249
  * @summary Create cluster tags
@@ -16262,6 +16594,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16262
16594
  deleteRoleByName(requestParameters, options) {
16263
16595
  return localVarFp.deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(axios, basePath));
16264
16596
  },
16597
+ /**
16598
+ * delete a MinIO service account access key
16599
+ * @summary Delete MinIO access key
16600
+ * @param {SharedApiDeleteServiceAccountRequest} requestParameters Request parameters.
16601
+ * @param {*} [options] Override http request option.
16602
+ * @throws {RequiredError}
16603
+ */
16604
+ deleteServiceAccount(requestParameters, options) {
16605
+ return localVarFp.deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
16606
+ },
16265
16607
  /**
16266
16608
  * delete cluster tag
16267
16609
  * @summary Delete tag
@@ -16841,6 +17183,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16841
17183
  getSchemaList(requestParameters, options) {
16842
17184
  return localVarFp.getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath));
16843
17185
  },
17186
+ /**
17187
+ * get a MinIO service account access key
17188
+ * @summary Get MinIO access key
17189
+ * @param {SharedApiGetServiceAccountRequest} requestParameters Request parameters.
17190
+ * @param {*} [options] Override http request option.
17191
+ * @throws {RequiredError}
17192
+ */
17193
+ getServiceAccount(requestParameters, options) {
17194
+ return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
17195
+ },
16844
17196
  /**
16845
17197
  * Get statistics summary for slow logs of a cluster
16846
17198
  * @summary Get cluster slow log statistics
@@ -17419,6 +17771,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
17419
17771
  listRoles(requestParameters, options) {
17420
17772
  return localVarFp.listRoles(requestParameters.orgName, options).then((request) => request(axios, basePath));
17421
17773
  },
17774
+ /**
17775
+ * list MinIO service account access keys
17776
+ * @summary List MinIO access keys
17777
+ * @param {SharedApiListServiceAccountsRequest} requestParameters Request parameters.
17778
+ * @param {*} [options] Override http request option.
17779
+ * @throws {RequiredError}
17780
+ */
17781
+ listServiceAccounts(requestParameters, options) {
17782
+ return localVarFp.listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(axios, basePath));
17783
+ },
17422
17784
  /**
17423
17785
  * list the service version of the engine
17424
17786
  * @summary list the service version of the engine
@@ -18168,6 +18530,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
18168
18530
  updateRoleByName(requestParameters, options) {
18169
18531
  return localVarFp.updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(axios, basePath));
18170
18532
  },
18533
+ /**
18534
+ * update a MinIO service account access key
18535
+ * @summary Update MinIO access key
18536
+ * @param {SharedApiUpdateServiceAccountRequest} requestParameters Request parameters.
18537
+ * @param {*} [options] Override http request option.
18538
+ * @throws {RequiredError}
18539
+ */
18540
+ updateServiceAccount(requestParameters, options) {
18541
+ return localVarFp.updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(axios, basePath));
18542
+ },
18171
18543
  /**
18172
18544
  * Enable or disable SQL audit log for a cluster component
18173
18545
  * @summary Update SQL audit log status
@@ -18535,6 +18907,17 @@ class SharedApi extends base_1.BaseAPI {
18535
18907
  createRole(requestParameters, options) {
18536
18908
  return (0, exports.SharedApiFp)(this.configuration).createRole(requestParameters.orgName, requestParameters.roleCreate, options).then((request) => request(this.axios, this.basePath));
18537
18909
  }
18910
+ /**
18911
+ * create a MinIO service account access key
18912
+ * @summary Create MinIO access key
18913
+ * @param {SharedApiCreateServiceAccountRequest} requestParameters Request parameters.
18914
+ * @param {*} [options] Override http request option.
18915
+ * @throws {RequiredError}
18916
+ * @memberof SharedApi
18917
+ */
18918
+ createServiceAccount(requestParameters, options) {
18919
+ return (0, exports.SharedApiFp)(this.configuration).createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
18920
+ }
18538
18921
  /**
18539
18922
  * create tag
18540
18923
  * @summary Create cluster tags
@@ -18920,6 +19303,17 @@ class SharedApi extends base_1.BaseAPI {
18920
19303
  deleteRoleByName(requestParameters, options) {
18921
19304
  return (0, exports.SharedApiFp)(this.configuration).deleteRoleByName(requestParameters.orgName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
18922
19305
  }
19306
+ /**
19307
+ * delete a MinIO service account access key
19308
+ * @summary Delete MinIO access key
19309
+ * @param {SharedApiDeleteServiceAccountRequest} requestParameters Request parameters.
19310
+ * @param {*} [options] Override http request option.
19311
+ * @throws {RequiredError}
19312
+ * @memberof SharedApi
19313
+ */
19314
+ deleteServiceAccount(requestParameters, options) {
19315
+ return (0, exports.SharedApiFp)(this.configuration).deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
19316
+ }
18923
19317
  /**
18924
19318
  * delete cluster tag
18925
19319
  * @summary Delete tag
@@ -19557,6 +19951,17 @@ class SharedApi extends base_1.BaseAPI {
19557
19951
  getSchemaList(requestParameters, options) {
19558
19952
  return (0, exports.SharedApiFp)(this.configuration).getSchemaList(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
19559
19953
  }
19954
+ /**
19955
+ * get a MinIO service account access key
19956
+ * @summary Get MinIO access key
19957
+ * @param {SharedApiGetServiceAccountRequest} requestParameters Request parameters.
19958
+ * @param {*} [options] Override http request option.
19959
+ * @throws {RequiredError}
19960
+ * @memberof SharedApi
19961
+ */
19962
+ getServiceAccount(requestParameters, options) {
19963
+ return (0, exports.SharedApiFp)(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
19964
+ }
19560
19965
  /**
19561
19966
  * Get statistics summary for slow logs of a cluster
19562
19967
  * @summary Get cluster slow log statistics
@@ -20193,6 +20598,17 @@ class SharedApi extends base_1.BaseAPI {
20193
20598
  listRoles(requestParameters, options) {
20194
20599
  return (0, exports.SharedApiFp)(this.configuration).listRoles(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
20195
20600
  }
20601
+ /**
20602
+ * list MinIO service account access keys
20603
+ * @summary List MinIO access keys
20604
+ * @param {SharedApiListServiceAccountsRequest} requestParameters Request parameters.
20605
+ * @param {*} [options] Override http request option.
20606
+ * @throws {RequiredError}
20607
+ * @memberof SharedApi
20608
+ */
20609
+ listServiceAccounts(requestParameters, options) {
20610
+ return (0, exports.SharedApiFp)(this.configuration).listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(this.axios, this.basePath));
20611
+ }
20196
20612
  /**
20197
20613
  * list the service version of the engine
20198
20614
  * @summary list the service version of the engine
@@ -21017,6 +21433,17 @@ class SharedApi extends base_1.BaseAPI {
21017
21433
  updateRoleByName(requestParameters, options) {
21018
21434
  return (0, exports.SharedApiFp)(this.configuration).updateRoleByName(requestParameters.orgName, requestParameters.roleName, requestParameters.roleUpdate, options).then((request) => request(this.axios, this.basePath));
21019
21435
  }
21436
+ /**
21437
+ * update a MinIO service account access key
21438
+ * @summary Update MinIO access key
21439
+ * @param {SharedApiUpdateServiceAccountRequest} requestParameters Request parameters.
21440
+ * @param {*} [options] Override http request option.
21441
+ * @throws {RequiredError}
21442
+ * @memberof SharedApi
21443
+ */
21444
+ updateServiceAccount(requestParameters, options) {
21445
+ return (0, exports.SharedApiFp)(this.configuration).updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
21446
+ }
21020
21447
  /**
21021
21448
  * Enable or disable SQL audit log for a cluster component
21022
21449
  * @summary Update SQL audit log status