kb-cloud-client-typescript 2.2.70 → 2.2.72

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 (171) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/elasticsearch-api.d.ts +1221 -0
  6. package/dist/adminapi/apis/elasticsearch-api.d.ts.map +1 -0
  7. package/dist/adminapi/apis/elasticsearch-api.js +1332 -0
  8. package/dist/adminapi/apis/elasticsearch-api.js.map +1 -0
  9. package/dist/adminapi/apis/shared-api.d.ts +1187 -14
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +1402 -134
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/account-option.d.ts +18 -0
  14. package/dist/adminapi/models/account-option.d.ts.map +1 -1
  15. package/dist/adminapi/models/esput-security-user-request.d.ts +63 -0
  16. package/dist/adminapi/models/esput-security-user-request.d.ts.map +1 -0
  17. package/dist/adminapi/models/esput-security-user-request.js +16 -0
  18. package/dist/adminapi/models/esput-security-user-request.js.map +1 -0
  19. package/dist/adminapi/models/essecurity-application-privileges.d.ts +37 -0
  20. package/dist/adminapi/models/essecurity-application-privileges.d.ts.map +1 -0
  21. package/dist/adminapi/models/essecurity-application-privileges.js +16 -0
  22. package/dist/adminapi/models/essecurity-application-privileges.js.map +1 -0
  23. package/dist/adminapi/models/essecurity-field-security.d.ts +31 -0
  24. package/dist/adminapi/models/essecurity-field-security.d.ts.map +1 -0
  25. package/dist/adminapi/models/essecurity-field-security.js +16 -0
  26. package/dist/adminapi/models/essecurity-field-security.js.map +1 -0
  27. package/dist/adminapi/models/essecurity-index-privileges.d.ts +50 -0
  28. package/dist/adminapi/models/essecurity-index-privileges.d.ts.map +1 -0
  29. package/dist/adminapi/models/essecurity-index-privileges.js +16 -0
  30. package/dist/adminapi/models/essecurity-index-privileges.js.map +1 -0
  31. package/dist/adminapi/models/essecurity-password-request.d.ts +25 -0
  32. package/dist/adminapi/models/essecurity-password-request.d.ts.map +1 -0
  33. package/dist/adminapi/models/essecurity-password-request.js +16 -0
  34. package/dist/adminapi/models/essecurity-password-request.js.map +1 -0
  35. package/dist/adminapi/models/essecurity-remote-cluster-privileges.d.ts +31 -0
  36. package/dist/adminapi/models/essecurity-remote-cluster-privileges.d.ts.map +1 -0
  37. package/dist/adminapi/models/essecurity-remote-cluster-privileges.js +16 -0
  38. package/dist/adminapi/models/essecurity-remote-cluster-privileges.js.map +1 -0
  39. package/dist/adminapi/models/essecurity-remote-index-privileges.d.ts +56 -0
  40. package/dist/adminapi/models/essecurity-remote-index-privileges.d.ts.map +1 -0
  41. package/dist/adminapi/models/essecurity-remote-index-privileges.js +16 -0
  42. package/dist/adminapi/models/essecurity-remote-index-privileges.js.map +1 -0
  43. package/dist/adminapi/models/essecurity-role-descriptor.d.ts +97 -0
  44. package/dist/adminapi/models/essecurity-role-descriptor.d.ts.map +1 -0
  45. package/dist/adminapi/models/essecurity-role-descriptor.js +16 -0
  46. package/dist/adminapi/models/essecurity-role-descriptor.js.map +1 -0
  47. package/dist/adminapi/models/essecurity-role-mapping.d.ts +54 -0
  48. package/dist/adminapi/models/essecurity-role-mapping.d.ts.map +1 -0
  49. package/dist/adminapi/models/essecurity-role-mapping.js +16 -0
  50. package/dist/adminapi/models/essecurity-role-mapping.js.map +1 -0
  51. package/dist/adminapi/models/essecurity-role-template-format.d.ts +22 -0
  52. package/dist/adminapi/models/essecurity-role-template-format.d.ts.map +1 -0
  53. package/dist/adminapi/models/essecurity-role-template-format.js +26 -0
  54. package/dist/adminapi/models/essecurity-role-template-format.js.map +1 -0
  55. package/dist/adminapi/models/essecurity-role-template.d.ts +34 -0
  56. package/dist/adminapi/models/essecurity-role-template.d.ts.map +1 -0
  57. package/dist/adminapi/models/essecurity-role-template.js +16 -0
  58. package/dist/adminapi/models/essecurity-role-template.js.map +1 -0
  59. package/dist/adminapi/models/essecurity-user.d.ts +51 -0
  60. package/dist/adminapi/models/essecurity-user.d.ts.map +1 -0
  61. package/dist/adminapi/models/essecurity-user.js +16 -0
  62. package/dist/adminapi/models/essecurity-user.js.map +1 -0
  63. package/dist/adminapi/models/index.d.ts +12 -0
  64. package/dist/adminapi/models/index.d.ts.map +1 -1
  65. package/dist/adminapi/models/index.js +12 -0
  66. package/dist/adminapi/models/index.js.map +1 -1
  67. package/dist/openapi/api.d.ts +1 -0
  68. package/dist/openapi/api.d.ts.map +1 -1
  69. package/dist/openapi/api.js +1 -0
  70. package/dist/openapi/api.js.map +1 -1
  71. package/dist/openapi/apis/elasticsearch-api.d.ts +1221 -0
  72. package/dist/openapi/apis/elasticsearch-api.d.ts.map +1 -0
  73. package/dist/openapi/apis/elasticsearch-api.js +1332 -0
  74. package/dist/openapi/apis/elasticsearch-api.js.map +1 -0
  75. package/dist/openapi/apis/shared-api.d.ts +1187 -14
  76. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  77. package/dist/openapi/apis/shared-api.js +1407 -139
  78. package/dist/openapi/apis/shared-api.js.map +1 -1
  79. package/dist/openapi/models/account-option.d.ts +18 -0
  80. package/dist/openapi/models/account-option.d.ts.map +1 -1
  81. package/dist/openapi/models/esput-security-user-request.d.ts +63 -0
  82. package/dist/openapi/models/esput-security-user-request.d.ts.map +1 -0
  83. package/dist/openapi/models/esput-security-user-request.js +16 -0
  84. package/dist/openapi/models/esput-security-user-request.js.map +1 -0
  85. package/dist/openapi/models/essecurity-application-privileges.d.ts +37 -0
  86. package/dist/openapi/models/essecurity-application-privileges.d.ts.map +1 -0
  87. package/dist/openapi/models/essecurity-application-privileges.js +16 -0
  88. package/dist/openapi/models/essecurity-application-privileges.js.map +1 -0
  89. package/dist/openapi/models/essecurity-field-security.d.ts +31 -0
  90. package/dist/openapi/models/essecurity-field-security.d.ts.map +1 -0
  91. package/dist/openapi/models/essecurity-field-security.js +16 -0
  92. package/dist/openapi/models/essecurity-field-security.js.map +1 -0
  93. package/dist/openapi/models/essecurity-index-privileges.d.ts +50 -0
  94. package/dist/openapi/models/essecurity-index-privileges.d.ts.map +1 -0
  95. package/dist/openapi/models/essecurity-index-privileges.js +16 -0
  96. package/dist/openapi/models/essecurity-index-privileges.js.map +1 -0
  97. package/dist/openapi/models/essecurity-password-request.d.ts +25 -0
  98. package/dist/openapi/models/essecurity-password-request.d.ts.map +1 -0
  99. package/dist/openapi/models/essecurity-password-request.js +16 -0
  100. package/dist/openapi/models/essecurity-password-request.js.map +1 -0
  101. package/dist/openapi/models/essecurity-remote-cluster-privileges.d.ts +31 -0
  102. package/dist/openapi/models/essecurity-remote-cluster-privileges.d.ts.map +1 -0
  103. package/dist/openapi/models/essecurity-remote-cluster-privileges.js +16 -0
  104. package/dist/openapi/models/essecurity-remote-cluster-privileges.js.map +1 -0
  105. package/dist/openapi/models/essecurity-remote-index-privileges.d.ts +56 -0
  106. package/dist/openapi/models/essecurity-remote-index-privileges.d.ts.map +1 -0
  107. package/dist/openapi/models/essecurity-remote-index-privileges.js +16 -0
  108. package/dist/openapi/models/essecurity-remote-index-privileges.js.map +1 -0
  109. package/dist/openapi/models/essecurity-role-descriptor.d.ts +97 -0
  110. package/dist/openapi/models/essecurity-role-descriptor.d.ts.map +1 -0
  111. package/dist/openapi/models/essecurity-role-descriptor.js +16 -0
  112. package/dist/openapi/models/essecurity-role-descriptor.js.map +1 -0
  113. package/dist/openapi/models/essecurity-role-mapping.d.ts +54 -0
  114. package/dist/openapi/models/essecurity-role-mapping.d.ts.map +1 -0
  115. package/dist/openapi/models/essecurity-role-mapping.js +16 -0
  116. package/dist/openapi/models/essecurity-role-mapping.js.map +1 -0
  117. package/dist/openapi/models/essecurity-role-template-format.d.ts +22 -0
  118. package/dist/openapi/models/essecurity-role-template-format.d.ts.map +1 -0
  119. package/dist/openapi/models/essecurity-role-template-format.js +26 -0
  120. package/dist/openapi/models/essecurity-role-template-format.js.map +1 -0
  121. package/dist/openapi/models/essecurity-role-template.d.ts +34 -0
  122. package/dist/openapi/models/essecurity-role-template.d.ts.map +1 -0
  123. package/dist/openapi/models/essecurity-role-template.js +16 -0
  124. package/dist/openapi/models/essecurity-role-template.js.map +1 -0
  125. package/dist/openapi/models/essecurity-user.d.ts +51 -0
  126. package/dist/openapi/models/essecurity-user.d.ts.map +1 -0
  127. package/dist/openapi/models/essecurity-user.js +16 -0
  128. package/dist/openapi/models/essecurity-user.js.map +1 -0
  129. package/dist/openapi/models/index.d.ts +12 -0
  130. package/dist/openapi/models/index.d.ts.map +1 -1
  131. package/dist/openapi/models/index.js +12 -0
  132. package/dist/openapi/models/index.js.map +1 -1
  133. package/package.json +1 -1
  134. package/src/adminapi/.openapi-generator/FILES +13 -0
  135. package/src/adminapi/api.ts +1 -0
  136. package/src/adminapi/apis/elasticsearch-api.ts +2072 -0
  137. package/src/adminapi/apis/shared-api.ts +2141 -139
  138. package/src/adminapi/models/account-option.ts +18 -0
  139. package/src/adminapi/models/esput-security-user-request.ts +66 -0
  140. package/src/adminapi/models/essecurity-application-privileges.ts +42 -0
  141. package/src/adminapi/models/essecurity-field-security.ts +36 -0
  142. package/src/adminapi/models/essecurity-index-privileges.ts +57 -0
  143. package/src/adminapi/models/essecurity-password-request.ts +30 -0
  144. package/src/adminapi/models/essecurity-remote-cluster-privileges.ts +36 -0
  145. package/src/adminapi/models/essecurity-remote-index-privileges.ts +63 -0
  146. package/src/adminapi/models/essecurity-role-descriptor.ts +102 -0
  147. package/src/adminapi/models/essecurity-role-mapping.ts +57 -0
  148. package/src/adminapi/models/essecurity-role-template-format.ts +31 -0
  149. package/src/adminapi/models/essecurity-role-template.ts +41 -0
  150. package/src/adminapi/models/essecurity-user.ts +54 -0
  151. package/src/adminapi/models/index.ts +12 -0
  152. package/src/adminapi.yaml +874 -0
  153. package/src/openapi/.openapi-generator/FILES +13 -0
  154. package/src/openapi/api.ts +1 -0
  155. package/src/openapi/apis/elasticsearch-api.ts +2072 -0
  156. package/src/openapi/apis/shared-api.ts +2144 -142
  157. package/src/openapi/models/account-option.ts +18 -0
  158. package/src/openapi/models/esput-security-user-request.ts +66 -0
  159. package/src/openapi/models/essecurity-application-privileges.ts +42 -0
  160. package/src/openapi/models/essecurity-field-security.ts +36 -0
  161. package/src/openapi/models/essecurity-index-privileges.ts +57 -0
  162. package/src/openapi/models/essecurity-password-request.ts +30 -0
  163. package/src/openapi/models/essecurity-remote-cluster-privileges.ts +36 -0
  164. package/src/openapi/models/essecurity-remote-index-privileges.ts +63 -0
  165. package/src/openapi/models/essecurity-role-descriptor.ts +102 -0
  166. package/src/openapi/models/essecurity-role-mapping.ts +57 -0
  167. package/src/openapi/models/essecurity-role-template-format.ts +31 -0
  168. package/src/openapi/models/essecurity-role-template.ts +41 -0
  169. package/src/openapi/models/essecurity-user.ts +54 -0
  170. package/src/openapi/models/index.ts +12 -0
  171. package/src/openapi.yaml +874 -0
