kb-cloud-client-typescript 2.3.0-alpha.122 → 2.3.0-alpha.124

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 (104) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +406 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +427 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/diagnostics-api.d.ts +10 -2
  6. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/diagnostics-api.js +10 -5
  8. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  9. package/dist/adminapi/apis/rdbms-api.d.ts +406 -0
  10. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/rdbms-api.js +427 -0
  12. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  13. package/dist/adminapi/apis/shared-api.d.ts +406 -0
  14. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  15. package/dist/adminapi/apis/shared-api.js +427 -0
  16. package/dist/adminapi/apis/shared-api.js.map +1 -1
  17. package/dist/adminapi/models/cluster-storage-usage-history-instance.d.ts +56 -0
  18. package/dist/adminapi/models/cluster-storage-usage-history-instance.d.ts.map +1 -0
  19. package/dist/adminapi/models/cluster-storage-usage-history-instance.js +16 -0
  20. package/dist/adminapi/models/cluster-storage-usage-history-instance.js.map +1 -0
  21. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +6 -0
  22. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -1
  23. package/dist/adminapi/models/cluster-storage-usage-history.d.ts +4 -4
  24. package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -1
  25. package/dist/adminapi/models/dms-service-account-create-request.d.ts +55 -0
  26. package/dist/adminapi/models/dms-service-account-create-request.d.ts.map +1 -0
  27. package/dist/adminapi/models/dms-service-account-create-request.js +16 -0
  28. package/dist/adminapi/models/dms-service-account-create-request.js.map +1 -0
  29. package/dist/adminapi/models/dms-service-account-status.d.ts +22 -0
  30. package/dist/adminapi/models/dms-service-account-status.d.ts.map +1 -0
  31. package/dist/adminapi/models/dms-service-account-status.js +26 -0
  32. package/dist/adminapi/models/dms-service-account-status.js.map +1 -0
  33. package/dist/adminapi/models/dms-service-account-update-request.d.ts +32 -0
  34. package/dist/adminapi/models/dms-service-account-update-request.d.ts.map +1 -0
  35. package/dist/adminapi/models/dms-service-account-update-request.js +16 -0
  36. package/dist/adminapi/models/dms-service-account-update-request.js.map +1 -0
  37. package/dist/adminapi/models/dms-service-account.d.ts +73 -0
  38. package/dist/adminapi/models/dms-service-account.d.ts.map +1 -0
  39. package/dist/adminapi/models/dms-service-account.js +16 -0
  40. package/dist/adminapi/models/dms-service-account.js.map +1 -0
  41. package/dist/adminapi/models/index.d.ts +6 -0
  42. package/dist/adminapi/models/index.d.ts.map +1 -1
  43. package/dist/adminapi/models/index.js +6 -0
  44. package/dist/adminapi/models/index.js.map +1 -1
  45. package/dist/adminapi/models/postgresql-space-analysis.d.ts +10 -4
  46. package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
  47. package/dist/adminapi/models/postgresql-storage-instance-usage.d.ts +79 -0
  48. package/dist/adminapi/models/postgresql-storage-instance-usage.d.ts.map +1 -0
  49. package/dist/adminapi/models/postgresql-storage-instance-usage.js +16 -0
  50. package/dist/adminapi/models/postgresql-storage-instance-usage.js.map +1 -0
  51. package/dist/adminapi/models/postgresql-storage-overview.d.ts +6 -29
  52. package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -1
  53. package/dist/openapi/apis/diagnostics-api.d.ts +10 -2
  54. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  55. package/dist/openapi/apis/diagnostics-api.js +10 -5
  56. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  57. package/dist/openapi/models/cluster-storage-usage-history-instance.d.ts +56 -0
  58. package/dist/openapi/models/cluster-storage-usage-history-instance.d.ts.map +1 -0
  59. package/dist/openapi/models/cluster-storage-usage-history-instance.js +16 -0
  60. package/dist/openapi/models/cluster-storage-usage-history-instance.js.map +1 -0
  61. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts +6 -0
  62. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -1
  63. package/dist/openapi/models/cluster-storage-usage-history.d.ts +4 -4
  64. package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -1
  65. package/dist/openapi/models/index.d.ts +2 -0
  66. package/dist/openapi/models/index.d.ts.map +1 -1
  67. package/dist/openapi/models/index.js +2 -0
  68. package/dist/openapi/models/index.js.map +1 -1
  69. package/dist/openapi/models/postgresql-space-analysis.d.ts +10 -4
  70. package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
  71. package/dist/openapi/models/postgresql-storage-instance-usage.d.ts +79 -0
  72. package/dist/openapi/models/postgresql-storage-instance-usage.d.ts.map +1 -0
  73. package/dist/openapi/models/postgresql-storage-instance-usage.js +16 -0
  74. package/dist/openapi/models/postgresql-storage-instance-usage.js.map +1 -0
  75. package/dist/openapi/models/postgresql-storage-overview.d.ts +6 -29
  76. package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -1
  77. package/package.json +1 -1
  78. package/src/adminapi/.openapi-generator/FILES +6 -0
  79. package/src/adminapi/apis/account-api.ts +703 -0
  80. package/src/adminapi/apis/diagnostics-api.ts +18 -5
  81. package/src/adminapi/apis/rdbms-api.ts +703 -0
  82. package/src/adminapi/apis/shared-api.ts +703 -0
  83. package/src/adminapi/models/cluster-storage-usage-history-instance.ts +63 -0
  84. package/src/adminapi/models/cluster-storage-usage-history-point.ts +6 -0
  85. package/src/adminapi/models/cluster-storage-usage-history.ts +4 -4
  86. package/src/adminapi/models/dms-service-account-create-request.ts +60 -0
  87. package/src/adminapi/models/dms-service-account-status.ts +31 -0
  88. package/src/adminapi/models/dms-service-account-update-request.ts +41 -0
  89. package/src/adminapi/models/dms-service-account.ts +78 -0
  90. package/src/adminapi/models/index.ts +6 -0
  91. package/src/adminapi/models/postgresql-space-analysis.ts +10 -4
  92. package/src/adminapi/models/postgresql-storage-instance-usage.ts +84 -0
  93. package/src/adminapi/models/postgresql-storage-overview.ts +8 -29
  94. package/src/adminapi.yaml +408 -11
  95. package/src/openapi/.openapi-generator/FILES +2 -0
  96. package/src/openapi/apis/diagnostics-api.ts +18 -5
  97. package/src/openapi/models/cluster-storage-usage-history-instance.ts +63 -0
  98. package/src/openapi/models/cluster-storage-usage-history-point.ts +6 -0
  99. package/src/openapi/models/cluster-storage-usage-history.ts +4 -4
  100. package/src/openapi/models/index.ts +2 -0
  101. package/src/openapi/models/postgresql-space-analysis.ts +10 -4
  102. package/src/openapi/models/postgresql-storage-instance-usage.ts +84 -0
  103. package/src/openapi/models/postgresql-storage-overview.ts +8 -29
  104. package/src/openapi.yaml +78 -11
