kb-cloud-client-typescript 2.3.0-alpha.106 → 2.3.0-alpha.107

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 (39) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +158 -0
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +168 -0
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/rdbms-api.d.ts +158 -0
  6. package/dist/adminapi/apis/rdbms-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/rdbms-api.js +168 -0
  8. package/dist/adminapi/apis/rdbms-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +158 -0
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +168 -0
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/account-option.d.ts +6 -0
  14. package/dist/adminapi/models/account-option.d.ts.map +1 -1
  15. package/dist/openapi/apis/account-api.d.ts +158 -0
  16. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  17. package/dist/openapi/apis/account-api.js +168 -0
  18. package/dist/openapi/apis/account-api.js.map +1 -1
  19. package/dist/openapi/apis/rdbms-api.d.ts +158 -0
  20. package/dist/openapi/apis/rdbms-api.d.ts.map +1 -1
  21. package/dist/openapi/apis/rdbms-api.js +168 -0
  22. package/dist/openapi/apis/rdbms-api.js.map +1 -1
  23. package/dist/openapi/apis/shared-api.d.ts +158 -0
  24. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  25. package/dist/openapi/apis/shared-api.js +168 -0
  26. package/dist/openapi/apis/shared-api.js.map +1 -1
  27. package/dist/openapi/models/account-option.d.ts +6 -0
  28. package/dist/openapi/models/account-option.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/adminapi/apis/account-api.ts +272 -0
  31. package/src/adminapi/apis/rdbms-api.ts +272 -0
  32. package/src/adminapi/apis/shared-api.ts +272 -0
  33. package/src/adminapi/models/account-option.ts +6 -0
  34. package/src/adminapi.yaml +91 -0
  35. package/src/openapi/apis/account-api.ts +272 -0
  36. package/src/openapi/apis/rdbms-api.ts +272 -0
  37. package/src/openapi/apis/shared-api.ts +272 -0
  38. package/src/openapi/models/account-option.ts +6 -0
  39. package/src/openapi.yaml +91 -0