@@ -443,6 +443,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
443
443
  options: localVarRequestOptions,
444
444
  };
445
445
  },
446
+ /**
447
+ *
448
+ * @summary Change Elasticsearch account password
449
+ * @param {string} orgName
450
+ * @param {string} clusterName
451
+ * @param {string} username
452
+ * @param {ESSecurityPasswordRequest} body
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ changeElasticsearchSecurityUserPassword: async (orgName, clusterName, username, body, options = {}) => {
457
+ // verify required parameter 'orgName' is not null or undefined
458
+ (0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'orgName', orgName);
459
+ // verify required parameter 'clusterName' is not null or undefined
460
+ (0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'clusterName', clusterName);
461
+ // verify required parameter 'username' is not null or undefined
462
+ (0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'username', username);
463
+ // verify required parameter 'body' is not null or undefined
464
+ (0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'body', body);
465
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
466
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
467
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
468
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
469
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
470
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
471
+ let baseOptions;
472
+ if (configuration) {
473
+ baseOptions = configuration.baseOptions;
474
+ }
475
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
476
+ const localVarHeaderParameter = {};
477
+ const localVarQueryParameter = {};
478
+ // authentication BearerToken required
479
+ // http bearer authentication required
480
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
481
+ // authentication DigestAuth required
482
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
483
+ localVarHeaderParameter['Content-Type'] = 'application/json';
484
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
485
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
486
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
487
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
488
+ return {
489
+ url: (0, common_1.toPathString)(localVarUrlObj),
490
+ options: localVarRequestOptions,
491
+ };
492
+ },
446
493
  /**
447
494
  *
448
495
  * @summary close the session for the cluster
@@ -1843,6 +1890,132 @@ const SharedApiAxiosParamCreator = function (configuration) {
1843
1890
  options: localVarRequestOptions,
1844
1891
  };
1845
1892
  },
1893
+ /**
1894
+ *
1895
+ * @summary Delete Elasticsearch security role
1896
+ * @param {string} orgName
1897
+ * @param {string} clusterName
1898
+ * @param {string} roleName
1899
+ * @param {*} [options] Override http request option.
1900
+ * @throws {RequiredError}
1901
+ */
1902
+ deleteElasticsearchSecurityRole: async (orgName, clusterName, roleName, options = {}) => {
1903
+ // verify required parameter 'orgName' is not null or undefined
1904
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'orgName', orgName);
1905
+ // verify required parameter 'clusterName' is not null or undefined
1906
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'clusterName', clusterName);
1907
+ // verify required parameter 'roleName' is not null or undefined
1908
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'roleName', roleName);
1909
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
1910
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1911
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1912
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
1913
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1914
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1915
+ let baseOptions;
1916
+ if (configuration) {
1917
+ baseOptions = configuration.baseOptions;
1918
+ }
1919
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1920
+ const localVarHeaderParameter = {};
1921
+ const localVarQueryParameter = {};
1922
+ // authentication BearerToken required
1923
+ // http bearer authentication required
1924
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1925
+ // authentication DigestAuth required
1926
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1927
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1928
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1929
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1930
+ return {
1931
+ url: (0, common_1.toPathString)(localVarUrlObj),
1932
+ options: localVarRequestOptions,
1933
+ };
1934
+ },
1935
+ /**
1936
+ *
1937
+ * @summary Delete Elasticsearch security role mapping
1938
+ * @param {string} orgName
1939
+ * @param {string} clusterName
1940
+ * @param {string} mappingName
1941
+ * @param {*} [options] Override http request option.
1942
+ * @throws {RequiredError}
1943
+ */
1944
+ deleteElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, options = {}) => {
1945
+ // verify required parameter 'orgName' is not null or undefined
1946
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'orgName', orgName);
1947
+ // verify required parameter 'clusterName' is not null or undefined
1948
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
1949
+ // verify required parameter 'mappingName' is not null or undefined
1950
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
1951
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
1952
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1953
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1954
+ .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
1955
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1956
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1957
+ let baseOptions;
1958
+ if (configuration) {
1959
+ baseOptions = configuration.baseOptions;
1960
+ }
1961
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
1962
+ const localVarHeaderParameter = {};
1963
+ const localVarQueryParameter = {};
1964
+ // authentication BearerToken required
1965
+ // http bearer authentication required
1966
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1967
+ // authentication DigestAuth required
1968
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1969
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1970
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1971
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1972
+ return {
1973
+ url: (0, common_1.toPathString)(localVarUrlObj),
1974
+ options: localVarRequestOptions,
1975
+ };
1976
+ },
1977
+ /**
1978
+ *
1979
+ * @summary Delete Elasticsearch security user
1980
+ * @param {string} orgName
1981
+ * @param {string} clusterName
1982
+ * @param {string} username
1983
+ * @param {*} [options] Override http request option.
1984
+ * @throws {RequiredError}
1985
+ */
1986
+ deleteElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
1987
+ // verify required parameter 'orgName' is not null or undefined
1988
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'orgName', orgName);
1989
+ // verify required parameter 'clusterName' is not null or undefined
1990
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'clusterName', clusterName);
1991
+ // verify required parameter 'username' is not null or undefined
1992
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'username', username);
1993
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
1994
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1995
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1996
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
1997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1998
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1999
+ let baseOptions;
2000
+ if (configuration) {
2001
+ baseOptions = configuration.baseOptions;
2002
+ }
2003
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
2004
+ const localVarHeaderParameter = {};
2005
+ const localVarQueryParameter = {};
2006
+ // authentication BearerToken required
2007
+ // http bearer authentication required
2008
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2009
+ // authentication DigestAuth required
2010
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
2011
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2012
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2013
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2014
+ return {
2015
+ url: (0, common_1.toPathString)(localVarUrlObj),
2016
+ options: localVarRequestOptions,
2017
+ };
2018
+ },
1846
2019
  /**
1847
2020
  * delete an hive account in cluster
1848
2021
  * @summary Delete hive account
@@ -3846,23 +4019,19 @@ const SharedApiAxiosParamCreator = function (configuration) {
3846
4019
  };
3847
4020
  },
3848
4021
  /**
3849
- * get engine available console
3850
- * @summary get engine available console
3851
- * @param {string} engineName name of the engine
3852
- * @param {string} orgName name of the Org
3853
- * @param {string} clusterName name of the cluster
4022
+ *
4023
+ * @summary Get Elasticsearch builtin privileges
4024
+ * @param {string} orgName
4025
+ * @param {string} clusterName
3854
4026
  * @param {*} [options] Override http request option.
3855
4027
  * @throws {RequiredError}
3856
4028
  */
3857
- getEngineAvailableConsole: async (engineName, orgName, clusterName, options = {}) => {
3858
- // verify required parameter 'engineName' is not null or undefined
3859
- (0, common_1.assertParamExists)('getEngineAvailableConsole', 'engineName', engineName);
4029
+ getElasticsearchBuiltinPrivileges: async (orgName, clusterName, options = {}) => {
3860
4030
  // verify required parameter 'orgName' is not null or undefined
3861
- (0, common_1.assertParamExists)('getEngineAvailableConsole', 'orgName', orgName);
4031
+ (0, common_1.assertParamExists)('getElasticsearchBuiltinPrivileges', 'orgName', orgName);
3862
4032
  // verify required parameter 'clusterName' is not null or undefined
3863
- (0, common_1.assertParamExists)('getEngineAvailableConsole', 'clusterName', clusterName);
3864
- const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/console`
3865
- .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
4033
+ (0, common_1.assertParamExists)('getElasticsearchBuiltinPrivileges', 'clusterName', clusterName);
4034
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/privileges/builtin`
3866
4035
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3867
4036
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
3868
4037
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -3888,21 +4057,25 @@ const SharedApiAxiosParamCreator = function (configuration) {
3888
4057
  };
3889
4058
  },
3890
4059
  /**
3891
- * Get Hive accounts
3892
- * @summary Get Hive accounts
3893
- * @param {string} orgName The name of organization
3894
- * @param {string} clusterName The name of cluster
4060
+ *
4061
+ * @summary Get Elasticsearch security role
4062
+ * @param {string} orgName
4063
+ * @param {string} clusterName
4064
+ * @param {string} roleName
3895
4065
  * @param {*} [options] Override http request option.
3896
4066
  * @throws {RequiredError}
3897
4067
  */
3898
- getHiveAccounts: async (orgName, clusterName, options = {}) => {
4068
+ getElasticsearchSecurityRole: async (orgName, clusterName, roleName, options = {}) => {
3899
4069
  // verify required parameter 'orgName' is not null or undefined
3900
- (0, common_1.assertParamExists)('getHiveAccounts', 'orgName', orgName);
4070
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'orgName', orgName);
3901
4071
  // verify required parameter 'clusterName' is not null or undefined
3902
- (0, common_1.assertParamExists)('getHiveAccounts', 'clusterName', clusterName);
3903
- const localVarPath = `/api/v1/data/hive/organizations/{orgName}/clusters/{clusterName}/accounts`
4072
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'clusterName', clusterName);
4073
+ // verify required parameter 'roleName' is not null or undefined
4074
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'roleName', roleName);
4075
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
3904
4076
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3905
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
4077
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
4078
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
3906
4079
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3907
4080
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3908
4081
  let baseOptions;
@@ -3926,25 +4099,25 @@ const SharedApiAxiosParamCreator = function (configuration) {
3926
4099
  };
3927
4100
  },