@@ -28,6 +28,12 @@ import type { Account } from '../models';
28
28
  // @ts-ignore
29
29
  import type { AccountListItem } from '../models';
30
30
  // @ts-ignore
31
+ import type { DmsServiceAccount } from '../models';
32
+ // @ts-ignore
33
+ import type { DmsServiceAccountCreateRequest } from '../models';
34
+ // @ts-ignore
35
+ import type { DmsServiceAccountUpdateRequest } from '../models';
36
+ // @ts-ignore
31
37
  import type { PrivilegeListItem } from '../models';
32
38
  // @ts-ignore
33
39
  import type { RbmqAccountRequest } from '../models';
@@ -200,6 +206,61 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
200
206
  options: localVarRequestOptions,
201
207
  };
202
208
  },
209
+ /**
210
+ * create a MinIO service account access key
211
+ * @summary Create MinIO access key
212
+ * @param {string} engineName name of the engine
213
+ * @param {string} orgName name of the organization
214
+ * @param {string} clusterName name of the cluster
215
+ * @param {DmsServiceAccountCreateRequest} body
216
+ * @param {*} [options] Override http request option.
217
+ * @throws {RequiredError}
218
+ */
219
+ createServiceAccount: async (engineName: string, orgName: string, clusterName: string, body: DmsServiceAccountCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
220
+ // verify required parameter 'engineName' is not null or undefined
221
+ assertParamExists('createServiceAccount', 'engineName', engineName)
222
+ // verify required parameter 'orgName' is not null or undefined
223
+ assertParamExists('createServiceAccount', 'orgName', orgName)
224
+ // verify required parameter 'clusterName' is not null or undefined
225
+ assertParamExists('createServiceAccount', 'clusterName', clusterName)
226
+ // verify required parameter 'body' is not null or undefined
227
+ assertParamExists('createServiceAccount', 'body', body)
228
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
229
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
230
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
231
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
234
+ let baseOptions;
235
+ if (configuration) {
236
+ baseOptions = configuration.baseOptions;
237
+ }
238
+
239
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
240
+ const localVarHeaderParameter = {} as any;
241
+ const localVarQueryParameter = {} as any;
242
+
243
+ // authentication BearerToken required
244
+ // http bearer authentication required
245
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
246
+
247
+ // authentication DigestAuth required
248
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
249
+
250
+
251
+
252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
253
+
254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
257
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
258
+
259
+ return {
260
+ url: toPathString(localVarUrlObj),
261
+ options: localVarRequestOptions,
262
+ };
263
+ },
203
264
  /**
204
265
  * delete an account in cluster
205
266
  * @summary Delete cluster account
@@ -394,6 +455,59 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
394
455
 
395
456
 
396
457
 
458
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
459
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
460
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
461
+
462
+ return {
463
+ url: toPathString(localVarUrlObj),
464
+ options: localVarRequestOptions,
465
+ };
466
+ },
467
+ /**
468
+ * delete a MinIO service account access key
469
+ * @summary Delete MinIO access key
470
+ * @param {string} engineName name of the engine
471
+ * @param {string} orgName name of the organization
472
+ * @param {string} clusterName name of the cluster
473
+ * @param {string} accessKey MinIO access key
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
477
+ deleteServiceAccount: async (engineName: string, orgName: string, clusterName: string, accessKey: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
478
+ // verify required parameter 'engineName' is not null or undefined
479
+ assertParamExists('deleteServiceAccount', 'engineName', engineName)
480
+ // verify required parameter 'orgName' is not null or undefined
481
+ assertParamExists('deleteServiceAccount', 'orgName', orgName)
482
+ // verify required parameter 'clusterName' is not null or undefined
483
+ assertParamExists('deleteServiceAccount', 'clusterName', clusterName)
484
+ // verify required parameter 'accessKey' is not null or undefined
485
+ assertParamExists('deleteServiceAccount', 'accessKey', accessKey)
486
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
487
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
488
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
489
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
490
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
492
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
493
+ let baseOptions;
494
+ if (configuration) {
495
+ baseOptions = configuration.baseOptions;
496
+ }
497
+
498
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
499
+ const localVarHeaderParameter = {} as any;
500
+ const localVarQueryParameter = {} as any;
501
+
502
+ // authentication BearerToken required
503
+ // http bearer authentication required
504
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
505
+
506
+ // authentication DigestAuth required
507
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
508
+
509
+
510
+
397
511
  setSearchParams(localVarUrlObj, localVarQueryParameter);
398
512
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
399
513
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -455,6 +569,59 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
455
569
 
456
570
 
457
571
 
572
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
573
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
574
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
575
+
576
+ return {
577
+ url: toPathString(localVarUrlObj),
578
+ options: localVarRequestOptions,
579
+ };
580
+ },
581
+ /**
582
+ * get a MinIO service account access key
583
+ * @summary Get MinIO access key
584
+ * @param {string} engineName name of the engine
585
+ * @param {string} orgName name of the organization
586
+ * @param {string} clusterName name of the cluster
587
+ * @param {string} accessKey MinIO access key
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ */
591
+ getServiceAccount: async (engineName: string, orgName: string, clusterName: string, accessKey: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
592
+ // verify required parameter 'engineName' is not null or undefined
593
+ assertParamExists('getServiceAccount', 'engineName', engineName)
594
+ // verify required parameter 'orgName' is not null or undefined
595
+ assertParamExists('getServiceAccount', 'orgName', orgName)
596
+ // verify required parameter 'clusterName' is not null or undefined
597
+ assertParamExists('getServiceAccount', 'clusterName', clusterName)
598
+ // verify required parameter 'accessKey' is not null or undefined
599
+ assertParamExists('getServiceAccount', 'accessKey', accessKey)
600
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
601
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
602
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
603
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
604
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
605
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
606
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
607
+ let baseOptions;
608
+ if (configuration) {
609
+ baseOptions = configuration.baseOptions;
610
+ }
611
+
612
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
613
+ const localVarHeaderParameter = {} as any;
614
+ const localVarQueryParameter = {} as any;
615
+
616
+ // authentication BearerToken required
617
+ // http bearer authentication required
618
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
619
+
620
+ // authentication DigestAuth required
621
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
622
+
623
+
624
+
458
625
  setSearchParams(localVarUrlObj, localVarQueryParameter);
459
626
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
460
627
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -594,6 +761,60 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
594
761
 
595
762
 
596
763
 
764
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
765
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
766
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
767
+
768
+ return {
769
+ url: toPathString(localVarUrlObj),
770
+ options: localVarRequestOptions,
771
+ };
772
+ },
773
+ /**
774
+ * list MinIO service account access keys
775
+ * @summary List MinIO access keys
776
+ * @param {string} engineName name of the engine
777
+ * @param {string} orgName name of the organization
778
+ * @param {string} clusterName name of the cluster
779
+ * @param {string} [userName] MinIO user that owns the service accounts
780
+ * @param {*} [options] Override http request option.
781
+ * @throws {RequiredError}
782
+ */
783
+ listServiceAccounts: async (engineName: string, orgName: string, clusterName: string, userName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
784
+ // verify required parameter 'engineName' is not null or undefined
785
+ assertParamExists('listServiceAccounts', 'engineName', engineName)
786
+ // verify required parameter 'orgName' is not null or undefined
787
+ assertParamExists('listServiceAccounts', 'orgName', orgName)
788
+ // verify required parameter 'clusterName' is not null or undefined
789
+ assertParamExists('listServiceAccounts', 'clusterName', clusterName)
790
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys`
791
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
792
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
793
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
794
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
795
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
796
+ let baseOptions;
797
+ if (configuration) {
798
+ baseOptions = configuration.baseOptions;
799
+ }
800
+
801
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
802
+ const localVarHeaderParameter = {} as any;
803
+ const localVarQueryParameter = {} as any;
804
+
805
+ // authentication BearerToken required
806
+ // http bearer authentication required
807
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
808
+
809
+ // authentication DigestAuth required
810
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
811
+
812
+ if (userName !== undefined) {
813
+ localVarQueryParameter['userName'] = userName;
814
+ }
815
+
816
+
817
+
597
818
  setSearchParams(localVarUrlObj, localVarQueryParameter);
598
819
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
599
820
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -981,6 +1202,65 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
981
1202
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
982
1203
  localVarRequestOptions.data = serializeDataIfNeeded(rbmqPermission, localVarRequestOptions, configuration)
983
1204
 
1205
+ return {
1206
+ url: toPathString(localVarUrlObj),
1207
+ options: localVarRequestOptions,
1208
+ };
1209
+ },
1210
+ /**
1211
+ * update a MinIO service account access key
1212
+ * @summary Update MinIO access key
1213
+ * @param {string} engineName name of the engine
1214
+ * @param {string} orgName name of the organization
1215
+ * @param {string} clusterName name of the cluster
1216
+ * @param {string} accessKey MinIO access key
1217
+ * @param {DmsServiceAccountUpdateRequest} body
1218
+ * @param {*} [options] Override http request option.
1219
+ * @throws {RequiredError}
1220
+ */
1221
+ updateServiceAccount: async (engineName: string, orgName: string, clusterName: string, accessKey: string, body: DmsServiceAccountUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1222
+ // verify required parameter 'engineName' is not null or undefined
1223
+ assertParamExists('updateServiceAccount', 'engineName', engineName)
1224
+ // verify required parameter 'orgName' is not null or undefined
1225
+ assertParamExists('updateServiceAccount', 'orgName', orgName)
1226
+ // verify required parameter 'clusterName' is not null or undefined
1227
+ assertParamExists('updateServiceAccount', 'clusterName', clusterName)
1228
+ // verify required parameter 'accessKey' is not null or undefined
1229
+ assertParamExists('updateServiceAccount', 'accessKey', accessKey)
1230
+ // verify required parameter 'body' is not null or undefined
1231
+ assertParamExists('updateServiceAccount', 'body', body)
1232
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/access-keys/{accessKey}`
1233
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
1234
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1235
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1236
+ .replace(`{${"accessKey"}}`, encodeURIComponent(String(accessKey)));
1237
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1238
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1239
+ let baseOptions;
1240
+ if (configuration) {
1241
+ baseOptions = configuration.baseOptions;
1242
+ }
1243
+
1244
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
1245
+ const localVarHeaderParameter = {} as any;
1246
+ const localVarQueryParameter = {} as any;
1247
+
1248
+ // authentication BearerToken required
1249
+ // http bearer authentication required
1250
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1251
+
1252
+ // authentication DigestAuth required
1253
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
1254
+
1255
+
1256
+
1257
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1258
+
1259
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1260
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1261
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1262
+ localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
1263
+
984
1264
  return {
985
1265
  url: toPathString(localVarUrlObj),
986
1266
  options: localVarRequestOptions,
@@ -1042,6 +1322,22 @@ export const AccountApiFp = function(configuration?: Configuration) {
1042
1322
  const localVarOperationServerBasePath = operationServerMap['AccountApi.createRabbitAccount']?.[localVarOperationServerIndex]?.url;
1043
1323
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1044
1324
  },
1325
+ /**
1326
+ * create a MinIO service account access key
1327
+ * @summary Create MinIO access key
1328
+ * @param {string} engineName name of the engine
1329
+ * @param {string} orgName name of the organization
1330
+ * @param {string} clusterName name of the cluster
1331
+ * @param {DmsServiceAccountCreateRequest} body
1332
+ * @param {*} [options] Override http request option.
1333
+ * @throws {RequiredError}
1334
+ */
1335
+ async createServiceAccount(engineName: string, orgName: string, clusterName: string, body: DmsServiceAccountCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DmsServiceAccount>> {
1336
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createServiceAccount(engineName, orgName, clusterName, body, options);
1337
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1338
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.createServiceAccount']?.[localVarOperationServerIndex]?.url;
1339
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1340
+ },
1045
1341
  /**
1046
1342
  * delete an account in cluster
1047
1343
  * @summary Delete cluster account
@@ -1103,6 +1399,22 @@ export const AccountApiFp = function(configuration?: Configuration) {
1103
1399
  const localVarOperationServerBasePath = operationServerMap['AccountApi.deleteRabbitAccount']?.[localVarOperationServerIndex]?.url;
1104
1400
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1105
1401
  },
1402
+ /**
1403
+ * delete a MinIO service account access key
1404
+ * @summary Delete MinIO access key
1405
+ * @param {string} engineName name of the engine
1406
+ * @param {string} orgName name of the organization
1407
+ * @param {string} clusterName name of the cluster
1408
+ * @param {string} accessKey MinIO access key
1409
+ * @param {*} [options] Override http request option.
1410
+ * @throws {RequiredError}
1411
+ */
1412
+ async deleteServiceAccount(engineName: string, orgName: string, clusterName: string, accessKey: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1413
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServiceAccount(engineName, orgName, clusterName, accessKey, options);
1414
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1415
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.deleteServiceAccount']?.[localVarOperationServerIndex]?.url;
1416
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1417
+ },
1106
1418
  /**
1107
1419
  * get root account password
1108
1420
  * @summary get root account password
@@ -1120,6 +1432,22 @@ export const AccountApiFp = function(configuration?: Configuration) {
1120
1432
  const localVarOperationServerBasePath = operationServerMap['AccountApi.getRootAccountPassword']?.[localVarOperationServerIndex]?.url;
1121
1433
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1122
1434
  },
1435
+ /**
1436
+ * get a MinIO service account access key
1437
+ * @summary Get MinIO access key
1438
+ * @param {string} engineName name of the engine
1439
+ * @param {string} orgName name of the organization
1440
+ * @param {string} clusterName name of the cluster
1441
+ * @param {string} accessKey MinIO access key
1442
+ * @param {*} [options] Override http request option.
1443
+ * @throws {RequiredError}
1444
+ */
1445
+ async getServiceAccount(engineName: string, orgName: string, clusterName: string, accessKey: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DmsServiceAccount>> {
1446
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceAccount(engineName, orgName, clusterName, accessKey, options);
1447
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1448
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.getServiceAccount']?.[localVarOperationServerIndex]?.url;
1449
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1450
+ },
1123
1451
  /**
1124
1452
  * list accounts in cluster
1125
1453
  * @summary List cluster accounts
@@ -1163,6 +1491,22 @@ export const AccountApiFp = function(configuration?: Configuration) {
1163
1491
  const localVarOperationServerBasePath = operationServerMap['AccountApi.listRabbitAccounts']?.[localVarOperationServerIndex]?.url;
1164
1492
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1165
1493
  },
1494
+ /**
1495
+ * list MinIO service account access keys
1496
+ * @summary List MinIO access keys
1497
+ * @param {string} engineName name of the engine
1498
+ * @param {string} orgName name of the organization
1499
+ * @param {string} clusterName name of the cluster
1500
+ * @param {string} [userName] MinIO user that owns the service accounts
1501
+ * @param {*} [options] Override http request option.
1502
+ * @throws {RequiredError}
1503
+ */
1504
+ async listServiceAccounts(engineName: string, orgName: string, clusterName: string, userName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DmsServiceAccount>>> {
1505
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listServiceAccounts(engineName, orgName, clusterName, userName, options);
1506
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1507
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.listServiceAccounts']?.[localVarOperationServerIndex]?.url;
1508
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1509
+ },
1166
1510
  /**
1167
1511
  * lock an account in cluster
1168
1512
  * @summary Lock cluster account
@@ -1276,6 +1620,23 @@ export const AccountApiFp = function(configuration?: Configuration) {
1276
1620
  const localVarOperationServerBasePath = operationServerMap['AccountApi.updateRabbitAccountPrivileges']?.[localVarOperationServerIndex]?.url;
1277
1621
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1278
1622
  },
1623
+ /**
1624
+ * update a MinIO service account access key
1625
+ * @summary Update MinIO access key
1626
+ * @param {string} engineName name of the engine
1627
+ * @param {string} orgName name of the organization
1628
+ * @param {string} clusterName name of the cluster
1629
+ * @param {string} accessKey MinIO access key
1630
+ * @param {DmsServiceAccountUpdateRequest} body
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ */
1634
+ async updateServiceAccount(engineName: string, orgName: string, clusterName: string, accessKey: string, body: DmsServiceAccountUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DmsServiceAccount>> {
1635
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateServiceAccount(engineName, orgName, clusterName, accessKey, body, options);
1636
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1637
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.updateServiceAccount']?.[localVarOperationServerIndex]?.url;
1638
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1639
+ },
1279
1640
  }
1280
1641
  };
1281
1642
 
@@ -1316,6 +1677,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
1316
1677
  createRabbitAccount(requestParameters: AccountApiCreateRabbitAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1317
1678
  return localVarFp.createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(axios, basePath));
1318
1679
  },
1680
+ /**
1681
+ * create a MinIO service account access key
1682
+ * @summary Create MinIO access key
1683
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
1684
+ * @param {*} [options] Override http request option.
1685
+ * @throws {RequiredError}
1686
+ */
1687
+ createServiceAccount(requestParameters: AccountApiCreateServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount> {
1688
+ return localVarFp.createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
1689
+ },
1319
1690
  /**
1320
1691
  * delete an account in cluster
1321
1692
  * @summary Delete cluster account
@@ -1356,6 +1727,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
1356
1727
  deleteRabbitAccount(requestParameters: AccountApiDeleteRabbitAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1357
1728
  return localVarFp.deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1358
1729
  },
1730
+ /**
1731
+ * delete a MinIO service account access key
1732
+ * @summary Delete MinIO access key
1733
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
1734
+ * @param {*} [options] Override http request option.
1735
+ * @throws {RequiredError}
1736
+ */
1737
+ deleteServiceAccount(requestParameters: AccountApiDeleteServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1738
+ return localVarFp.deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
1739
+ },
1359
1740
  /**
1360
1741
  * get root account password
1361
1742
  * @summary get root account password
@@ -1366,6 +1747,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
1366
1747
  getRootAccountPassword(requestParameters: AccountApiGetRootAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
1367
1748
  return localVarFp.getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(axios, basePath));
1368
1749
  },
1750
+ /**
1751
+ * get a MinIO service account access key
1752
+ * @summary Get MinIO access key
1753
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ getServiceAccount(requestParameters: AccountApiGetServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount> {
1758
+ return localVarFp.getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(axios, basePath));
1759
+ },
1369
1760
  /**
1370
1761
  * list accounts in cluster
1371
1762
  * @summary List cluster accounts
@@ -1396,6 +1787,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
1396
1787
  listRabbitAccounts(requestParameters: AccountApiListRabbitAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<RbmqAccountsList> {
1397
1788
  return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1398
1789
  },
1790
+ /**
1791
+ * list MinIO service account access keys
1792
+ * @summary List MinIO access keys
1793
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
1794
+ * @param {*} [options] Override http request option.
1795
+ * @throws {RequiredError}
1796
+ */
1797
+ listServiceAccounts(requestParameters: AccountApiListServiceAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsServiceAccount>> {
1798
+ return localVarFp.listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(axios, basePath));
1799
+ },
1399
1800
  /**
1400
1801
  * lock an account in cluster
1401
1802
  * @summary Lock cluster account
@@ -1466,6 +1867,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
1466
1867
  updateRabbitAccountPrivileges(requestParameters: AccountApiUpdateRabbitAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1467
1868
  return localVarFp.updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(axios, basePath));
1468
1869
  },
1870
+ /**
1871
+ * update a MinIO service account access key
1872
+ * @summary Update MinIO access key
1873
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
1874
+ * @param {*} [options] Override http request option.
1875
+ * @throws {RequiredError}
1876
+ */
1877
+ updateServiceAccount(requestParameters: AccountApiUpdateServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount> {
1878
+ return localVarFp.updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(axios, basePath));
1879
+ },
1469
1880
  };
1470
1881
  };
1471
1882
 
@@ -1505,6 +1916,16 @@ export interface AccountApiInterface {
1505
1916
  */
1506
1917
  createRabbitAccount(requestParameters: AccountApiCreateRabbitAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1507
1918
 
1919
+ /**
1920
+ * create a MinIO service account access key
1921
+ * @summary Create MinIO access key
1922
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
1923
+ * @param {*} [options] Override http request option.
1924
+ * @throws {RequiredError}
1925
+ * @memberof AccountApiInterface
1926
+ */
1927
+ createServiceAccount(requestParameters: AccountApiCreateServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount>;
1928
+
1508
1929
  /**
1509
1930
  * delete an account in cluster
1510
1931
  * @summary Delete cluster account
@@ -1545,6 +1966,16 @@ export interface AccountApiInterface {
1545
1966
  */
1546
1967
  deleteRabbitAccount(requestParameters: AccountApiDeleteRabbitAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1547
1968
 
1969
+ /**
1970
+ * delete a MinIO service account access key
1971
+ * @summary Delete MinIO access key
1972
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
1973
+ * @param {*} [options] Override http request option.
1974
+ * @throws {RequiredError}
1975
+ * @memberof AccountApiInterface
1976
+ */
1977
+ deleteServiceAccount(requestParameters: AccountApiDeleteServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1978
+
1548
1979
  /**
1549
1980
  * get root account password
1550
1981
  * @summary get root account password
@@ -1555,6 +1986,16 @@ export interface AccountApiInterface {
1555
1986
  */
1556
1987
  getRootAccountPassword(requestParameters: AccountApiGetRootAccountPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
1557
1988
 
1989
+ /**
1990
+ * get a MinIO service account access key
1991
+ * @summary Get MinIO access key
1992
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
1993
+ * @param {*} [options] Override http request option.
1994
+ * @throws {RequiredError}
1995
+ * @memberof AccountApiInterface
1996
+ */
1997
+ getServiceAccount(requestParameters: AccountApiGetServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount>;
1998
+
1558
1999
  /**
1559
2000
  * list accounts in cluster
1560
2001
  * @summary List cluster accounts
@@ -1585,6 +2026,16 @@ export interface AccountApiInterface {
1585
2026
  */
1586
2027
  listRabbitAccounts(requestParameters: AccountApiListRabbitAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<RbmqAccountsList>;
1587
2028
 
2029
+ /**
2030
+ * list MinIO service account access keys
2031
+ * @summary List MinIO access keys
2032
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
2033
+ * @param {*} [options] Override http request option.
2034
+ * @throws {RequiredError}
2035
+ * @memberof AccountApiInterface
2036
+ */
2037
+ listServiceAccounts(requestParameters: AccountApiListServiceAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsServiceAccount>>;
2038
+
1588
2039
  /**
1589
2040
  * lock an account in cluster
1590
2041
  * @summary Lock cluster account
@@ -1655,6 +2106,16 @@ export interface AccountApiInterface {
1655
2106
  */
1656
2107
  updateRabbitAccountPrivileges(requestParameters: AccountApiUpdateRabbitAccountPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1657
2108
 
2109
+ /**
2110
+ * update a MinIO service account access key
2111
+ * @summary Update MinIO access key
2112
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
2113
+ * @param {*} [options] Override http request option.
2114
+ * @throws {RequiredError}
2115
+ * @memberof AccountApiInterface
2116
+ */
2117
+ updateServiceAccount(requestParameters: AccountApiUpdateServiceAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<DmsServiceAccount>;
2118
+
1658
2119
  }
1659
2120
 
1660
2121
  /**
@@ -1748,6 +2209,41 @@ export interface AccountApiCreateRabbitAccountRequest {
1748
2209
  readonly rbmqAccountRequest: RbmqAccountRequest
1749
2210
  }
1750
2211
 
2212
+ /**
2213
+ * Request parameters for createServiceAccount operation in AccountApi.
2214
+ * @export
2215
+ * @interface AccountApiCreateServiceAccountRequest
2216
+ */
2217
+ export interface AccountApiCreateServiceAccountRequest {
2218
+ /**
2219
+ * name of the engine
2220
+ * @type {string}
2221
+ * @memberof AccountApiCreateServiceAccount
2222
+ */
2223
+ readonly engineName: string
2224
+
2225
+ /**
2226
+ * name of the organization
2227
+ * @type {string}
2228
+ * @memberof AccountApiCreateServiceAccount
2229
+ */
2230
+ readonly orgName: string
2231
+
2232
+ /**
2233
+ * name of the cluster
2234
+ * @type {string}
2235
+ * @memberof AccountApiCreateServiceAccount
2236
+ */
2237
+ readonly clusterName: string
2238
+
2239
+ /**
2240
+ *
2241
+ * @type {DmsServiceAccountCreateRequest}
2242
+ * @memberof AccountApiCreateServiceAccount
2243
+ */
2244
+ readonly body: DmsServiceAccountCreateRequest
2245
+ }
2246
+
1751
2247
  /**
1752
2248
  * Request parameters for deleteAccount operation in AccountApi.
1753
2249
  * @export
@@ -1867,6 +2363,41 @@ export interface AccountApiDeleteRabbitAccountRequest {
1867
2363
  readonly accountName: string
1868
2364
  }
1869
2365
 
2366
+ /**
2367
+ * Request parameters for deleteServiceAccount operation in AccountApi.
2368
+ * @export
2369
+ * @interface AccountApiDeleteServiceAccountRequest
2370
+ */
2371
+ export interface AccountApiDeleteServiceAccountRequest {
2372
+ /**
2373
+ * name of the engine
2374
+ * @type {string}
2375
+ * @memberof AccountApiDeleteServiceAccount
2376
+ */
2377
+ readonly engineName: string
2378
+
2379
+ /**
2380
+ * name of the organization
2381
+ * @type {string}
2382
+ * @memberof AccountApiDeleteServiceAccount
2383
+ */
2384
+ readonly orgName: string
2385
+
2386
+ /**
2387
+ * name of the cluster
2388
+ * @type {string}
2389
+ * @memberof AccountApiDeleteServiceAccount
2390
+ */
2391
+ readonly clusterName: string
2392
+
2393
+ /**
2394
+ * MinIO access key
2395
+ * @type {string}
2396
+ * @memberof AccountApiDeleteServiceAccount
2397
+ */
2398
+ readonly accessKey: string
2399
+ }
2400
+
1870
2401
  /**
1871
2402
  * Request parameters for getRootAccountPassword operation in AccountApi.
1872
2403
  * @export
@@ -1909,6 +2440,41 @@ export interface AccountApiGetRootAccountPasswordRequest {
1909
2440
  readonly component?: string
1910
2441
  }
1911
2442
 
2443
+ /**
2444
+ * Request parameters for getServiceAccount operation in AccountApi.
2445
+ * @export
2446
+ * @interface AccountApiGetServiceAccountRequest
2447
+ */
2448
+ export interface AccountApiGetServiceAccountRequest {
2449
+ /**
2450
+ * name of the engine
2451
+ * @type {string}
2452
+ * @memberof AccountApiGetServiceAccount
2453
+ */
2454
+ readonly engineName: string
2455
+
2456
+ /**
2457
+ * name of the organization
2458
+ * @type {string}
2459
+ * @memberof AccountApiGetServiceAccount
2460
+ */
2461
+ readonly orgName: string
2462
+
2463
+ /**
2464
+ * name of the cluster
2465
+ * @type {string}
2466
+ * @memberof AccountApiGetServiceAccount
2467
+ */
2468
+ readonly clusterName: string
2469
+
2470
+ /**
2471
+ * MinIO access key
2472
+ * @type {string}
2473
+ * @memberof AccountApiGetServiceAccount
2474
+ */
2475
+ readonly accessKey: string
2476
+ }
2477
+
1912
2478
  /**
1913
2479
  * Request parameters for listAccounts operation in AccountApi.
1914
2480
  * @export
@@ -1979,6 +2545,41 @@ export interface AccountApiListRabbitAccountsRequest {
1979
2545
  readonly clusterName: string
1980
2546
  }
1981
2547
 
2548
+ /**
2549
+ * Request parameters for listServiceAccounts operation in AccountApi.
2550
+ * @export
2551
+ * @interface AccountApiListServiceAccountsRequest
2552
+ */
2553
+ export interface AccountApiListServiceAccountsRequest {
2554
+ /**
2555
+ * name of the engine
2556
+ * @type {string}
2557
+ * @memberof AccountApiListServiceAccounts
2558
+ */
2559
+ readonly engineName: string
2560
+
2561
+ /**
2562
+ * name of the organization
2563
+ * @type {string}
2564
+ * @memberof AccountApiListServiceAccounts
2565
+ */
2566
+ readonly orgName: string
2567
+
2568
+ /**
2569
+ * name of the cluster
2570
+ * @type {string}
2571
+ * @memberof AccountApiListServiceAccounts
2572
+ */
2573
+ readonly clusterName: string
2574
+
2575
+ /**
2576
+ * MinIO user that owns the service accounts
2577
+ * @type {string}
2578
+ * @memberof AccountApiListServiceAccounts
2579
+ */
2580
+ readonly userName?: string
2581
+ }
2582
+
1982
2583
  /**
1983
2584
  * Request parameters for lockAccount operation in AccountApi.
1984
2585
  * @export
@@ -2231,6 +2832,48 @@ export interface AccountApiUpdateRabbitAccountPrivilegesRequest {
2231
2832
  readonly rbmqPermission: RbmqPermission
2232
2833
  }
2233
2834
 
2835
+ /**
2836
+ * Request parameters for updateServiceAccount operation in AccountApi.
2837
+ * @export
2838
+ * @interface AccountApiUpdateServiceAccountRequest
2839
+ */
2840
+ export interface AccountApiUpdateServiceAccountRequest {
2841
+ /**
2842
+ * name of the engine
2843
+ * @type {string}
2844
+ * @memberof AccountApiUpdateServiceAccount
2845
+ */
2846
+ readonly engineName: string
2847
+
2848
+ /**
2849
+ * name of the organization
2850
+ * @type {string}
2851
+ * @memberof AccountApiUpdateServiceAccount
2852
+ */
2853
+ readonly orgName: string
2854
+
2855
+ /**
2856
+ * name of the cluster
2857
+ * @type {string}
2858
+ * @memberof AccountApiUpdateServiceAccount
2859
+ */
2860
+ readonly clusterName: string
2861
+
2862
+ /**
2863
+ * MinIO access key
2864
+ * @type {string}
2865
+ * @memberof AccountApiUpdateServiceAccount
2866
+ */
2867
+ readonly accessKey: string
2868
+
2869
+ /**
2870
+ *
2871
+ * @type {DmsServiceAccountUpdateRequest}
2872
+ * @memberof AccountApiUpdateServiceAccount
2873
+ */
2874
+ readonly body: DmsServiceAccountUpdateRequest
2875
+ }
2876
+
2234
2877
  /**
2235
2878
  * AccountApi - object-oriented interface
2236
2879
  * @export
@@ -2274,6 +2917,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
2274
2917
  return AccountApiFp(this.configuration).createRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.rbmqAccountRequest, options).then((request) => request(this.axios, this.basePath));
2275
2918
  }
2276
2919
 
2920
+ /**
2921
+ * create a MinIO service account access key
2922
+ * @summary Create MinIO access key
2923
+ * @param {AccountApiCreateServiceAccountRequest} requestParameters Request parameters.
2924
+ * @param {*} [options] Override http request option.
2925
+ * @throws {RequiredError}
2926
+ * @memberof AccountApi
2927
+ */
2928
+ public createServiceAccount(requestParameters: AccountApiCreateServiceAccountRequest, options?: RawAxiosRequestConfig) {
2929
+ return AccountApiFp(this.configuration).createServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2930
+ }
2931
+
2277
2932
  /**
2278
2933
  * delete an account in cluster
2279
2934
  * @summary Delete cluster account
@@ -2322,6 +2977,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
2322
2977
  return AccountApiFp(this.configuration).deleteRabbitAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2323
2978
  }
2324
2979
 
2980
+ /**
2981
+ * delete a MinIO service account access key
2982
+ * @summary Delete MinIO access key
2983
+ * @param {AccountApiDeleteServiceAccountRequest} requestParameters Request parameters.
2984
+ * @param {*} [options] Override http request option.
2985
+ * @throws {RequiredError}
2986
+ * @memberof AccountApi
2987
+ */
2988
+ public deleteServiceAccount(requestParameters: AccountApiDeleteServiceAccountRequest, options?: RawAxiosRequestConfig) {
2989
+ return AccountApiFp(this.configuration).deleteServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
2990
+ }
2991
+
2325
2992
  /**
2326
2993
  * get root account password
2327
2994
  * @summary get root account password
@@ -2334,6 +3001,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
2334
3001
  return AccountApiFp(this.configuration).getRootAccountPassword(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
2335
3002
  }
2336
3003
 
3004
+ /**
3005
+ * get a MinIO service account access key
3006
+ * @summary Get MinIO access key
3007
+ * @param {AccountApiGetServiceAccountRequest} requestParameters Request parameters.
3008
+ * @param {*} [options] Override http request option.
3009
+ * @throws {RequiredError}
3010
+ * @memberof AccountApi
3011
+ */
3012
+ public getServiceAccount(requestParameters: AccountApiGetServiceAccountRequest, options?: RawAxiosRequestConfig) {
3013
+ return AccountApiFp(this.configuration).getServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, options).then((request) => request(this.axios, this.basePath));
3014
+ }
3015
+
2337
3016
  /**
2338
3017
  * list accounts in cluster
2339
3018
  * @summary List cluster accounts
@@ -2370,6 +3049,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
2370
3049
  return AccountApiFp(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
2371
3050
  }
2372
3051
 
3052
+ /**
3053
+ * list MinIO service account access keys
3054
+ * @summary List MinIO access keys
3055
+ * @param {AccountApiListServiceAccountsRequest} requestParameters Request parameters.
3056
+ * @param {*} [options] Override http request option.
3057
+ * @throws {RequiredError}
3058
+ * @memberof AccountApi
3059
+ */
3060
+ public listServiceAccounts(requestParameters: AccountApiListServiceAccountsRequest, options?: RawAxiosRequestConfig) {
3061
+ return AccountApiFp(this.configuration).listServiceAccounts(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.userName, options).then((request) => request(this.axios, this.basePath));
3062
+ }
3063
+
2373
3064
  /**
2374
3065
  * lock an account in cluster
2375
3066
  * @summary Lock cluster account
@@ -2453,5 +3144,17 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
2453
3144
  public updateRabbitAccountPrivileges(requestParameters: AccountApiUpdateRabbitAccountPrivilegesRequest, options?: RawAxiosRequestConfig) {
2454
3145
  return AccountApiFp(this.configuration).updateRabbitAccountPrivileges(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.rbmqPermission, options).then((request) => request(this.axios, this.basePath));
2455
3146
  }
3147
+
3148
+ /**
3149
+ * update a MinIO service account access key
3150
+ * @summary Update MinIO access key
3151
+ * @param {AccountApiUpdateServiceAccountRequest} requestParameters Request parameters.
3152
+ * @param {*} [options] Override http request option.
3153
+ * @throws {RequiredError}
3154
+ * @memberof AccountApi
3155
+ */
3156
+ public updateServiceAccount(requestParameters: AccountApiUpdateServiceAccountRequest, options?: RawAxiosRequestConfig) {
3157
+ return AccountApiFp(this.configuration).updateServiceAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accessKey, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3158
+ }
2456
3159
  }
2457
3160