@@ -69,6 +69,12 @@ export interface AccountOption {
69
69
  * @memberof AccountOption
70
70
  */
71
71
  'delete': boolean;
72
+ /**
73
+ * Whether the engine supports account lock and unlock actions.
74
+ * @type {boolean}
75
+ * @memberof AccountOption
76
+ */
77
+ 'lock'?: boolean;
72
78
  /**
73
79
  *
74
80
  * @type {boolean}
@@ -1 +1 @@
1
- {"version":3,"file":"account-option.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/account-option.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzC"}
1
+ {"version":3,"file":"account-option.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/account-option.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;OAIG;IACH,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kb-cloud-client-typescript",
3
- "version": "2.3.0-alpha.106",
3
+ "version": "2.3.0-alpha.107",
4
4
  "description": "Auto-generated TypeScript SDK for KubeBlocks Cloud API",
5
5
  "private": false,
6
6
  "license": "Apache-2.0",
@@ -594,6 +594,112 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
594
594
 
595
595
 
596
596
 
597
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
598
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
599
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
600
+
601
+ return {
602
+ url: toPathString(localVarUrlObj),
603
+ options: localVarRequestOptions,
604
+ };
605
+ },
606
+ /**
607
+ * lock an account in cluster
608
+ * @summary Lock cluster account
609
+ * @param {string} engineName name of the engine
610
+ * @param {string} orgName name of the organization
611
+ * @param {string} clusterName name of the cluster
612
+ * @param {string} accountName name of the account
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ */
616
+ lockAccount: async (engineName: string, orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
617
+ // verify required parameter 'engineName' is not null or undefined
618
+ assertParamExists('lockAccount', 'engineName', engineName)
619
+ // verify required parameter 'orgName' is not null or undefined
620
+ assertParamExists('lockAccount', 'orgName', orgName)
621
+ // verify required parameter 'clusterName' is not null or undefined
622
+ assertParamExists('lockAccount', 'clusterName', clusterName)
623
+ // verify required parameter 'accountName' is not null or undefined
624
+ assertParamExists('lockAccount', 'accountName', accountName)
625
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock`
626
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
627
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
628
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
629
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
630
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
631
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
632
+ let baseOptions;
633
+ if (configuration) {
634
+ baseOptions = configuration.baseOptions;
635
+ }
636
+
637
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
638
+ const localVarHeaderParameter = {} as any;
639
+ const localVarQueryParameter = {} as any;
640
+
641
+ // authentication BearerToken required
642
+ // http bearer authentication required
643
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
644
+
645
+ // authentication DigestAuth required
646
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
647
+
648
+
649
+
650
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
651
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
652
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
653
+
654
+ return {
655
+ url: toPathString(localVarUrlObj),
656
+ options: localVarRequestOptions,
657
+ };
658
+ },
659
+ /**
660
+ * unlock an account in cluster
661
+ * @summary Unlock cluster account
662
+ * @param {string} engineName name of the engine
663
+ * @param {string} orgName name of the organization
664
+ * @param {string} clusterName name of the cluster
665
+ * @param {string} accountName name of the account
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ */
669
+ unlockAccount: async (engineName: string, orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
670
+ // verify required parameter 'engineName' is not null or undefined
671
+ assertParamExists('unlockAccount', 'engineName', engineName)
672
+ // verify required parameter 'orgName' is not null or undefined
673
+ assertParamExists('unlockAccount', 'orgName', orgName)
674
+ // verify required parameter 'clusterName' is not null or undefined
675
+ assertParamExists('unlockAccount', 'clusterName', clusterName)
676
+ // verify required parameter 'accountName' is not null or undefined
677
+ assertParamExists('unlockAccount', 'accountName', accountName)
678
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/unlock`
679
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
680
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
681
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
682
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
683
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
684
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
685
+ let baseOptions;
686
+ if (configuration) {
687
+ baseOptions = configuration.baseOptions;
688
+ }
689
+
690
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
691
+ const localVarHeaderParameter = {} as any;
692
+ const localVarQueryParameter = {} as any;
693
+
694
+ // authentication BearerToken required
695
+ // http bearer authentication required
696
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
697
+
698
+ // authentication DigestAuth required
699
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
700
+
701
+
702
+
597
703
  setSearchParams(localVarUrlObj, localVarQueryParameter);
598
704
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
599
705
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1057,6 +1163,38 @@ export const AccountApiFp = function(configuration?: Configuration) {
1057
1163
  const localVarOperationServerBasePath = operationServerMap['AccountApi.listRabbitAccounts']?.[localVarOperationServerIndex]?.url;
1058
1164
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1059
1165
  },
1166
+ /**
1167
+ * lock an account in cluster
1168
+ * @summary Lock cluster account
1169
+ * @param {string} engineName name of the engine
1170
+ * @param {string} orgName name of the organization
1171
+ * @param {string} clusterName name of the cluster
1172
+ * @param {string} accountName name of the account
1173
+ * @param {*} [options] Override http request option.
1174
+ * @throws {RequiredError}
1175
+ */
1176
+ async lockAccount(engineName: string, orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1177
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockAccount(engineName, orgName, clusterName, accountName, options);
1178
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1179
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.lockAccount']?.[localVarOperationServerIndex]?.url;
1180
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1181
+ },
1182
+ /**
1183
+ * unlock an account in cluster
1184
+ * @summary Unlock cluster account
1185
+ * @param {string} engineName name of the engine
1186
+ * @param {string} orgName name of the organization
1187
+ * @param {string} clusterName name of the cluster
1188
+ * @param {string} accountName name of the account
1189
+ * @param {*} [options] Override http request option.
1190
+ * @throws {RequiredError}
1191
+ */
1192
+ async unlockAccount(engineName: string, orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1193
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlockAccount(engineName, orgName, clusterName, accountName, options);
1194
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1195
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.unlockAccount']?.[localVarOperationServerIndex]?.url;
1196
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1197
+ },
1060
1198
  /**
1061
1199
  * update an account in cluster
1062
1200
  * @summary update cluster account
@@ -1258,6 +1396,26 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
1258
1396
  listRabbitAccounts(requestParameters: AccountApiListRabbitAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<RbmqAccountsList> {
1259
1397
  return localVarFp.listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1260
1398
  },
1399
+ /**
1400
+ * lock an account in cluster
1401
+ * @summary Lock cluster account
1402
+ * @param {AccountApiLockAccountRequest} requestParameters Request parameters.
1403
+ * @param {*} [options] Override http request option.
1404
+ * @throws {RequiredError}
1405
+ */
1406
+ lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1407
+ return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1408
+ },
1409
+ /**
1410
+ * unlock an account in cluster
1411
+ * @summary Unlock cluster account
1412
+ * @param {AccountApiUnlockAccountRequest} requestParameters Request parameters.
1413
+ * @param {*} [options] Override http request option.
1414
+ * @throws {RequiredError}
1415
+ */
1416
+ unlockAccount(requestParameters: AccountApiUnlockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1417
+ return localVarFp.unlockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1418
+ },
1261
1419
  /**
1262
1420
  * update an account in cluster
1263
1421
  * @summary update cluster account
@@ -1427,6 +1585,26 @@ export interface AccountApiInterface {
1427
1585
  */
1428
1586
  listRabbitAccounts(requestParameters: AccountApiListRabbitAccountsRequest, options?: RawAxiosRequestConfig): AxiosPromise<RbmqAccountsList>;
1429
1587
 
1588
+ /**
1589
+ * lock an account in cluster
1590
+ * @summary Lock cluster account
1591
+ * @param {AccountApiLockAccountRequest} requestParameters Request parameters.
1592
+ * @param {*} [options] Override http request option.
1593
+ * @throws {RequiredError}
1594
+ * @memberof AccountApiInterface
1595
+ */
1596
+ lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1597
+
1598
+ /**
1599
+ * unlock an account in cluster
1600
+ * @summary Unlock cluster account
1601
+ * @param {AccountApiUnlockAccountRequest} requestParameters Request parameters.
1602
+ * @param {*} [options] Override http request option.
1603
+ * @throws {RequiredError}
1604
+ * @memberof AccountApiInterface
1605
+ */
1606
+ unlockAccount(requestParameters: AccountApiUnlockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1607
+
1430
1608
  /**
1431
1609
  * update an account in cluster
1432
1610
  * @summary update cluster account
@@ -1801,6 +1979,76 @@ export interface AccountApiListRabbitAccountsRequest {
1801
1979
  readonly clusterName: string
1802
1980
  }
1803
1981
 
1982
+ /**
1983
+ * Request parameters for lockAccount operation in AccountApi.
1984
+ * @export
1985
+ * @interface AccountApiLockAccountRequest
1986
+ */
1987
+ export interface AccountApiLockAccountRequest {
1988
+ /**
1989
+ * name of the engine
1990
+ * @type {string}
1991
+ * @memberof AccountApiLockAccount
1992
+ */
1993
+ readonly engineName: string
1994
+
1995
+ /**
1996
+ * name of the organization
1997
+ * @type {string}
1998
+ * @memberof AccountApiLockAccount
1999
+ */
2000
+ readonly orgName: string
2001
+
2002
+ /**
2003
+ * name of the cluster
2004
+ * @type {string}
2005
+ * @memberof AccountApiLockAccount
2006
+ */
2007
+ readonly clusterName: string
2008
+
2009
+ /**
2010
+ * name of the account
2011
+ * @type {string}
2012
+ * @memberof AccountApiLockAccount
2013
+ */
2014
+ readonly accountName: string
2015
+ }
2016
+
2017
+ /**
2018
+ * Request parameters for unlockAccount operation in AccountApi.
2019
+ * @export
2020
+ * @interface AccountApiUnlockAccountRequest
2021
+ */
2022
+ export interface AccountApiUnlockAccountRequest {
2023
+ /**
2024
+ * name of the engine
2025
+ * @type {string}
2026
+ * @memberof AccountApiUnlockAccount
2027
+ */
2028
+ readonly engineName: string
2029
+
2030
+ /**
2031
+ * name of the organization
2032
+ * @type {string}
2033
+ * @memberof AccountApiUnlockAccount
2034
+ */
2035
+ readonly orgName: string
2036
+
2037
+ /**
2038
+ * name of the cluster
2039
+ * @type {string}
2040
+ * @memberof AccountApiUnlockAccount
2041
+ */
2042
+ readonly clusterName: string
2043
+
2044
+ /**
2045
+ * name of the account
2046
+ * @type {string}
2047
+ * @memberof AccountApiUnlockAccount
2048
+ */
2049
+ readonly accountName: string
2050
+ }
2051
+
1804
2052
  /**
1805
2053
  * Request parameters for updateAccount operation in AccountApi.
1806
2054
  * @export
@@ -2122,6 +2370,30 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
2122
2370
  return AccountApiFp(this.configuration).listRabbitAccounts(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
2123
2371
  }
2124
2372
 
2373
+ /**
2374
+ * lock an account in cluster
2375
+ * @summary Lock cluster account
2376
+ * @param {AccountApiLockAccountRequest} requestParameters Request parameters.
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ * @memberof AccountApi
2380
+ */
2381
+ public lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig) {
2382
+ return AccountApiFp(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2383
+ }
2384
+
2385
+ /**
2386
+ * unlock an account in cluster
2387
+ * @summary Unlock cluster account
2388
+ * @param {AccountApiUnlockAccountRequest} requestParameters Request parameters.
2389
+ * @param {*} [options] Override http request option.
2390
+ * @throws {RequiredError}
2391
+ * @memberof AccountApi
2392
+ */
2393
+ public unlockAccount(requestParameters: AccountApiUnlockAccountRequest, options?: RawAxiosRequestConfig) {
2394
+ return AccountApiFp(this.configuration).unlockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2395
+ }
2396
+
2125
2397
  /**
2126
2398
  * update an account in cluster
2127
2399
  * @summary update cluster account
@@ -632,6 +632,112 @@ export const RdbmsApiAxiosParamCreator = function (configuration?: Configuration
632
632
 
633
633
 
634
634
 
635
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
636
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
637
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
638
+
639
+ return {
640
+ url: toPathString(localVarUrlObj),
641
+ options: localVarRequestOptions,
642
+ };
643
+ },
644
+ /**
645
+ * lock an account in cluster
646
+ * @summary Lock cluster account
647
+ * @param {string} engineName name of the engine
648
+ * @param {string} orgName name of the organization
649
+ * @param {string} clusterName name of the cluster
650
+ * @param {string} accountName name of the account
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ lockAccount: async (engineName: string, orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
655
+ // verify required parameter 'engineName' is not null or undefined
656
+ assertParamExists('lockAccount', 'engineName', engineName)
657
+ // verify required parameter 'orgName' is not null or undefined
658
+ assertParamExists('lockAccount', 'orgName', orgName)
659
+ // verify required parameter 'clusterName' is not null or undefined
660
+ assertParamExists('lockAccount', 'clusterName', clusterName)
661
+ // verify required parameter 'accountName' is not null or undefined
662
+ assertParamExists('lockAccount', 'accountName', accountName)
663
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/lock`
664
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
665
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
666
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
667
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
670
+ let baseOptions;
671
+ if (configuration) {
672
+ baseOptions = configuration.baseOptions;
673
+ }
674
+
675
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
676
+ const localVarHeaderParameter = {} as any;
677
+ const localVarQueryParameter = {} as any;
678
+
679
+ // authentication BearerToken required
680
+ // http bearer authentication required
681
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
682
+
683
+ // authentication DigestAuth required
684
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
685
+
686
+
687
+
688
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
689
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
690
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
691
+
692
+ return {
693
+ url: toPathString(localVarUrlObj),
694
+ options: localVarRequestOptions,
695
+ };
696
+ },
697
+ /**
698
+ * unlock an account in cluster
699
+ * @summary Unlock cluster account
700
+ * @param {string} engineName name of the engine
701
+ * @param {string} orgName name of the organization
702
+ * @param {string} clusterName name of the cluster
703
+ * @param {string} accountName name of the account
704
+ * @param {*} [options] Override http request option.
705
+ * @throws {RequiredError}
706
+ */
707
+ unlockAccount: async (engineName: string, orgName: string, clusterName: string, accountName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
708
+ // verify required parameter 'engineName' is not null or undefined
709
+ assertParamExists('unlockAccount', 'engineName', engineName)
710
+ // verify required parameter 'orgName' is not null or undefined
711
+ assertParamExists('unlockAccount', 'orgName', orgName)
712
+ // verify required parameter 'clusterName' is not null or undefined
713
+ assertParamExists('unlockAccount', 'clusterName', clusterName)
714
+ // verify required parameter 'accountName' is not null or undefined
715
+ assertParamExists('unlockAccount', 'accountName', accountName)
716
+ const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/accounts/{accountName}/unlock`
717
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
718
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
719
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
720
+ .replace(`{${"accountName"}}`, encodeURIComponent(String(accountName)));
721
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
722
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
723
+ let baseOptions;
724
+ if (configuration) {
725
+ baseOptions = configuration.baseOptions;
726
+ }
727
+
728
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
729
+ const localVarHeaderParameter = {} as any;
730
+ const localVarQueryParameter = {} as any;
731
+
732
+ // authentication BearerToken required
733
+ // http bearer authentication required
734
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
735
+
736
+ // authentication DigestAuth required
737
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
738
+
739
+
740
+
635
741
  setSearchParams(localVarUrlObj, localVarQueryParameter);
636
742
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
637
743
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -1002,6 +1108,38 @@ export const RdbmsApiFp = function(configuration?: Configuration) {
1002
1108
  const localVarOperationServerBasePath = operationServerMap['RdbmsApi.listSessions']?.[localVarOperationServerIndex]?.url;
1003
1109
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1004
1110
  },
1111
+ /**
1112
+ * lock an account in cluster
1113
+ * @summary Lock cluster account
1114
+ * @param {string} engineName name of the engine
1115
+ * @param {string} orgName name of the organization
1116
+ * @param {string} clusterName name of the cluster
1117
+ * @param {string} accountName name of the account
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ async lockAccount(engineName: string, orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1122
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockAccount(engineName, orgName, clusterName, accountName, options);
1123
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1124
+ const localVarOperationServerBasePath = operationServerMap['RdbmsApi.lockAccount']?.[localVarOperationServerIndex]?.url;
1125
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1126
+ },
1127
+ /**
1128
+ * unlock an account in cluster
1129
+ * @summary Unlock cluster account
1130
+ * @param {string} engineName name of the engine
1131
+ * @param {string} orgName name of the organization
1132
+ * @param {string} clusterName name of the cluster
1133
+ * @param {string} accountName name of the account
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ async unlockAccount(engineName: string, orgName: string, clusterName: string, accountName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1138
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlockAccount(engineName, orgName, clusterName, accountName, options);
1139
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1140
+ const localVarOperationServerBasePath = operationServerMap['RdbmsApi.unlockAccount']?.[localVarOperationServerIndex]?.url;
1141
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1142
+ },
1005
1143
  /**
1006
1144
  * update an account in cluster
1007
1145
  * @summary update cluster account
@@ -1172,6 +1310,26 @@ export const RdbmsApiFactory = function (configuration?: Configuration, basePath
1172
1310
  listSessions(requestParameters: RdbmsApiListSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsSession>> {
1173
1311
  return localVarFp.listSessions(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.all, options).then((request) => request(axios, basePath));
1174
1312
  },
1313
+ /**
1314
+ * lock an account in cluster
1315
+ * @summary Lock cluster account
1316
+ * @param {RdbmsApiLockAccountRequest} requestParameters Request parameters.
1317
+ * @param {*} [options] Override http request option.
1318
+ * @throws {RequiredError}
1319
+ */
1320
+ lockAccount(requestParameters: RdbmsApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1321
+ return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1322
+ },
1323
+ /**
1324
+ * unlock an account in cluster
1325
+ * @summary Unlock cluster account
1326
+ * @param {RdbmsApiUnlockAccountRequest} requestParameters Request parameters.
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ */
1330
+ unlockAccount(requestParameters: RdbmsApiUnlockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1331
+ return localVarFp.unlockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
1332
+ },
1175
1333
  /**
1176
1334
  * update an account in cluster
1177
1335
  * @summary update cluster account
@@ -1320,6 +1478,26 @@ export interface RdbmsApiInterface {
1320
1478
  */
1321
1479
  listSessions(requestParameters: RdbmsApiListSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DmsSession>>;
1322
1480
 
1481
+ /**
1482
+ * lock an account in cluster
1483
+ * @summary Lock cluster account
1484
+ * @param {RdbmsApiLockAccountRequest} requestParameters Request parameters.
1485
+ * @param {*} [options] Override http request option.
1486
+ * @throws {RequiredError}
1487
+ * @memberof RdbmsApiInterface
1488
+ */
1489
+ lockAccount(requestParameters: RdbmsApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1490
+
1491
+ /**
1492
+ * unlock an account in cluster
1493
+ * @summary Unlock cluster account
1494
+ * @param {RdbmsApiUnlockAccountRequest} requestParameters Request parameters.
1495
+ * @param {*} [options] Override http request option.
1496
+ * @throws {RequiredError}
1497
+ * @memberof RdbmsApiInterface
1498
+ */
1499
+ unlockAccount(requestParameters: RdbmsApiUnlockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1500
+
1323
1501
  /**
1324
1502
  * update an account in cluster
1325
1503
  * @summary update cluster account
@@ -1744,6 +1922,76 @@ export interface RdbmsApiListSessionsRequest {
1744
1922
  readonly all?: boolean
1745
1923
  }
1746
1924
 
1925
+ /**
1926
+ * Request parameters for lockAccount operation in RdbmsApi.
1927
+ * @export
1928
+ * @interface RdbmsApiLockAccountRequest
1929
+ */
1930
+ export interface RdbmsApiLockAccountRequest {
1931
+ /**
1932
+ * name of the engine
1933
+ * @type {string}
1934
+ * @memberof RdbmsApiLockAccount
1935
+ */
1936
+ readonly engineName: string
1937
+
1938
+ /**
1939
+ * name of the organization
1940
+ * @type {string}
1941
+ * @memberof RdbmsApiLockAccount
1942
+ */
1943
+ readonly orgName: string
1944
+
1945
+ /**
1946
+ * name of the cluster
1947
+ * @type {string}
1948
+ * @memberof RdbmsApiLockAccount
1949
+ */
1950
+ readonly clusterName: string
1951
+
1952
+ /**
1953
+ * name of the account
1954
+ * @type {string}
1955
+ * @memberof RdbmsApiLockAccount
1956
+ */
1957
+ readonly accountName: string
1958
+ }
1959
+
1960
+ /**
1961
+ * Request parameters for unlockAccount operation in RdbmsApi.
1962
+ * @export
1963
+ * @interface RdbmsApiUnlockAccountRequest
1964
+ */
1965
+ export interface RdbmsApiUnlockAccountRequest {
1966
+ /**
1967
+ * name of the engine
1968
+ * @type {string}
1969
+ * @memberof RdbmsApiUnlockAccount
1970
+ */
1971
+ readonly engineName: string
1972
+
1973
+ /**
1974
+ * name of the organization
1975
+ * @type {string}
1976
+ * @memberof RdbmsApiUnlockAccount
1977
+ */
1978
+ readonly orgName: string
1979
+
1980
+ /**
1981
+ * name of the cluster
1982
+ * @type {string}
1983
+ * @memberof RdbmsApiUnlockAccount
1984
+ */
1985
+ readonly clusterName: string
1986
+
1987
+ /**
1988
+ * name of the account
1989
+ * @type {string}
1990
+ * @memberof RdbmsApiUnlockAccount
1991
+ */
1992
+ readonly accountName: string
1993
+ }
1994
+
1747
1995
  /**
1748
1996
  * Request parameters for updateAccount operation in RdbmsApi.
1749
1997
  * @export
@@ -2008,6 +2256,30 @@ export class RdbmsApi extends BaseAPI implements RdbmsApiInterface {
2008
2256
  return RdbmsApiFp(this.configuration).listSessions(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.all, options).then((request) => request(this.axios, this.basePath));
2009
2257
  }
2010
2258
 
2259
+ /**
2260
+ * lock an account in cluster
2261
+ * @summary Lock cluster account
2262
+ * @param {RdbmsApiLockAccountRequest} requestParameters Request parameters.
2263
+ * @param {*} [options] Override http request option.
2264
+ * @throws {RequiredError}
2265
+ * @memberof RdbmsApi
2266
+ */
2267
+ public lockAccount(requestParameters: RdbmsApiLockAccountRequest, options?: RawAxiosRequestConfig) {
2268
+ return RdbmsApiFp(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2269
+ }
2270
+
2271
+ /**
2272
+ * unlock an account in cluster
2273
+ * @summary Unlock cluster account
2274
+ * @param {RdbmsApiUnlockAccountRequest} requestParameters Request parameters.
2275
+ * @param {*} [options] Override http request option.
2276
+ * @throws {RequiredError}
2277
+ * @memberof RdbmsApi
2278
+ */
2279
+ public unlockAccount(requestParameters: RdbmsApiUnlockAccountRequest, options?: RawAxiosRequestConfig) {
2280
+ return RdbmsApiFp(this.configuration).unlockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2281
+ }
2282
+
2011
2283
  /**
2012
2284
  * update an account in cluster
2013
2285
  * @summary update cluster account