3928
4101
  /**
3929
- * Retrieves detailed information about a specific data import preflight task by its ID
3930
- * @summary Get preflight task details
3931
- * @param {string} orgName Organization name
3932
- * @param {string} clusterName Cluster name
3933
- * @param {string} taskId Preflight task ID
4102
+ *
4103
+ * @summary Get Elasticsearch security role mapping
4104
+ * @param {string} orgName
4105
+ * @param {string} clusterName
4106
+ * @param {string} mappingName
3934
4107
  * @param {*} [options] Override http request option.
3935
4108
  * @throws {RequiredError}
3936
4109
  */
3937
- getImportPreflightTask: async (orgName, clusterName, taskId, options = {}) => {
4110
+ getElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, options = {}) => {
3938
4111
  // verify required parameter 'orgName' is not null or undefined
3939
- (0, common_1.assertParamExists)('getImportPreflightTask', 'orgName', orgName);
4112
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'orgName', orgName);
3940
4113
  // verify required parameter 'clusterName' is not null or undefined
3941
- (0, common_1.assertParamExists)('getImportPreflightTask', 'clusterName', clusterName);
3942
- // verify required parameter 'taskId' is not null or undefined
3943
- (0, common_1.assertParamExists)('getImportPreflightTask', 'taskId', taskId);
3944
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/import/preflight/{taskId}`
4114
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
4115
+ // verify required parameter 'mappingName' is not null or undefined
4116
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
4117
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
3945
4118
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3946
4119
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3947
- .replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
4120
+ .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
3948
4121
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3949
4122
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3950
4123
  let baseOptions;
@@ -3968,25 +4141,25 @@ const SharedApiAxiosParamCreator = function (configuration) {
3968
4141
  };
3969
4142
  },
3970
4143
  /**
3971
- * Gets detailed information about a specific import task by its ID
3972
- * @summary Get import task details
3973
- * @param {string} orgName Organization name
3974
- * @param {string} clusterName Cluster name
3975
- * @param {string} id Import task ID
4144
+ *
4145
+ * @summary Get Elasticsearch security user
4146
+ * @param {string} orgName
4147
+ * @param {string} clusterName
4148
+ * @param {string} username
3976
4149
  * @param {*} [options] Override http request option.
3977
4150
  * @throws {RequiredError}
3978
4151
  */
3979
- getImportTask: async (orgName, clusterName, id, options = {}) => {
4152
+ getElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
3980
4153
  // verify required parameter 'orgName' is not null or undefined
3981
- (0, common_1.assertParamExists)('getImportTask', 'orgName', orgName);
4154
+ (0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'orgName', orgName);
3982
4155
  // verify required parameter 'clusterName' is not null or undefined
3983
- (0, common_1.assertParamExists)('getImportTask', 'clusterName', clusterName);
3984
- // verify required parameter 'id' is not null or undefined
3985
- (0, common_1.assertParamExists)('getImportTask', 'id', id);
3986
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/import/{id}`
4156
+ (0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'clusterName', clusterName);
4157
+ // verify required parameter 'username' is not null or undefined
4158
+ (0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'username', username);
4159
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
3987
4160
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
3988
4161
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
3989
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4162
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
3990
4163
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3991
4164
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3992
4165
  let baseOptions;
@@ -4010,19 +4183,23 @@ const SharedApiAxiosParamCreator = function (configuration) {
4010
4183
  };
4011
4184
  },
4012
4185
  /**
4013
- *
4014
- * @summary Get instaces metrics in cluster
4186
+ * get engine available console
4187
+ * @summary get engine available console
4188
+ * @param {string} engineName name of the engine
4015
4189
  * @param {string} orgName name of the Org
4016
- * @param {string} clusterName name of the Cluster
4190
+ * @param {string} clusterName name of the cluster
4017
4191
  * @param {*} [options] Override http request option.
4018
4192
  * @throws {RequiredError}
4019
4193
  */
4020
- getInstacesMetrics: async (orgName, clusterName, options = {}) => {
4194
+ getEngineAvailableConsole: async (engineName, orgName, clusterName, options = {}) => {
4195
+ // verify required parameter 'engineName' is not null or undefined
4196
+ (0, common_1.assertParamExists)('getEngineAvailableConsole', 'engineName', engineName);
4021
4197
  // verify required parameter 'orgName' is not null or undefined
4022
- (0, common_1.assertParamExists)('getInstacesMetrics', 'orgName', orgName);
4198
+ (0, common_1.assertParamExists)('getEngineAvailableConsole', 'orgName', orgName);
4023
4199
  // verify required parameter 'clusterName' is not null or undefined
4024
- (0, common_1.assertParamExists)('getInstacesMetrics', 'clusterName', clusterName);
4025
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/instances/metrics`
4200
+ (0, common_1.assertParamExists)('getEngineAvailableConsole', 'clusterName', clusterName);
4201
+ const localVarPath = `/api/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/console`
4202
+ .replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
4026
4203
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4027
4204
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
4028
4205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -4048,28 +4225,21 @@ const SharedApiAxiosParamCreator = function (configuration) {
4048
4225
  };
4049
4226
  },
4050
4227
  /**
4051
- * read log of the specified cluster instance
4052
- * @summary Tail cluster instance container log
4053
- * @param {string} orgName name of the Org
4054
- * @param {string} clusterName name of the KubeBlocks cluster
4055
- * @param {string} instanceName name of the instance
4056
- * @param {string} [container] specify container name to get specific container log, if not specified, will return the log of the default container
4057
- * @param {number} [sinceSeconds] A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
4058
- * @param {number} [tailLines] If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
4228
+ * Get Hive accounts
4229
+ * @summary Get Hive accounts
4230
+ * @param {string} orgName The name of organization
4231
+ * @param {string} clusterName The name of cluster
4059
4232
  * @param {*} [options] Override http request option.
4060
4233
  * @throws {RequiredError}
4061
4234
  */
4062
- getInstanceContainerLog: async (orgName, clusterName, instanceName, container, sinceSeconds, tailLines, options = {}) => {
4235
+ getHiveAccounts: async (orgName, clusterName, options = {}) => {
4063
4236
  // verify required parameter 'orgName' is not null or undefined
4064
- (0, common_1.assertParamExists)('getInstanceContainerLog', 'orgName', orgName);
4237
+ (0, common_1.assertParamExists)('getHiveAccounts', 'orgName', orgName);
4065
4238
  // verify required parameter 'clusterName' is not null or undefined
4066
- (0, common_1.assertParamExists)('getInstanceContainerLog', 'clusterName', clusterName);
4067
- // verify required parameter 'instanceName' is not null or undefined
4068
- (0, common_1.assertParamExists)('getInstanceContainerLog', 'instanceName', instanceName);
4069
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/instances/{instanceName}/log`
4239
+ (0, common_1.assertParamExists)('getHiveAccounts', 'clusterName', clusterName);
4240
+ const localVarPath = `/api/v1/data/hive/organizations/{orgName}/clusters/{clusterName}/accounts`
4070
4241
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4071
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
4072
- .replace(`{${"instanceName"}}`, encodeURIComponent(String(instanceName)));
4242
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
4073
4243
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4074
4244
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4075
4245
  let baseOptions;
@@ -4084,15 +4254,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
4084
4254
  await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4085
4255
  // authentication DigestAuth required
4086
4256
  await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4087
- if (container !== undefined) {
4088
- localVarQueryParameter['container'] = container;
4089
- }
4090
- if (sinceSeconds !== undefined) {
4091
- localVarQueryParameter['sinceSeconds'] = sinceSeconds;
4092
- }
4093
- if (tailLines !== undefined) {
4094
- localVarQueryParameter['tailLines'] = tailLines;
4095
- }
4096
4257
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4097
4258
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4098
4259
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -4102,11 +4263,187 @@ const SharedApiAxiosParamCreator = function (configuration) {
4102
4263
  };
4103
4264
  },
4104
4265
  /**
4105
- *
4106
- * @summary Get all configs of a broker
4107
- * @param {string} orgName The name of organization
4108
- * @param {string} clusterName The name of cluster
4109
- * @param {number} brokerId The id of broker
4266
+ * Retrieves detailed information about a specific data import preflight task by its ID
4267
+ * @summary Get preflight task details
4268
+ * @param {string} orgName Organization name
4269
+ * @param {string} clusterName Cluster name
4270
+ * @param {string} taskId Preflight task ID
4271
+ * @param {*} [options] Override http request option.
4272
+ * @throws {RequiredError}
4273
+ */
4274
+ getImportPreflightTask: async (orgName, clusterName, taskId, options = {}) => {
4275
+ // verify required parameter 'orgName' is not null or undefined
4276
+ (0, common_1.assertParamExists)('getImportPreflightTask', 'orgName', orgName);
4277
+ // verify required parameter 'clusterName' is not null or undefined
4278
+ (0, common_1.assertParamExists)('getImportPreflightTask', 'clusterName', clusterName);
4279
+ // verify required parameter 'taskId' is not null or undefined
4280
+ (0, common_1.assertParamExists)('getImportPreflightTask', 'taskId', taskId);
4281
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/import/preflight/{taskId}`
4282
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4283
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
4284
+ .replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
4285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4286
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4287
+ let baseOptions;
4288
+ if (configuration) {
4289
+ baseOptions = configuration.baseOptions;
4290
+ }
4291
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4292
+ const localVarHeaderParameter = {};
4293
+ const localVarQueryParameter = {};
4294
+ // authentication BearerToken required
4295
+ // http bearer authentication required
4296
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4297
+ // authentication DigestAuth required
4298
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4299
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4300
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4301
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4302
+ return {
4303
+ url: (0, common_1.toPathString)(localVarUrlObj),
4304
+ options: localVarRequestOptions,
4305
+ };
4306
+ },
4307
+ /**
4308
+ * Gets detailed information about a specific import task by its ID
4309
+ * @summary Get import task details
4310
+ * @param {string} orgName Organization name
4311
+ * @param {string} clusterName Cluster name
4312
+ * @param {string} id Import task ID
4313
+ * @param {*} [options] Override http request option.
4314
+ * @throws {RequiredError}
4315
+ */
4316
+ getImportTask: async (orgName, clusterName, id, options = {}) => {
4317
+ // verify required parameter 'orgName' is not null or undefined
4318
+ (0, common_1.assertParamExists)('getImportTask', 'orgName', orgName);
4319
+ // verify required parameter 'clusterName' is not null or undefined
4320
+ (0, common_1.assertParamExists)('getImportTask', 'clusterName', clusterName);
4321
+ // verify required parameter 'id' is not null or undefined
4322
+ (0, common_1.assertParamExists)('getImportTask', 'id', id);
4323
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/import/{id}`
4324
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4325
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
4326
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4328
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4329
+ let baseOptions;
4330
+ if (configuration) {
4331
+ baseOptions = configuration.baseOptions;
4332
+ }
4333
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4334
+ const localVarHeaderParameter = {};
4335
+ const localVarQueryParameter = {};
4336
+ // authentication BearerToken required
4337
+ // http bearer authentication required
4338
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4339
+ // authentication DigestAuth required
4340
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4341
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4343
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4344
+ return {
4345
+ url: (0, common_1.toPathString)(localVarUrlObj),
4346
+ options: localVarRequestOptions,
4347
+ };
4348
+ },
4349
+ /**
4350
+ *
4351
+ * @summary Get instaces metrics in cluster
4352
+ * @param {string} orgName name of the Org
4353
+ * @param {string} clusterName name of the Cluster
4354
+ * @param {*} [options] Override http request option.
4355
+ * @throws {RequiredError}
4356
+ */
4357
+ getInstacesMetrics: async (orgName, clusterName, options = {}) => {
4358
+ // verify required parameter 'orgName' is not null or undefined
4359
+ (0, common_1.assertParamExists)('getInstacesMetrics', 'orgName', orgName);
4360
+ // verify required parameter 'clusterName' is not null or undefined
4361
+ (0, common_1.assertParamExists)('getInstacesMetrics', 'clusterName', clusterName);
4362
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/instances/metrics`
4363
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4364
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
4365
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4366
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4367
+ let baseOptions;
4368
+ if (configuration) {
4369
+ baseOptions = configuration.baseOptions;
4370
+ }
4371
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4372
+ const localVarHeaderParameter = {};
4373
+ const localVarQueryParameter = {};
4374
+ // authentication BearerToken required
4375
+ // http bearer authentication required
4376
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4377
+ // authentication DigestAuth required
4378
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4379
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4381
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4382
+ return {
4383
+ url: (0, common_1.toPathString)(localVarUrlObj),
4384
+ options: localVarRequestOptions,
4385
+ };
4386
+ },
4387
+ /**
4388
+ * read log of the specified cluster instance
4389
+ * @summary Tail cluster instance container log
4390
+ * @param {string} orgName name of the Org
4391
+ * @param {string} clusterName name of the KubeBlocks cluster
4392
+ * @param {string} instanceName name of the instance
4393
+ * @param {string} [container] specify container name to get specific container log, if not specified, will return the log of the default container
4394
+ * @param {number} [sinceSeconds] A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
4395
+ * @param {number} [tailLines] If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
4396
+ * @param {*} [options] Override http request option.
4397
+ * @throws {RequiredError}
4398
+ */
4399
+ getInstanceContainerLog: async (orgName, clusterName, instanceName, container, sinceSeconds, tailLines, options = {}) => {
4400
+ // verify required parameter 'orgName' is not null or undefined
4401
+ (0, common_1.assertParamExists)('getInstanceContainerLog', 'orgName', orgName);
4402
+ // verify required parameter 'clusterName' is not null or undefined
4403
+ (0, common_1.assertParamExists)('getInstanceContainerLog', 'clusterName', clusterName);
4404
+ // verify required parameter 'instanceName' is not null or undefined
4405
+ (0, common_1.assertParamExists)('getInstanceContainerLog', 'instanceName', instanceName);
4406
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/instances/{instanceName}/log`
4407
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
4408
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
4409
+ .replace(`{${"instanceName"}}`, encodeURIComponent(String(instanceName)));
4410
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4411
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4412
+ let baseOptions;
4413
+ if (configuration) {
4414
+ baseOptions = configuration.baseOptions;
4415
+ }
4416
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4417
+ const localVarHeaderParameter = {};
4418
+ const localVarQueryParameter = {};
4419
+ // authentication BearerToken required
4420
+ // http bearer authentication required
4421
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
4422
+ // authentication DigestAuth required
4423
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
4424
+ if (container !== undefined) {
4425
+ localVarQueryParameter['container'] = container;
4426
+ }
4427
+ if (sinceSeconds !== undefined) {
4428
+ localVarQueryParameter['sinceSeconds'] = sinceSeconds;
4429
+ }
4430
+ if (tailLines !== undefined) {
4431
+ localVarQueryParameter['tailLines'] = tailLines;
4432
+ }
4433
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4435
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4436
+ return {
4437
+ url: (0, common_1.toPathString)(localVarUrlObj),
4438
+ options: localVarRequestOptions,
4439
+ };
4440
+ },
4441
+ /**
4442
+ *
4443
+ * @summary Get all configs of a broker
4444
+ * @param {string} orgName The name of organization
4445
+ * @param {string} clusterName The name of cluster
4446
+ * @param {number} brokerId The id of broker
4110
4447
  * @param {*} [options] Override http request option.
4111
4448
  * @throws {RequiredError}
4112
4449
  */
@@ -5623,6 +5960,120 @@ const SharedApiAxiosParamCreator = function (configuration) {
5623
5960
  options: localVarRequestOptions,
5624
5961
  };
5625
5962
  },
5963
+ /**
5964
+ *
5965
+ * @summary List Elasticsearch security role mappings
5966
+ * @param {string} orgName
5967
+ * @param {string} clusterName
5968
+ * @param {*} [options] Override http request option.
5969
+ * @throws {RequiredError}
5970
+ */
5971
+ listElasticsearchSecurityRoleMappings: async (orgName, clusterName, options = {}) => {
5972
+ // verify required parameter 'orgName' is not null or undefined
5973
+ (0, common_1.assertParamExists)('listElasticsearchSecurityRoleMappings', 'orgName', orgName);
5974
+ // verify required parameter 'clusterName' is not null or undefined
5975
+ (0, common_1.assertParamExists)('listElasticsearchSecurityRoleMappings', 'clusterName', clusterName);
5976
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings`
5977
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
5978
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
5979
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5980
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5981
+ let baseOptions;
5982
+ if (configuration) {
5983
+ baseOptions = configuration.baseOptions;
5984
+ }
5985
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5986
+ const localVarHeaderParameter = {};
5987
+ const localVarQueryParameter = {};
5988
+ // authentication BearerToken required
5989
+ // http bearer authentication required
5990
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
5991
+ // authentication DigestAuth required
5992
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
5993
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5994
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5995
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5996
+ return {
5997
+ url: (0, common_1.toPathString)(localVarUrlObj),
5998
+ options: localVarRequestOptions,
5999
+ };
6000
+ },
6001
+ /**
6002
+ *
6003
+ * @summary List Elasticsearch security roles
6004
+ * @param {string} orgName
6005
+ * @param {string} clusterName
6006
+ * @param {*} [options] Override http request option.
6007
+ * @throws {RequiredError}
6008
+ */
6009
+ listElasticsearchSecurityRoles: async (orgName, clusterName, options = {}) => {
6010
+ // verify required parameter 'orgName' is not null or undefined
6011
+ (0, common_1.assertParamExists)('listElasticsearchSecurityRoles', 'orgName', orgName);
6012
+ // verify required parameter 'clusterName' is not null or undefined
6013
+ (0, common_1.assertParamExists)('listElasticsearchSecurityRoles', 'clusterName', clusterName);
6014
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
6015
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6016
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6017
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6018
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6019
+ let baseOptions;
6020
+ if (configuration) {
6021
+ baseOptions = configuration.baseOptions;
6022
+ }
6023
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6024
+ const localVarHeaderParameter = {};
6025
+ const localVarQueryParameter = {};
6026
+ // authentication BearerToken required
6027
+ // http bearer authentication required
6028
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6029
+ // authentication DigestAuth required
6030
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
6031
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6032
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6033
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6034
+ return {
6035
+ url: (0, common_1.toPathString)(localVarUrlObj),
6036
+ options: localVarRequestOptions,
6037
+ };
6038
+ },
6039
+ /**
6040
+ *
6041
+ * @summary List Elasticsearch security users
6042
+ * @param {string} orgName
6043
+ * @param {string} clusterName
6044
+ * @param {*} [options] Override http request option.
6045
+ * @throws {RequiredError}
6046
+ */
6047
+ listElasticsearchSecurityUsers: async (orgName, clusterName, options = {}) => {
6048
+ // verify required parameter 'orgName' is not null or undefined
6049
+ (0, common_1.assertParamExists)('listElasticsearchSecurityUsers', 'orgName', orgName);
6050
+ // verify required parameter 'clusterName' is not null or undefined
6051
+ (0, common_1.assertParamExists)('listElasticsearchSecurityUsers', 'clusterName', clusterName);
6052
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts`
6053
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
6054
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
6055
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6056
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
6057
+ let baseOptions;
6058
+ if (configuration) {
6059
+ baseOptions = configuration.baseOptions;
6060
+ }
6061
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
6062
+ const localVarHeaderParameter = {};
6063
+ const localVarQueryParameter = {};
6064
+ // authentication BearerToken required
6065
+ // http bearer authentication required
6066
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
6067
+ // authentication DigestAuth required
6068
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
6069
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
6070
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6071
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
6072
+ return {
6073
+ url: (0, common_1.toPathString)(localVarUrlObj),
6074
+ options: localVarRequestOptions,
6075
+ };
6076
+ },
5626
6077
  /**
5627
6078
  *
5628
6079
  * @summary List cluster endpoints
@@ -7374,6 +7825,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
7374
7825
  options: localVarRequestOptions,
7375
7826
  };
7376
7827
  },
7828
+ /**
7829
+ *
7830
+ * @summary Lock Elasticsearch account
7831
+ * @param {string} orgName
7832
+ * @param {string} clusterName
7833
+ * @param {string} username
7834
+ * @param {*} [options] Override http request option.
7835
+ * @throws {RequiredError}
7836
+ */
7837
+ lockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
7838
+ // verify required parameter 'orgName' is not null or undefined
7839
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'orgName', orgName);
7840
+ // verify required parameter 'clusterName' is not null or undefined
7841
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'clusterName', clusterName);
7842
+ // verify required parameter 'username' is not null or undefined
7843
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'username', username);
7844
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock`
7845
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
7846
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
7847
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
7848
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7849
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7850
+ let baseOptions;
7851
+ if (configuration) {
7852
+ baseOptions = configuration.baseOptions;
7853
+ }
7854
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
7855
+ const localVarHeaderParameter = {};
7856
+ const localVarQueryParameter = {};
7857
+ // authentication BearerToken required
7858
+ // http bearer authentication required
7859
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7860
+ // authentication DigestAuth required
7861
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
7862
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7863
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7864
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7865
+ return {
7866
+ url: (0, common_1.toPathString)(localVarUrlObj),
7867
+ options: localVarRequestOptions,
7868
+ };
7869
+ },
7377
7870
  /**
7378
7871
  *
7379
7872
  * @summary batch modify database tde status
@@ -7575,31 +8068,164 @@ const SharedApiAxiosParamCreator = function (configuration) {
7575
8068
  };
7576
8069
  },
7577
8070
  /**
7578
- * Only authenticated organization admins can update the member\'s role
7579
- * @summary Update member role
8071
+ * Only authenticated organization admins can update the member\'s role
8072
+ * @summary Update member role
8073
+ * @param {string} orgName name of the Org
8074
+ * @param {string} memberId ID of the member
8075
+ * @param {OrgMemberUpdate} body
8076
+ * @param {*} [options] Override http request option.
8077
+ * @throws {RequiredError}
8078
+ */
8079
+ patchOrgMember: async (orgName, memberId, body, options = {}) => {
8080
+ // verify required parameter 'orgName' is not null or undefined
8081
+ (0, common_1.assertParamExists)('patchOrgMember', 'orgName', orgName);
8082
+ // verify required parameter 'memberId' is not null or undefined
8083
+ (0, common_1.assertParamExists)('patchOrgMember', 'memberId', memberId);
8084
+ // verify required parameter 'body' is not null or undefined
8085
+ (0, common_1.assertParamExists)('patchOrgMember', 'body', body);
8086
+ const localVarPath = `/api/v1/organizations/{orgName}/members/{memberId}`
8087
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
8088
+ .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
8089
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8090
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8091
+ let baseOptions;
8092
+ if (configuration) {
8093
+ baseOptions = configuration.baseOptions;
8094
+ }
8095
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
8096
+ const localVarHeaderParameter = {};
8097
+ const localVarQueryParameter = {};
8098
+ // authentication BearerToken required
8099
+ // http bearer authentication required
8100
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8101
+ // authentication DigestAuth required
8102
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8103
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8104
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8106
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8107
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
8108
+ return {
8109
+ url: (0, common_1.toPathString)(localVarUrlObj),
8110
+ options: localVarRequestOptions,
8111
+ };
8112
+ },
8113
+ /**
8114
+ * Update a parameter of an organization
8115
+ * @summary Update a parameter of an organization
8116
+ * @param {string} orgName The name of the organization
8117
+ * @param {string} parameterName The name of the parameter
8118
+ * @param {OrgParameter} orgParameter
8119
+ * @param {*} [options] Override http request option.
8120
+ * @throws {RequiredError}
8121
+ */
8122
+ patchOrgParameter: async (orgName, parameterName, orgParameter, options = {}) => {
8123
+ // verify required parameter 'orgName' is not null or undefined
8124
+ (0, common_1.assertParamExists)('patchOrgParameter', 'orgName', orgName);
8125
+ // verify required parameter 'parameterName' is not null or undefined
8126
+ (0, common_1.assertParamExists)('patchOrgParameter', 'parameterName', parameterName);
8127
+ // verify required parameter 'orgParameter' is not null or undefined
8128
+ (0, common_1.assertParamExists)('patchOrgParameter', 'orgParameter', orgParameter);
8129
+ const localVarPath = `/api/v1/organizations/{orgName}/parameters/{parameterName}`
8130
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
8131
+ .replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
8132
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8133
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8134
+ let baseOptions;
8135
+ if (configuration) {
8136
+ baseOptions = configuration.baseOptions;
8137
+ }
8138
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
8139
+ const localVarHeaderParameter = {};
8140
+ const localVarQueryParameter = {};
8141
+ // authentication BearerToken required
8142
+ // http bearer authentication required
8143
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8144
+ // authentication DigestAuth required
8145
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8147
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8149
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8150
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(orgParameter, localVarRequestOptions, configuration);
8151
+ return {
8152
+ url: (0, common_1.toPathString)(localVarUrlObj),
8153
+ options: localVarRequestOptions,
8154
+ };
8155
+ },
8156
+ /**
8157
+ *
8158
+ * @summary Produce message to topic
8159
+ * @param {string} orgName The name of organization
8160
+ * @param {string} clusterName The name of cluster
8161
+ * @param {string} topic
8162
+ * @param {TopicMessageRequest} topicMessageRequest
8163
+ * @param {*} [options] Override http request option.
8164
+ * @throws {RequiredError}
8165
+ */
8166
+ produceKafkaTopicMessage: async (orgName, clusterName, topic, topicMessageRequest, options = {}) => {
8167
+ // verify required parameter 'orgName' is not null or undefined
8168
+ (0, common_1.assertParamExists)('produceKafkaTopicMessage', 'orgName', orgName);
8169
+ // verify required parameter 'clusterName' is not null or undefined
8170
+ (0, common_1.assertParamExists)('produceKafkaTopicMessage', 'clusterName', clusterName);
8171
+ // verify required parameter 'topic' is not null or undefined
8172
+ (0, common_1.assertParamExists)('produceKafkaTopicMessage', 'topic', topic);
8173
+ // verify required parameter 'topicMessageRequest' is not null or undefined
8174
+ (0, common_1.assertParamExists)('produceKafkaTopicMessage', 'topicMessageRequest', topicMessageRequest);
8175
+ const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages`
8176
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
8177
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
8178
+ .replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
8179
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8180
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8181
+ let baseOptions;
8182
+ if (configuration) {
8183
+ baseOptions = configuration.baseOptions;
8184
+ }
8185
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8186
+ const localVarHeaderParameter = {};
8187
+ const localVarQueryParameter = {};
8188
+ // authentication BearerToken required
8189
+ // http bearer authentication required
8190
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8191
+ // authentication DigestAuth required
8192
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
8193
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8194
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8196
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8197
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(topicMessageRequest, localVarRequestOptions, configuration);
8198
+ return {
8199
+ url: (0, common_1.toPathString)(localVarUrlObj),
8200
+ options: localVarRequestOptions,
8201
+ };
8202
+ },
8203
+ /**
8204
+ *
8205
+ * @summary Promote cluster intance to primary
7580
8206
  * @param {string} orgName name of the Org
7581
- * @param {string} memberId ID of the member
7582
- * @param {OrgMemberUpdate} body
8207
+ * @param {string} clusterName name of the KubeBlocks cluster
8208
+ * @param {OpsPromote} body
7583
8209
  * @param {*} [options] Override http request option.
7584
8210
  * @throws {RequiredError}
7585
8211
  */
7586
- patchOrgMember: async (orgName, memberId, body, options = {}) => {
8212
+ promoteCluster: async (orgName, clusterName, body, options = {}) => {
7587
8213
  // verify required parameter 'orgName' is not null or undefined
7588
- (0, common_1.assertParamExists)('patchOrgMember', 'orgName', orgName);
7589
- // verify required parameter 'memberId' is not null or undefined
7590
- (0, common_1.assertParamExists)('patchOrgMember', 'memberId', memberId);
8214
+ (0, common_1.assertParamExists)('promoteCluster', 'orgName', orgName);
8215
+ // verify required parameter 'clusterName' is not null or undefined
8216
+ (0, common_1.assertParamExists)('promoteCluster', 'clusterName', clusterName);
7591
8217
  // verify required parameter 'body' is not null or undefined
7592
- (0, common_1.assertParamExists)('patchOrgMember', 'body', body);
7593
- const localVarPath = `/api/v1/organizations/{orgName}/members/{memberId}`
8218
+ (0, common_1.assertParamExists)('promoteCluster', 'body', body);
8219
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/promote`
7594
8220
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
7595
- .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
8221
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
7596
8222
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7597
8223
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7598
8224
  let baseOptions;
7599
8225
  if (configuration) {
7600
8226
  baseOptions = configuration.baseOptions;
7601
8227
  }
7602
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
8228
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7603
8229
  const localVarHeaderParameter = {};
7604
8230
  const localVarQueryParameter = {};
7605
8231
  // authentication BearerToken required
@@ -7618,31 +8244,35 @@ const SharedApiAxiosParamCreator = function (configuration) {
7618
8244
  };
7619
8245
  },
7620
8246
  /**
7621
- * Update a parameter of an organization
7622
- * @summary Update a parameter of an organization
7623
- * @param {string} orgName The name of the organization
7624
- * @param {string} parameterName The name of the parameter
7625
- * @param {OrgParameter} orgParameter
8247
+ *
8248
+ * @summary Create or update Elasticsearch security role
8249
+ * @param {string} orgName
8250
+ * @param {string} clusterName
8251
+ * @param {string} roleName
8252
+ * @param {ESSecurityRoleDescriptor} body
7626
8253
  * @param {*} [options] Override http request option.
7627
8254
  * @throws {RequiredError}
7628
8255
  */
7629
- patchOrgParameter: async (orgName, parameterName, orgParameter, options = {}) => {
8256
+ putElasticsearchSecurityRole: async (orgName, clusterName, roleName, body, options = {}) => {
7630
8257
  // verify required parameter 'orgName' is not null or undefined
7631
- (0, common_1.assertParamExists)('patchOrgParameter', 'orgName', orgName);
7632
- // verify required parameter 'parameterName' is not null or undefined
7633
- (0, common_1.assertParamExists)('patchOrgParameter', 'parameterName', parameterName);
7634
- // verify required parameter 'orgParameter' is not null or undefined
7635
- (0, common_1.assertParamExists)('patchOrgParameter', 'orgParameter', orgParameter);
7636
- const localVarPath = `/api/v1/organizations/{orgName}/parameters/{parameterName}`
8258
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'orgName', orgName);
8259
+ // verify required parameter 'clusterName' is not null or undefined
8260
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'clusterName', clusterName);
8261
+ // verify required parameter 'roleName' is not null or undefined
8262
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'roleName', roleName);
8263
+ // verify required parameter 'body' is not null or undefined
8264
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'body', body);
8265
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
7637
8266
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
7638
- .replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
8267
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
8268
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
7639
8269
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7640
8270
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7641
8271
  let baseOptions;
7642
8272
  if (configuration) {
7643
8273
  baseOptions = configuration.baseOptions;
7644
8274
  }
7645
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
8275
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7646
8276
  const localVarHeaderParameter = {};
7647
8277
  const localVarQueryParameter = {};
7648
8278
  // authentication BearerToken required
@@ -7654,7 +8284,7 @@ const SharedApiAxiosParamCreator = function (configuration) {
7654
8284
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7655
8285
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7656
8286
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7657
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(orgParameter, localVarRequestOptions, configuration);
8287
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
7658
8288
  return {
7659
8289
  url: (0, common_1.toPathString)(localVarUrlObj),
7660
8290
  options: localVarRequestOptions,
@@ -7662,34 +8292,34 @@ const SharedApiAxiosParamCreator = function (configuration) {
7662
8292
  },
7663
8293
  /**
7664
8294
  *
7665
- * @summary Produce message to topic
7666
- * @param {string} orgName The name of organization
7667
- * @param {string} clusterName The name of cluster
7668
- * @param {string} topic
7669
- * @param {TopicMessageRequest} topicMessageRequest
8295
+ * @summary Create or update Elasticsearch security role mapping
8296
+ * @param {string} orgName
8297
+ * @param {string} clusterName
8298
+ * @param {string} mappingName
8299
+ * @param {ESSecurityRoleMapping} body
7670
8300
  * @param {*} [options] Override http request option.
7671
8301
  * @throws {RequiredError}
7672
8302
  */
7673
- produceKafkaTopicMessage: async (orgName, clusterName, topic, topicMessageRequest, options = {}) => {
8303
+ putElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, body, options = {}) => {
7674
8304
  // verify required parameter 'orgName' is not null or undefined
7675
- (0, common_1.assertParamExists)('produceKafkaTopicMessage', 'orgName', orgName);
8305
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'orgName', orgName);
7676
8306
  // verify required parameter 'clusterName' is not null or undefined
7677
- (0, common_1.assertParamExists)('produceKafkaTopicMessage', 'clusterName', clusterName);
7678
- // verify required parameter 'topic' is not null or undefined
7679
- (0, common_1.assertParamExists)('produceKafkaTopicMessage', 'topic', topic);
7680
- // verify required parameter 'topicMessageRequest' is not null or undefined
7681
- (0, common_1.assertParamExists)('produceKafkaTopicMessage', 'topicMessageRequest', topicMessageRequest);
7682
- const localVarPath = `/api/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages`
8307
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
8308
+ // verify required parameter 'mappingName' is not null or undefined
8309
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
8310
+ // verify required parameter 'body' is not null or undefined
8311
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'body', body);
8312
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
7683
8313
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
7684
8314
  .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
7685
- .replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
8315
+ .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
7686
8316
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7687
8317
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7688
8318
  let baseOptions;
7689
8319
  if (configuration) {
7690
8320
  baseOptions = configuration.baseOptions;
7691
8321
  }
7692
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8322
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7693
8323
  const localVarHeaderParameter = {};
7694
8324
  const localVarQueryParameter = {};
7695
8325
  // authentication BearerToken required
@@ -7701,7 +8331,7 @@ const SharedApiAxiosParamCreator = function (configuration) {
7701
8331
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7702
8332
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7703
8333
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7704
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(topicMessageRequest, localVarRequestOptions, configuration);
8334
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
7705
8335
  return {
7706
8336
  url: (0, common_1.toPathString)(localVarUrlObj),
7707
8337
  options: localVarRequestOptions,
@@ -7709,30 +8339,34 @@ const SharedApiAxiosParamCreator = function (configuration) {
7709
8339
  },
7710
8340
  /**
7711
8341
  *
7712
- * @summary Promote cluster intance to primary
7713
- * @param {string} orgName name of the Org
7714
- * @param {string} clusterName name of the KubeBlocks cluster
7715
- * @param {OpsPromote} body
8342
+ * @summary Create or update Elasticsearch security user
8343
+ * @param {string} orgName
8344
+ * @param {string} clusterName
8345
+ * @param {string} username
8346
+ * @param {ESPutSecurityUserRequest} body
7716
8347
  * @param {*} [options] Override http request option.
7717
8348
  * @throws {RequiredError}
7718
8349
  */
7719
- promoteCluster: async (orgName, clusterName, body, options = {}) => {
8350
+ putElasticsearchSecurityUser: async (orgName, clusterName, username, body, options = {}) => {
7720
8351
  // verify required parameter 'orgName' is not null or undefined
7721
- (0, common_1.assertParamExists)('promoteCluster', 'orgName', orgName);
8352
+ (0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'orgName', orgName);
7722
8353
  // verify required parameter 'clusterName' is not null or undefined
7723
- (0, common_1.assertParamExists)('promoteCluster', 'clusterName', clusterName);
8354
+ (0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'clusterName', clusterName);
8355
+ // verify required parameter 'username' is not null or undefined
8356
+ (0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'username', username);
7724
8357
  // verify required parameter 'body' is not null or undefined
7725
- (0, common_1.assertParamExists)('promoteCluster', 'body', body);
7726
- const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/promote`
8358
+ (0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'body', body);
8359
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
7727
8360
  .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
7728
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
8361
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
8362
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
7729
8363
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7730
8364
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7731
8365
  let baseOptions;
7732
8366
  if (configuration) {
7733
8367
  baseOptions = configuration.baseOptions;
7734
8368
  }
7735
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8369
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7736
8370
  const localVarHeaderParameter = {};
7737
8371
  const localVarQueryParameter = {};
7738
8372
  // authentication BearerToken required
@@ -9327,6 +9961,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
9327
9961
  options: localVarRequestOptions,
9328
9962
  };
9329
9963
  },
9964
+ /**
9965
+ *
9966
+ * @summary Unlock Elasticsearch account
9967
+ * @param {string} orgName
9968
+ * @param {string} clusterName
9969
+ * @param {string} username
9970
+ * @param {*} [options] Override http request option.
9971
+ * @throws {RequiredError}
9972
+ */
9973
+ unlockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
9974
+ // verify required parameter 'orgName' is not null or undefined
9975
+ (0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'orgName', orgName);
9976
+ // verify required parameter 'clusterName' is not null or undefined
9977
+ (0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'clusterName', clusterName);
9978
+ // verify required parameter 'username' is not null or undefined
9979
+ (0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'username', username);
9980
+ const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/unlock`
9981
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
9982
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
9983
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
9984
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9985
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9986
+ let baseOptions;
9987
+ if (configuration) {
9988
+ baseOptions = configuration.baseOptions;
9989
+ }
9990
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
9991
+ const localVarHeaderParameter = {};
9992
+ const localVarQueryParameter = {};
9993
+ // authentication BearerToken required
9994
+ // http bearer authentication required
9995
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9996
+ // authentication DigestAuth required
9997
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9998
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9999
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10000
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10001
+ return {
10002
+ url: (0, common_1.toPathString)(localVarUrlObj),
10003
+ options: localVarRequestOptions,
10004
+ };
10005
+ },
9330
10006
  /**
9331
10007
  * update an account in cluster
9332
10008
  * @summary update cluster account
@@ -10612,6 +11288,23 @@ const SharedApiFp = function (configuration) {
10612
11288
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.buildBackupObj']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10613
11289
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10614
11290
  },
11291
+ /**
11292
+ *
11293
+ * @summary Change Elasticsearch account password
11294
+ * @param {string} orgName
11295
+ * @param {string} clusterName
11296
+ * @param {string} username
11297
+ * @param {ESSecurityPasswordRequest} body
11298
+ * @param {*} [options] Override http request option.
11299
+ * @throws {RequiredError}
11300
+ */
11301
+ async changeElasticsearchSecurityUserPassword(orgName, clusterName, username, body, options) {
11302
+ var _a, _b, _c;
11303
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changeElasticsearchSecurityUserPassword(orgName, clusterName, username, body, options);
11304
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11305
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.changeElasticsearchSecurityUserPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11306
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11307
+ },
10615
11308
  /**
10616
11309
  *
10617
11310
  * @summary close the session for the cluster
@@ -11139,6 +11832,54 @@ const SharedApiFp = function (configuration) {
11139
11832
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11140
11833
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11141
11834
  },
11835
+ /**
11836
+ *
11837
+ * @summary Delete Elasticsearch security role
11838
+ * @param {string} orgName
11839
+ * @param {string} clusterName
11840
+ * @param {string} roleName
11841
+ * @param {*} [options] Override http request option.
11842
+ * @throws {RequiredError}
11843
+ */
11844
+ async deleteElasticsearchSecurityRole(orgName, clusterName, roleName, options) {
11845
+ var _a, _b, _c;
11846
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityRole(orgName, clusterName, roleName, options);
11847
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11848
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11849
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11850
+ },
11851
+ /**
11852
+ *
11853
+ * @summary Delete Elasticsearch security role mapping
11854
+ * @param {string} orgName
11855
+ * @param {string} clusterName
11856
+ * @param {string} mappingName
11857
+ * @param {*} [options] Override http request option.
11858
+ * @throws {RequiredError}
11859
+ */
11860
+ async deleteElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options) {
11861
+ var _a, _b, _c;
11862
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options);
11863
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11864
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11865
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11866
+ },
11867
+ /**
11868
+ *
11869
+ * @summary Delete Elasticsearch security user
11870
+ * @param {string} orgName
11871
+ * @param {string} clusterName
11872
+ * @param {string} username
11873
+ * @param {*} [options] Override http request option.
11874
+ * @throws {RequiredError}
11875
+ */
11876
+ async deleteElasticsearchSecurityUser(orgName, clusterName, username, options) {
11877
+ var _a, _b, _c;
11878
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityUser(orgName, clusterName, username, options);
11879
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11880
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11881
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11882
+ },
11142
11883
  /**
11143
11884
  * delete an hive account in cluster
11144
11885
  * @summary Delete hive account
@@ -11887,6 +12628,69 @@ const SharedApiFp = function (configuration) {
11887
12628
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getDatabaseOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11888
12629
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11889
12630
  },
12631
+ /**
12632
+ *
12633
+ * @summary Get Elasticsearch builtin privileges
12634
+ * @param {string} orgName
12635
+ * @param {string} clusterName
12636
+ * @param {*} [options] Override http request option.
12637
+ * @throws {RequiredError}
12638
+ */
12639
+ async getElasticsearchBuiltinPrivileges(orgName, clusterName, options) {
12640
+ var _a, _b, _c;
12641
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchBuiltinPrivileges(orgName, clusterName, options);
12642
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12643
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getElasticsearchBuiltinPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12644
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12645
+ },
12646
+ /**
12647
+ *
12648
+ * @summary Get Elasticsearch security role
12649
+ * @param {string} orgName
12650
+ * @param {string} clusterName
12651
+ * @param {string} roleName
12652
+ * @param {*} [options] Override http request option.
12653
+ * @throws {RequiredError}
12654
+ */
12655
+ async getElasticsearchSecurityRole(orgName, clusterName, roleName, options) {
12656
+ var _a, _b, _c;
12657
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityRole(orgName, clusterName, roleName, options);
12658
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12659
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12660
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12661
+ },
12662
+ /**
12663
+ *
12664
+ * @summary Get Elasticsearch security role mapping
12665
+ * @param {string} orgName
12666
+ * @param {string} clusterName
12667
+ * @param {string} mappingName
12668
+ * @param {*} [options] Override http request option.
12669
+ * @throws {RequiredError}
12670
+ */
12671
+ async getElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options) {
12672
+ var _a, _b, _c;
12673
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options);
12674
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12675
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12676
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12677
+ },
12678
+ /**
12679
+ *
12680
+ * @summary Get Elasticsearch security user
12681
+ * @param {string} orgName
12682
+ * @param {string} clusterName
12683
+ * @param {string} username
12684
+ * @param {*} [options] Override http request option.
12685
+ * @throws {RequiredError}
12686
+ */
12687
+ async getElasticsearchSecurityUser(orgName, clusterName, username, options) {
12688
+ var _a, _b, _c;
12689
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityUser(orgName, clusterName, username, options);
12690
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12691
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12692
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12693
+ },
11890
12694
  /**
11891
12695
  * get engine available console
11892
12696
  * @summary get engine available console
@@ -12552,6 +13356,51 @@ const SharedApiFp = function (configuration) {
12552
13356
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listDatabases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12553
13357
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12554
13358
  },
13359
+ /**
13360
+ *
13361
+ * @summary List Elasticsearch security role mappings
13362
+ * @param {string} orgName
13363
+ * @param {string} clusterName
13364
+ * @param {*} [options] Override http request option.
13365
+ * @throws {RequiredError}
13366
+ */
13367
+ async listElasticsearchSecurityRoleMappings(orgName, clusterName, options) {
13368
+ var _a, _b, _c;
13369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityRoleMappings(orgName, clusterName, options);
13370
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13371
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listElasticsearchSecurityRoleMappings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13372
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13373
+ },
13374
+ /**
13375
+ *
13376
+ * @summary List Elasticsearch security roles
13377
+ * @param {string} orgName
13378
+ * @param {string} clusterName
13379
+ * @param {*} [options] Override http request option.
13380
+ * @throws {RequiredError}
13381
+ */
13382
+ async listElasticsearchSecurityRoles(orgName, clusterName, options) {
13383
+ var _a, _b, _c;
13384
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityRoles(orgName, clusterName, options);
13385
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13386
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listElasticsearchSecurityRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13387
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13388
+ },
13389
+ /**
13390
+ *
13391
+ * @summary List Elasticsearch security users
13392
+ * @param {string} orgName
13393
+ * @param {string} clusterName
13394
+ * @param {*} [options] Override http request option.
13395
+ * @throws {RequiredError}
13396
+ */
13397
+ async listElasticsearchSecurityUsers(orgName, clusterName, options) {
13398
+ var _a, _b, _c;
13399
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityUsers(orgName, clusterName, options);
13400
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13401
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listElasticsearchSecurityUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13402
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13403
+ },
12555
13404
  /**
12556
13405
  *
12557
13406
  * @summary List cluster endpoints
@@ -13210,11 +14059,27 @@ const SharedApiFp = function (configuration) {
13210
14059
  * @param {*} [options] Override http request option.
13211
14060
  * @throws {RequiredError}
13212
14061
  */
13213
- async listUpgradeableServiceVersion(clusterName, orgName, component, options) {
14062
+ async listUpgradeableServiceVersion(clusterName, orgName, component, options) {
14063
+ var _a, _b, _c;
14064
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUpgradeableServiceVersion(clusterName, orgName, component, options);
14065
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14066
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listUpgradeableServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14067
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14068
+ },
14069
+ /**
14070
+ *
14071
+ * @summary Lock Elasticsearch account
14072
+ * @param {string} orgName
14073
+ * @param {string} clusterName
14074
+ * @param {string} username
14075
+ * @param {*} [options] Override http request option.
14076
+ * @throws {RequiredError}
14077
+ */
14078
+ async lockElasticsearchSecurityUser(orgName, clusterName, username, options) {
13214
14079
  var _a, _b, _c;
13215
- const localVarAxiosArgs = await localVarAxiosParamCreator.listUpgradeableServiceVersion(clusterName, orgName, component, options);
14080
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockElasticsearchSecurityUser(orgName, clusterName, username, options);
13216
14081
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13217
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listUpgradeableServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14082
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13218
14083
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13219
14084
  },
13220
14085
  /**
@@ -13359,6 +14224,57 @@ const SharedApiFp = function (configuration) {
13359
14224
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.promoteCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13360
14225
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13361
14226
  },
14227
+ /**
14228
+ *
14229
+ * @summary Create or update Elasticsearch security role
14230
+ * @param {string} orgName
14231
+ * @param {string} clusterName
14232
+ * @param {string} roleName
14233
+ * @param {ESSecurityRoleDescriptor} body
14234
+ * @param {*} [options] Override http request option.
14235
+ * @throws {RequiredError}
14236
+ */
14237
+ async putElasticsearchSecurityRole(orgName, clusterName, roleName, body, options) {
14238
+ var _a, _b, _c;
14239
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityRole(orgName, clusterName, roleName, body, options);
14240
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14241
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14242
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14243
+ },
14244
+ /**
14245
+ *
14246
+ * @summary Create or update Elasticsearch security role mapping
14247
+ * @param {string} orgName
14248
+ * @param {string} clusterName
14249
+ * @param {string} mappingName
14250
+ * @param {ESSecurityRoleMapping} body
14251
+ * @param {*} [options] Override http request option.
14252
+ * @throws {RequiredError}
14253
+ */
14254
+ async putElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, body, options) {
14255
+ var _a, _b, _c;
14256
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, body, options);
14257
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14258
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14259
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14260
+ },
14261
+ /**
14262
+ *
14263
+ * @summary Create or update Elasticsearch security user
14264
+ * @param {string} orgName
14265
+ * @param {string} clusterName
14266
+ * @param {string} username
14267
+ * @param {ESPutSecurityUserRequest} body
14268
+ * @param {*} [options] Override http request option.
14269
+ * @throws {RequiredError}
14270
+ */
14271
+ async putElasticsearchSecurityUser(orgName, clusterName, username, body, options) {
14272
+ var _a, _b, _c;
14273
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityUser(orgName, clusterName, username, body, options);
14274
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14275
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14276
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14277
+ },
13362
14278
  /**
13363
14279
  *
13364
14280
  * @summary create a SQL query
@@ -13923,6 +14839,22 @@ const SharedApiFp = function (configuration) {
13923
14839
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.unfreezeMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13924
14840
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13925
14841
  },
14842
+ /**
14843
+ *
14844
+ * @summary Unlock Elasticsearch account
14845
+ * @param {string} orgName
14846
+ * @param {string} clusterName
14847
+ * @param {string} username
14848
+ * @param {*} [options] Override http request option.
14849
+ * @throws {RequiredError}
14850
+ */
14851
+ async unlockElasticsearchSecurityUser(orgName, clusterName, username, options) {
14852
+ var _a, _b, _c;
14853
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlockElasticsearchSecurityUser(orgName, clusterName, username, options);
14854
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
14855
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.unlockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
14856
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14857
+ },
13926
14858
  /**
13927
14859
  * update an account in cluster
13928
14860
  * @summary update cluster account
@@ -14428,6 +15360,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
14428
15360
  buildBackupObj(requestParameters, options) {
14429
15361
  return localVarFp.buildBackupObj(requestParameters.orgName, requestParameters.environmentName, requestParameters.engineName, requestParameters.body, options).then((request) => request(axios, basePath));
14430
15362
  },
15363
+ /**
15364
+ *
15365
+ * @summary Change Elasticsearch account password
15366
+ * @param {SharedApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
15367
+ * @param {*} [options] Override http request option.
15368
+ * @throws {RequiredError}
15369
+ */
15370
+ changeElasticsearchSecurityUserPassword(requestParameters, options) {
15371
+ return localVarFp.changeElasticsearchSecurityUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
15372
+ },
14431
15373
  /**
14432
15374
  *
14433
15375
  * @summary close the session for the cluster
@@ -14759,6 +15701,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
14759
15701
  deleteDatabase(requestParameters, options) {
14760
15702
  return localVarFp.deleteDatabase(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath));
14761
15703
  },
15704
+ /**
15705
+ *
15706
+ * @summary Delete Elasticsearch security role
15707
+ * @param {SharedApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
15708
+ * @param {*} [options] Override http request option.
15709
+ * @throws {RequiredError}
15710
+ */
15711
+ deleteElasticsearchSecurityRole(requestParameters, options) {
15712
+ return localVarFp.deleteElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
15713
+ },
15714
+ /**
15715
+ *
15716
+ * @summary Delete Elasticsearch security role mapping
15717
+ * @param {SharedApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
15718
+ * @param {*} [options] Override http request option.
15719
+ * @throws {RequiredError}
15720
+ */
15721
+ deleteElasticsearchSecurityRoleMapping(requestParameters, options) {
15722
+ return localVarFp.deleteElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(axios, basePath));
15723
+ },
15724
+ /**
15725
+ *
15726
+ * @summary Delete Elasticsearch security user
15727
+ * @param {SharedApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
15728
+ * @param {*} [options] Override http request option.
15729
+ * @throws {RequiredError}
15730
+ */
15731
+ deleteElasticsearchSecurityUser(requestParameters, options) {
15732
+ return localVarFp.deleteElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
15733
+ },
14762
15734
  /**
14763
15735
  * delete an hive account in cluster
14764
15736
  * @summary Delete hive account
@@ -15218,6 +16190,46 @@ const SharedApiFactory = function (configuration, basePath, axios) {
15218
16190
  getDatabaseOptions(requestParameters, options) {
15219
16191
  return localVarFp.getDatabaseOptions(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.type, requestParameters.charset, requestParameters.filter, options).then((request) => request(axios, basePath));
15220
16192
  },
16193
+ /**
16194
+ *
16195
+ * @summary Get Elasticsearch builtin privileges
16196
+ * @param {SharedApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
16197
+ * @param {*} [options] Override http request option.
16198
+ * @throws {RequiredError}
16199
+ */
16200
+ getElasticsearchBuiltinPrivileges(requestParameters, options) {
16201
+ return localVarFp.getElasticsearchBuiltinPrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
16202
+ },
16203
+ /**
16204
+ *
16205
+ * @summary Get Elasticsearch security role
16206
+ * @param {SharedApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
16207
+ * @param {*} [options] Override http request option.
16208
+ * @throws {RequiredError}
16209
+ */
16210
+ getElasticsearchSecurityRole(requestParameters, options) {
16211
+ return localVarFp.getElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
16212
+ },
16213
+ /**
16214
+ *
16215
+ * @summary Get Elasticsearch security role mapping
16216
+ * @param {SharedApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
16217
+ * @param {*} [options] Override http request option.
16218
+ * @throws {RequiredError}
16219
+ */
16220
+ getElasticsearchSecurityRoleMapping(requestParameters, options) {
16221
+ return localVarFp.getElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(axios, basePath));
16222
+ },
16223
+ /**
16224
+ *
16225
+ * @summary Get Elasticsearch security user
16226
+ * @param {SharedApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
16227
+ * @param {*} [options] Override http request option.
16228
+ * @throws {RequiredError}
16229
+ */
16230
+ getElasticsearchSecurityUser(requestParameters, options) {
16231
+ return localVarFp.getElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
16232
+ },
15221
16233
  /**
15222
16234
  * get engine available console
15223
16235
  * @summary get engine available console
@@ -15628,6 +16640,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
15628
16640
  listDatabases(requestParameters, options) {
15629
16641
  return localVarFp.listDatabases(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
15630
16642
  },
16643
+ /**
16644
+ *
16645
+ * @summary List Elasticsearch security role mappings
16646
+ * @param {SharedApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
16647
+ * @param {*} [options] Override http request option.
16648
+ * @throws {RequiredError}
16649
+ */
16650
+ listElasticsearchSecurityRoleMappings(requestParameters, options) {
16651
+ return localVarFp.listElasticsearchSecurityRoleMappings(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
16652
+ },
16653
+ /**
16654
+ *
16655
+ * @summary List Elasticsearch security roles
16656
+ * @param {SharedApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
16657
+ * @param {*} [options] Override http request option.
16658
+ * @throws {RequiredError}
16659
+ */
16660
+ listElasticsearchSecurityRoles(requestParameters, options) {
16661
+ return localVarFp.listElasticsearchSecurityRoles(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
16662
+ },
16663
+ /**
16664
+ *
16665
+ * @summary List Elasticsearch security users
16666
+ * @param {SharedApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
16667
+ * @param {*} [options] Override http request option.
16668
+ * @throws {RequiredError}
16669
+ */
16670
+ listElasticsearchSecurityUsers(requestParameters, options) {
16671
+ return localVarFp.listElasticsearchSecurityUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
16672
+ },
15631
16673
  /**
15632
16674
  *
15633
16675
  * @summary List cluster endpoints
@@ -16046,6 +17088,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16046
17088
  listUpgradeableServiceVersion(requestParameters, options) {
16047
17089
  return localVarFp.listUpgradeableServiceVersion(requestParameters.clusterName, requestParameters.orgName, requestParameters.component, options).then((request) => request(axios, basePath));
16048
17090
  },
17091
+ /**
17092
+ *
17093
+ * @summary Lock Elasticsearch account
17094
+ * @param {SharedApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
17095
+ * @param {*} [options] Override http request option.
17096
+ * @throws {RequiredError}
17097
+ */
17098
+ lockElasticsearchSecurityUser(requestParameters, options) {
17099
+ return localVarFp.lockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
17100
+ },
16049
17101
  /**
16050
17102
  *
16051
17103
  * @summary batch modify database tde status
@@ -16136,6 +17188,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16136
17188
  promoteCluster(requestParameters, options) {
16137
17189
  return localVarFp.promoteCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
16138
17190
  },
17191
+ /**
17192
+ *
17193
+ * @summary Create or update Elasticsearch security role
17194
+ * @param {SharedApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
17195
+ * @param {*} [options] Override http request option.
17196
+ * @throws {RequiredError}
17197
+ */
17198
+ putElasticsearchSecurityRole(requestParameters, options) {
17199
+ return localVarFp.putElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
17200
+ },
17201
+ /**
17202
+ *
17203
+ * @summary Create or update Elasticsearch security role mapping
17204
+ * @param {SharedApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
17205
+ * @param {*} [options] Override http request option.
17206
+ * @throws {RequiredError}
17207
+ */
17208
+ putElasticsearchSecurityRoleMapping(requestParameters, options) {
17209
+ return localVarFp.putElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, requestParameters.body, options).then((request) => request(axios, basePath));
17210
+ },
17211
+ /**
17212
+ *
17213
+ * @summary Create or update Elasticsearch security user
17214
+ * @param {SharedApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
17215
+ * @param {*} [options] Override http request option.
17216
+ * @throws {RequiredError}
17217
+ */
17218
+ putElasticsearchSecurityUser(requestParameters, options) {
17219
+ return localVarFp.putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
17220
+ },
16139
17221
  /**
16140
17222
  *
16141
17223
  * @summary create a SQL query
@@ -16465,6 +17547,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
16465
17547
  unfreezeMember(requestParameters, options) {
16466
17548
  return localVarFp.unfreezeMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(axios, basePath));
16467
17549
  },
17550
+ /**
17551
+ *
17552
+ * @summary Unlock Elasticsearch account
17553
+ * @param {SharedApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
17554
+ * @param {*} [options] Override http request option.
17555
+ * @throws {RequiredError}
17556
+ */
17557
+ unlockElasticsearchSecurityUser(requestParameters, options) {
17558
+ return localVarFp.unlockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
17559
+ },
16468
17560
  /**
16469
17561
  * update an account in cluster
16470
17562
  * @summary update cluster account
@@ -16812,6 +17904,17 @@ class SharedApi extends base_1.BaseAPI {
16812
17904
  buildBackupObj(requestParameters, options) {
16813
17905
  return (0, exports.SharedApiFp)(this.configuration).buildBackupObj(requestParameters.orgName, requestParameters.environmentName, requestParameters.engineName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
16814
17906
  }
17907
+ /**
17908
+ *
17909
+ * @summary Change Elasticsearch account password
17910
+ * @param {SharedApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
17911
+ * @param {*} [options] Override http request option.
17912
+ * @throws {RequiredError}
17913
+ * @memberof SharedApi
17914
+ */
17915
+ changeElasticsearchSecurityUserPassword(requestParameters, options) {
17916
+ return (0, exports.SharedApiFp)(this.configuration).changeElasticsearchSecurityUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
17917
+ }
16815
17918
  /**
16816
17919
  *
16817
17920
  * @summary close the session for the cluster
@@ -17176,6 +18279,39 @@ class SharedApi extends base_1.BaseAPI {
17176
18279
  deleteDatabase(requestParameters, options) {
17177
18280
  return (0, exports.SharedApiFp)(this.configuration).deleteDatabase(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath));
17178
18281
  }
18282
+ /**
18283
+ *
18284
+ * @summary Delete Elasticsearch security role
18285
+ * @param {SharedApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
18286
+ * @param {*} [options] Override http request option.
18287
+ * @throws {RequiredError}
18288
+ * @memberof SharedApi
18289
+ */
18290
+ deleteElasticsearchSecurityRole(requestParameters, options) {
18291
+ return (0, exports.SharedApiFp)(this.configuration).deleteElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
18292
+ }
18293
+ /**
18294
+ *
18295
+ * @summary Delete Elasticsearch security role mapping
18296
+ * @param {SharedApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
18297
+ * @param {*} [options] Override http request option.
18298
+ * @throws {RequiredError}
18299
+ * @memberof SharedApi
18300
+ */
18301
+ deleteElasticsearchSecurityRoleMapping(requestParameters, options) {
18302
+ return (0, exports.SharedApiFp)(this.configuration).deleteElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(this.axios, this.basePath));
18303
+ }
18304
+ /**
18305
+ *
18306
+ * @summary Delete Elasticsearch security user
18307
+ * @param {SharedApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
18308
+ * @param {*} [options] Override http request option.
18309
+ * @throws {RequiredError}
18310
+ * @memberof SharedApi
18311
+ */
18312
+ deleteElasticsearchSecurityUser(requestParameters, options) {
18313
+ return (0, exports.SharedApiFp)(this.configuration).deleteElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
18314
+ }
17179
18315
  /**
17180
18316
  * delete an hive account in cluster
17181
18317
  * @summary Delete hive account
@@ -17681,6 +18817,50 @@ class SharedApi extends base_1.BaseAPI {
17681
18817
  getDatabaseOptions(requestParameters, options) {
17682
18818
  return (0, exports.SharedApiFp)(this.configuration).getDatabaseOptions(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.type, requestParameters.charset, requestParameters.filter, options).then((request) => request(this.axios, this.basePath));
17683
18819
  }
18820
+ /**
18821
+ *
18822
+ * @summary Get Elasticsearch builtin privileges
18823
+ * @param {SharedApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
18824
+ * @param {*} [options] Override http request option.
18825
+ * @throws {RequiredError}
18826
+ * @memberof SharedApi
18827
+ */
18828
+ getElasticsearchBuiltinPrivileges(requestParameters, options) {
18829
+ return (0, exports.SharedApiFp)(this.configuration).getElasticsearchBuiltinPrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
18830
+ }
18831
+ /**
18832
+ *
18833
+ * @summary Get Elasticsearch security role
18834
+ * @param {SharedApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
18835
+ * @param {*} [options] Override http request option.
18836
+ * @throws {RequiredError}
18837
+ * @memberof SharedApi
18838
+ */
18839
+ getElasticsearchSecurityRole(requestParameters, options) {
18840
+ return (0, exports.SharedApiFp)(this.configuration).getElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
18841
+ }
18842
+ /**
18843
+ *
18844
+ * @summary Get Elasticsearch security role mapping
18845
+ * @param {SharedApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
18846
+ * @param {*} [options] Override http request option.
18847
+ * @throws {RequiredError}
18848
+ * @memberof SharedApi
18849
+ */
18850
+ getElasticsearchSecurityRoleMapping(requestParameters, options) {
18851
+ return (0, exports.SharedApiFp)(this.configuration).getElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(this.axios, this.basePath));
18852
+ }
18853
+ /**
18854
+ *
18855
+ * @summary Get Elasticsearch security user
18856
+ * @param {SharedApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
18857
+ * @param {*} [options] Override http request option.
18858
+ * @throws {RequiredError}
18859
+ * @memberof SharedApi
18860
+ */
18861
+ getElasticsearchSecurityUser(requestParameters, options) {
18862
+ return (0, exports.SharedApiFp)(this.configuration).getElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
18863
+ }
17684
18864
  /**
17685
18865
  * get engine available console
17686
18866
  * @summary get engine available console
@@ -18132,6 +19312,39 @@ class SharedApi extends base_1.BaseAPI {
18132
19312
  listDatabases(requestParameters, options) {
18133
19313
  return (0, exports.SharedApiFp)(this.configuration).listDatabases(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
18134
19314
  }
19315
+ /**
19316
+ *
19317
+ * @summary List Elasticsearch security role mappings
19318
+ * @param {SharedApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
19319
+ * @param {*} [options] Override http request option.
19320
+ * @throws {RequiredError}
19321
+ * @memberof SharedApi
19322
+ */
19323
+ listElasticsearchSecurityRoleMappings(requestParameters, options) {
19324
+ return (0, exports.SharedApiFp)(this.configuration).listElasticsearchSecurityRoleMappings(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
19325
+ }
19326
+ /**
19327
+ *
19328
+ * @summary List Elasticsearch security roles
19329
+ * @param {SharedApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
19330
+ * @param {*} [options] Override http request option.
19331
+ * @throws {RequiredError}
19332
+ * @memberof SharedApi
19333
+ */
19334
+ listElasticsearchSecurityRoles(requestParameters, options) {
19335
+ return (0, exports.SharedApiFp)(this.configuration).listElasticsearchSecurityRoles(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
19336
+ }
19337
+ /**
19338
+ *
19339
+ * @summary List Elasticsearch security users
19340
+ * @param {SharedApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
19341
+ * @param {*} [options] Override http request option.
19342
+ * @throws {RequiredError}
19343
+ * @memberof SharedApi
19344
+ */
19345
+ listElasticsearchSecurityUsers(requestParameters, options) {
19346
+ return (0, exports.SharedApiFp)(this.configuration).listElasticsearchSecurityUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
19347
+ }
18135
19348
  /**
18136
19349
  *
18137
19350
  * @summary List cluster endpoints
@@ -18592,6 +19805,17 @@ class SharedApi extends base_1.BaseAPI {
18592
19805
  listUpgradeableServiceVersion(requestParameters, options) {
18593
19806
  return (0, exports.SharedApiFp)(this.configuration).listUpgradeableServiceVersion(requestParameters.clusterName, requestParameters.orgName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
18594
19807
  }
19808
+ /**
19809
+ *
19810
+ * @summary Lock Elasticsearch account
19811
+ * @param {SharedApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
19812
+ * @param {*} [options] Override http request option.
19813
+ * @throws {RequiredError}
19814
+ * @memberof SharedApi
19815
+ */
19816
+ lockElasticsearchSecurityUser(requestParameters, options) {
19817
+ return (0, exports.SharedApiFp)(this.configuration).lockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
19818
+ }
18595
19819
  /**
18596
19820
  *
18597
19821
  * @summary batch modify database tde status
@@ -18691,6 +19915,39 @@ class SharedApi extends base_1.BaseAPI {
18691
19915
  promoteCluster(requestParameters, options) {
18692
19916
  return (0, exports.SharedApiFp)(this.configuration).promoteCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
18693
19917
  }
19918
+ /**
19919
+ *
19920
+ * @summary Create or update Elasticsearch security role
19921
+ * @param {SharedApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
19922
+ * @param {*} [options] Override http request option.
19923
+ * @throws {RequiredError}
19924
+ * @memberof SharedApi
19925
+ */
19926
+ putElasticsearchSecurityRole(requestParameters, options) {
19927
+ return (0, exports.SharedApiFp)(this.configuration).putElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
19928
+ }
19929
+ /**
19930
+ *
19931
+ * @summary Create or update Elasticsearch security role mapping
19932
+ * @param {SharedApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
19933
+ * @param {*} [options] Override http request option.
19934
+ * @throws {RequiredError}
19935
+ * @memberof SharedApi
19936
+ */
19937
+ putElasticsearchSecurityRoleMapping(requestParameters, options) {
19938
+ return (0, exports.SharedApiFp)(this.configuration).putElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
19939
+ }
19940
+ /**
19941
+ *
19942
+ * @summary Create or update Elasticsearch security user
19943
+ * @param {SharedApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
19944
+ * @param {*} [options] Override http request option.
19945
+ * @throws {RequiredError}
19946
+ * @memberof SharedApi
19947
+ */
19948
+ putElasticsearchSecurityUser(requestParameters, options) {
19949
+ return (0, exports.SharedApiFp)(this.configuration).putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
19950
+ }
18694
19951
  /**
18695
19952
  *
18696
19953
  * @summary create a SQL query
@@ -19053,6 +20310,17 @@ class SharedApi extends base_1.BaseAPI {
19053
20310
  unfreezeMember(requestParameters, options) {
19054
20311
  return (0, exports.SharedApiFp)(this.configuration).unfreezeMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(this.axios, this.basePath));
19055
20312
  }
20313
+ /**
20314
+ *
20315
+ * @summary Unlock Elasticsearch account
20316
+ * @param {SharedApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
20317
+ * @param {*} [options] Override http request option.
20318
+ * @throws {RequiredError}
20319
+ * @memberof SharedApi
20320
+ */
20321
+ unlockElasticsearchSecurityUser(requestParameters, options) {
20322
+ return (0, exports.SharedApiFp)(this.configuration).unlockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
20323
+ }
19056
20324
  /**
19057
20325
  * update an account in cluster
19058
20326
  * @summary update cluster account