kb-cloud-client-typescript 2.2.71 → 2.2.73

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
@@ -0,0 +1,1332 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Admin API
6
+ * The Admin API is used to manage the ApeCloud platform.
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: support@apecloud.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
18
+ Object.defineProperty(exports, "__esModule", { value: true });
19
+ exports.ElasticsearchApi = exports.ElasticsearchApiFactory = exports.ElasticsearchApiFp = exports.ElasticsearchApiAxiosParamCreator = void 0;
20
+ const axios_1 = __importDefault(require("axios"));
21
+ // Some imports not used depending on template conditions
22
+ // @ts-ignore
23
+ const common_1 = require("../common");
24
+ // @ts-ignore
25
+ const base_1 = require("../base");
26
+ /**
27
+ * ElasticsearchApi - axios parameter creator
28
+ * @export
29
+ */
30
+ const ElasticsearchApiAxiosParamCreator = function (configuration) {
31
+ return {
32
+ /**
33
+ *
34
+ * @summary Change Elasticsearch account password
35
+ * @param {string} orgName
36
+ * @param {string} clusterName
37
+ * @param {string} username
38
+ * @param {ESSecurityPasswordRequest} body
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ changeElasticsearchSecurityUserPassword: async (orgName, clusterName, username, body, options = {}) => {
43
+ // verify required parameter 'orgName' is not null or undefined
44
+ (0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'orgName', orgName);
45
+ // verify required parameter 'clusterName' is not null or undefined
46
+ (0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'clusterName', clusterName);
47
+ // verify required parameter 'username' is not null or undefined
48
+ (0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'username', username);
49
+ // verify required parameter 'body' is not null or undefined
50
+ (0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'body', body);
51
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
52
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
53
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
54
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
55
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
57
+ let baseOptions;
58
+ if (configuration) {
59
+ baseOptions = configuration.baseOptions;
60
+ }
61
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
62
+ const localVarHeaderParameter = {};
63
+ const localVarQueryParameter = {};
64
+ // authentication BearerToken required
65
+ // http bearer authentication required
66
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
67
+ // authentication DigestAuth required
68
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
69
+ localVarHeaderParameter['Content-Type'] = 'application/json';
70
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
71
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
73
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
74
+ return {
75
+ url: (0, common_1.toPathString)(localVarUrlObj),
76
+ options: localVarRequestOptions,
77
+ };
78
+ },
79
+ /**
80
+ *
81
+ * @summary Delete Elasticsearch security role
82
+ * @param {string} orgName
83
+ * @param {string} clusterName
84
+ * @param {string} roleName
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ deleteElasticsearchSecurityRole: async (orgName, clusterName, roleName, options = {}) => {
89
+ // verify required parameter 'orgName' is not null or undefined
90
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'orgName', orgName);
91
+ // verify required parameter 'clusterName' is not null or undefined
92
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'clusterName', clusterName);
93
+ // verify required parameter 'roleName' is not null or undefined
94
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'roleName', roleName);
95
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
96
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
97
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
98
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
99
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
100
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
101
+ let baseOptions;
102
+ if (configuration) {
103
+ baseOptions = configuration.baseOptions;
104
+ }
105
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
106
+ const localVarHeaderParameter = {};
107
+ const localVarQueryParameter = {};
108
+ // authentication BearerToken required
109
+ // http bearer authentication required
110
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
111
+ // authentication DigestAuth required
112
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
113
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
114
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
115
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
116
+ return {
117
+ url: (0, common_1.toPathString)(localVarUrlObj),
118
+ options: localVarRequestOptions,
119
+ };
120
+ },
121
+ /**
122
+ *
123
+ * @summary Delete Elasticsearch security role mapping
124
+ * @param {string} orgName
125
+ * @param {string} clusterName
126
+ * @param {string} mappingName
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ */
130
+ deleteElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, options = {}) => {
131
+ // verify required parameter 'orgName' is not null or undefined
132
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'orgName', orgName);
133
+ // verify required parameter 'clusterName' is not null or undefined
134
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
135
+ // verify required parameter 'mappingName' is not null or undefined
136
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
137
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
138
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
139
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
140
+ .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
141
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
142
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
143
+ let baseOptions;
144
+ if (configuration) {
145
+ baseOptions = configuration.baseOptions;
146
+ }
147
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
148
+ const localVarHeaderParameter = {};
149
+ const localVarQueryParameter = {};
150
+ // authentication BearerToken required
151
+ // http bearer authentication required
152
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
153
+ // authentication DigestAuth required
154
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
155
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
156
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
157
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
158
+ return {
159
+ url: (0, common_1.toPathString)(localVarUrlObj),
160
+ options: localVarRequestOptions,
161
+ };
162
+ },
163
+ /**
164
+ *
165
+ * @summary Delete Elasticsearch security user
166
+ * @param {string} orgName
167
+ * @param {string} clusterName
168
+ * @param {string} username
169
+ * @param {*} [options] Override http request option.
170
+ * @throws {RequiredError}
171
+ */
172
+ deleteElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
173
+ // verify required parameter 'orgName' is not null or undefined
174
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'orgName', orgName);
175
+ // verify required parameter 'clusterName' is not null or undefined
176
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'clusterName', clusterName);
177
+ // verify required parameter 'username' is not null or undefined
178
+ (0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'username', username);
179
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
180
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
181
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
182
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
183
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
184
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
185
+ let baseOptions;
186
+ if (configuration) {
187
+ baseOptions = configuration.baseOptions;
188
+ }
189
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
190
+ const localVarHeaderParameter = {};
191
+ const localVarQueryParameter = {};
192
+ // authentication BearerToken required
193
+ // http bearer authentication required
194
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
195
+ // authentication DigestAuth required
196
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
197
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
200
+ return {
201
+ url: (0, common_1.toPathString)(localVarUrlObj),
202
+ options: localVarRequestOptions,
203
+ };
204
+ },
205
+ /**
206
+ *
207
+ * @summary Get Elasticsearch builtin privileges
208
+ * @param {string} orgName
209
+ * @param {string} clusterName
210
+ * @param {*} [options] Override http request option.
211
+ * @throws {RequiredError}
212
+ */
213
+ getElasticsearchBuiltinPrivileges: async (orgName, clusterName, options = {}) => {
214
+ // verify required parameter 'orgName' is not null or undefined
215
+ (0, common_1.assertParamExists)('getElasticsearchBuiltinPrivileges', 'orgName', orgName);
216
+ // verify required parameter 'clusterName' is not null or undefined
217
+ (0, common_1.assertParamExists)('getElasticsearchBuiltinPrivileges', 'clusterName', clusterName);
218
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/privileges/builtin`
219
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
220
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
222
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
223
+ let baseOptions;
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ }
227
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
228
+ const localVarHeaderParameter = {};
229
+ const localVarQueryParameter = {};
230
+ // authentication BearerToken required
231
+ // http bearer authentication required
232
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
233
+ // authentication DigestAuth required
234
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
238
+ return {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ };
242
+ },
243
+ /**
244
+ *
245
+ * @summary Get Elasticsearch security role
246
+ * @param {string} orgName
247
+ * @param {string} clusterName
248
+ * @param {string} roleName
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ */
252
+ getElasticsearchSecurityRole: async (orgName, clusterName, roleName, options = {}) => {
253
+ // verify required parameter 'orgName' is not null or undefined
254
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'orgName', orgName);
255
+ // verify required parameter 'clusterName' is not null or undefined
256
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'clusterName', clusterName);
257
+ // verify required parameter 'roleName' is not null or undefined
258
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'roleName', roleName);
259
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
260
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
261
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
262
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
263
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
264
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
265
+ let baseOptions;
266
+ if (configuration) {
267
+ baseOptions = configuration.baseOptions;
268
+ }
269
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
270
+ const localVarHeaderParameter = {};
271
+ const localVarQueryParameter = {};
272
+ // authentication BearerToken required
273
+ // http bearer authentication required
274
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
275
+ // authentication DigestAuth required
276
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
277
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
280
+ return {
281
+ url: (0, common_1.toPathString)(localVarUrlObj),
282
+ options: localVarRequestOptions,
283
+ };
284
+ },
285
+ /**
286
+ *
287
+ * @summary Get Elasticsearch security role mapping
288
+ * @param {string} orgName
289
+ * @param {string} clusterName
290
+ * @param {string} mappingName
291
+ * @param {*} [options] Override http request option.
292
+ * @throws {RequiredError}
293
+ */
294
+ getElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, options = {}) => {
295
+ // verify required parameter 'orgName' is not null or undefined
296
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'orgName', orgName);
297
+ // verify required parameter 'clusterName' is not null or undefined
298
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
299
+ // verify required parameter 'mappingName' is not null or undefined
300
+ (0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
301
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
302
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
303
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
304
+ .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
305
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
306
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
307
+ let baseOptions;
308
+ if (configuration) {
309
+ baseOptions = configuration.baseOptions;
310
+ }
311
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
312
+ const localVarHeaderParameter = {};
313
+ const localVarQueryParameter = {};
314
+ // authentication BearerToken required
315
+ // http bearer authentication required
316
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
317
+ // authentication DigestAuth required
318
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
319
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
320
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
321
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
322
+ return {
323
+ url: (0, common_1.toPathString)(localVarUrlObj),
324
+ options: localVarRequestOptions,
325
+ };
326
+ },
327
+ /**
328
+ *
329
+ * @summary Get Elasticsearch security user
330
+ * @param {string} orgName
331
+ * @param {string} clusterName
332
+ * @param {string} username
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ getElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
337
+ // verify required parameter 'orgName' is not null or undefined
338
+ (0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'orgName', orgName);
339
+ // verify required parameter 'clusterName' is not null or undefined
340
+ (0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'clusterName', clusterName);
341
+ // verify required parameter 'username' is not null or undefined
342
+ (0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'username', username);
343
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
344
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
345
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
346
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
347
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
348
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
349
+ let baseOptions;
350
+ if (configuration) {
351
+ baseOptions = configuration.baseOptions;
352
+ }
353
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
354
+ const localVarHeaderParameter = {};
355
+ const localVarQueryParameter = {};
356
+ // authentication BearerToken required
357
+ // http bearer authentication required
358
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
359
+ // authentication DigestAuth required
360
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
361
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
362
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
363
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
364
+ return {
365
+ url: (0, common_1.toPathString)(localVarUrlObj),
366
+ options: localVarRequestOptions,
367
+ };
368
+ },
369
+ /**
370
+ *
371
+ * @summary List Elasticsearch security role mappings
372
+ * @param {string} orgName
373
+ * @param {string} clusterName
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ listElasticsearchSecurityRoleMappings: async (orgName, clusterName, options = {}) => {
378
+ // verify required parameter 'orgName' is not null or undefined
379
+ (0, common_1.assertParamExists)('listElasticsearchSecurityRoleMappings', 'orgName', orgName);
380
+ // verify required parameter 'clusterName' is not null or undefined
381
+ (0, common_1.assertParamExists)('listElasticsearchSecurityRoleMappings', 'clusterName', clusterName);
382
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings`
383
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
384
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
386
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
387
+ let baseOptions;
388
+ if (configuration) {
389
+ baseOptions = configuration.baseOptions;
390
+ }
391
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
392
+ const localVarHeaderParameter = {};
393
+ const localVarQueryParameter = {};
394
+ // authentication BearerToken required
395
+ // http bearer authentication required
396
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
397
+ // authentication DigestAuth required
398
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
399
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
400
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
401
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
402
+ return {
403
+ url: (0, common_1.toPathString)(localVarUrlObj),
404
+ options: localVarRequestOptions,
405
+ };
406
+ },
407
+ /**
408
+ *
409
+ * @summary List Elasticsearch security roles
410
+ * @param {string} orgName
411
+ * @param {string} clusterName
412
+ * @param {*} [options] Override http request option.
413
+ * @throws {RequiredError}
414
+ */
415
+ listElasticsearchSecurityRoles: async (orgName, clusterName, options = {}) => {
416
+ // verify required parameter 'orgName' is not null or undefined
417
+ (0, common_1.assertParamExists)('listElasticsearchSecurityRoles', 'orgName', orgName);
418
+ // verify required parameter 'clusterName' is not null or undefined
419
+ (0, common_1.assertParamExists)('listElasticsearchSecurityRoles', 'clusterName', clusterName);
420
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
421
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
422
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
423
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
424
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
425
+ let baseOptions;
426
+ if (configuration) {
427
+ baseOptions = configuration.baseOptions;
428
+ }
429
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
430
+ const localVarHeaderParameter = {};
431
+ const localVarQueryParameter = {};
432
+ // authentication BearerToken required
433
+ // http bearer authentication required
434
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
435
+ // authentication DigestAuth required
436
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
437
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
438
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
439
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
440
+ return {
441
+ url: (0, common_1.toPathString)(localVarUrlObj),
442
+ options: localVarRequestOptions,
443
+ };
444
+ },
445
+ /**
446
+ *
447
+ * @summary List Elasticsearch security users
448
+ * @param {string} orgName
449
+ * @param {string} clusterName
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ listElasticsearchSecurityUsers: async (orgName, clusterName, options = {}) => {
454
+ // verify required parameter 'orgName' is not null or undefined
455
+ (0, common_1.assertParamExists)('listElasticsearchSecurityUsers', 'orgName', orgName);
456
+ // verify required parameter 'clusterName' is not null or undefined
457
+ (0, common_1.assertParamExists)('listElasticsearchSecurityUsers', 'clusterName', clusterName);
458
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts`
459
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
460
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
461
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
462
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
463
+ let baseOptions;
464
+ if (configuration) {
465
+ baseOptions = configuration.baseOptions;
466
+ }
467
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
468
+ const localVarHeaderParameter = {};
469
+ const localVarQueryParameter = {};
470
+ // authentication BearerToken required
471
+ // http bearer authentication required
472
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
473
+ // authentication DigestAuth required
474
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
475
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
476
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
477
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
478
+ return {
479
+ url: (0, common_1.toPathString)(localVarUrlObj),
480
+ options: localVarRequestOptions,
481
+ };
482
+ },
483
+ /**
484
+ *
485
+ * @summary Lock Elasticsearch account
486
+ * @param {string} orgName
487
+ * @param {string} clusterName
488
+ * @param {string} username
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ lockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
493
+ // verify required parameter 'orgName' is not null or undefined
494
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'orgName', orgName);
495
+ // verify required parameter 'clusterName' is not null or undefined
496
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'clusterName', clusterName);
497
+ // verify required parameter 'username' is not null or undefined
498
+ (0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'username', username);
499
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock`
500
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
501
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
502
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
503
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
504
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
505
+ let baseOptions;
506
+ if (configuration) {
507
+ baseOptions = configuration.baseOptions;
508
+ }
509
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
510
+ const localVarHeaderParameter = {};
511
+ const localVarQueryParameter = {};
512
+ // authentication BearerToken required
513
+ // http bearer authentication required
514
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
515
+ // authentication DigestAuth required
516
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
517
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
518
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
519
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
520
+ return {
521
+ url: (0, common_1.toPathString)(localVarUrlObj),
522
+ options: localVarRequestOptions,
523
+ };
524
+ },
525
+ /**
526
+ *
527
+ * @summary Create or update Elasticsearch security role
528
+ * @param {string} orgName
529
+ * @param {string} clusterName
530
+ * @param {string} roleName
531
+ * @param {ESSecurityRoleDescriptor} body
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ putElasticsearchSecurityRole: async (orgName, clusterName, roleName, body, options = {}) => {
536
+ // verify required parameter 'orgName' is not null or undefined
537
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'orgName', orgName);
538
+ // verify required parameter 'clusterName' is not null or undefined
539
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'clusterName', clusterName);
540
+ // verify required parameter 'roleName' is not null or undefined
541
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'roleName', roleName);
542
+ // verify required parameter 'body' is not null or undefined
543
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'body', body);
544
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
545
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
546
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
547
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
548
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
549
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
550
+ let baseOptions;
551
+ if (configuration) {
552
+ baseOptions = configuration.baseOptions;
553
+ }
554
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
555
+ const localVarHeaderParameter = {};
556
+ const localVarQueryParameter = {};
557
+ // authentication BearerToken required
558
+ // http bearer authentication required
559
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
560
+ // authentication DigestAuth required
561
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
562
+ localVarHeaderParameter['Content-Type'] = 'application/json';
563
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
564
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
565
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
566
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
567
+ return {
568
+ url: (0, common_1.toPathString)(localVarUrlObj),
569
+ options: localVarRequestOptions,
570
+ };
571
+ },
572
+ /**
573
+ *
574
+ * @summary Create or update Elasticsearch security role mapping
575
+ * @param {string} orgName
576
+ * @param {string} clusterName
577
+ * @param {string} mappingName
578
+ * @param {ESSecurityRoleMapping} body
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ putElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, body, options = {}) => {
583
+ // verify required parameter 'orgName' is not null or undefined
584
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'orgName', orgName);
585
+ // verify required parameter 'clusterName' is not null or undefined
586
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
587
+ // verify required parameter 'mappingName' is not null or undefined
588
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
589
+ // verify required parameter 'body' is not null or undefined
590
+ (0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'body', body);
591
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
592
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
593
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
594
+ .replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
595
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
596
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
597
+ let baseOptions;
598
+ if (configuration) {
599
+ baseOptions = configuration.baseOptions;
600
+ }
601
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
602
+ const localVarHeaderParameter = {};
603
+ const localVarQueryParameter = {};
604
+ // authentication BearerToken required
605
+ // http bearer authentication required
606
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
607
+ // authentication DigestAuth required
608
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
609
+ localVarHeaderParameter['Content-Type'] = 'application/json';
610
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
611
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
612
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
613
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
614
+ return {
615
+ url: (0, common_1.toPathString)(localVarUrlObj),
616
+ options: localVarRequestOptions,
617
+ };
618
+ },
619
+ /**
620
+ *
621
+ * @summary Create or update Elasticsearch security user
622
+ * @param {string} orgName
623
+ * @param {string} clusterName
624
+ * @param {string} username
625
+ * @param {ESPutSecurityUserRequest} body
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ */
629
+ putElasticsearchSecurityUser: async (orgName, clusterName, username, body, options = {}) => {
630
+ // verify required parameter 'orgName' is not null or undefined
631
+ (0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'orgName', orgName);
632
+ // verify required parameter 'clusterName' is not null or undefined
633
+ (0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'clusterName', clusterName);
634
+ // verify required parameter 'username' is not null or undefined
635
+ (0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'username', username);
636
+ // verify required parameter 'body' is not null or undefined
637
+ (0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'body', body);
638
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
639
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
640
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
641
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
643
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
644
+ let baseOptions;
645
+ if (configuration) {
646
+ baseOptions = configuration.baseOptions;
647
+ }
648
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
649
+ const localVarHeaderParameter = {};
650
+ const localVarQueryParameter = {};
651
+ // authentication BearerToken required
652
+ // http bearer authentication required
653
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
654
+ // authentication DigestAuth required
655
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
656
+ localVarHeaderParameter['Content-Type'] = 'application/json';
657
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
658
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
659
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
660
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
661
+ return {
662
+ url: (0, common_1.toPathString)(localVarUrlObj),
663
+ options: localVarRequestOptions,
664
+ };
665
+ },
666
+ /**
667
+ *
668
+ * @summary Unlock Elasticsearch account
669
+ * @param {string} orgName
670
+ * @param {string} clusterName
671
+ * @param {string} username
672
+ * @param {*} [options] Override http request option.
673
+ * @throws {RequiredError}
674
+ */
675
+ unlockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
676
+ // verify required parameter 'orgName' is not null or undefined
677
+ (0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'orgName', orgName);
678
+ // verify required parameter 'clusterName' is not null or undefined
679
+ (0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'clusterName', clusterName);
680
+ // verify required parameter 'username' is not null or undefined
681
+ (0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'username', username);
682
+ const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/unlock`
683
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
684
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
685
+ .replace(`{${"username"}}`, encodeURIComponent(String(username)));
686
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
687
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
688
+ let baseOptions;
689
+ if (configuration) {
690
+ baseOptions = configuration.baseOptions;
691
+ }
692
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
693
+ const localVarHeaderParameter = {};
694
+ const localVarQueryParameter = {};
695
+ // authentication BearerToken required
696
+ // http bearer authentication required
697
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
698
+ // authentication DigestAuth required
699
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
700
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
701
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
702
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
703
+ return {
704
+ url: (0, common_1.toPathString)(localVarUrlObj),
705
+ options: localVarRequestOptions,
706
+ };
707
+ },
708
+ };
709
+ };
710
+ exports.ElasticsearchApiAxiosParamCreator = ElasticsearchApiAxiosParamCreator;
711
+ /**
712
+ * ElasticsearchApi - functional programming interface
713
+ * @export
714
+ */
715
+ const ElasticsearchApiFp = function (configuration) {
716
+ const localVarAxiosParamCreator = (0, exports.ElasticsearchApiAxiosParamCreator)(configuration);
717
+ return {
718
+ /**
719
+ *
720
+ * @summary Change Elasticsearch account password
721
+ * @param {string} orgName
722
+ * @param {string} clusterName
723
+ * @param {string} username
724
+ * @param {ESSecurityPasswordRequest} body
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ */
728
+ async changeElasticsearchSecurityUserPassword(orgName, clusterName, username, body, options) {
729
+ var _a, _b, _c;
730
+ const localVarAxiosArgs = await localVarAxiosParamCreator.changeElasticsearchSecurityUserPassword(orgName, clusterName, username, body, options);
731
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
732
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.changeElasticsearchSecurityUserPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
733
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
734
+ },
735
+ /**
736
+ *
737
+ * @summary Delete Elasticsearch security role
738
+ * @param {string} orgName
739
+ * @param {string} clusterName
740
+ * @param {string} roleName
741
+ * @param {*} [options] Override http request option.
742
+ * @throws {RequiredError}
743
+ */
744
+ async deleteElasticsearchSecurityRole(orgName, clusterName, roleName, options) {
745
+ var _a, _b, _c;
746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityRole(orgName, clusterName, roleName, options);
747
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
748
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.deleteElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
749
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
750
+ },
751
+ /**
752
+ *
753
+ * @summary Delete Elasticsearch security role mapping
754
+ * @param {string} orgName
755
+ * @param {string} clusterName
756
+ * @param {string} mappingName
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ */
760
+ async deleteElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options) {
761
+ var _a, _b, _c;
762
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options);
763
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
764
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.deleteElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
765
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
766
+ },
767
+ /**
768
+ *
769
+ * @summary Delete Elasticsearch security user
770
+ * @param {string} orgName
771
+ * @param {string} clusterName
772
+ * @param {string} username
773
+ * @param {*} [options] Override http request option.
774
+ * @throws {RequiredError}
775
+ */
776
+ async deleteElasticsearchSecurityUser(orgName, clusterName, username, options) {
777
+ var _a, _b, _c;
778
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityUser(orgName, clusterName, username, options);
779
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
780
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.deleteElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
781
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
782
+ },
783
+ /**
784
+ *
785
+ * @summary Get Elasticsearch builtin privileges
786
+ * @param {string} orgName
787
+ * @param {string} clusterName
788
+ * @param {*} [options] Override http request option.
789
+ * @throws {RequiredError}
790
+ */
791
+ async getElasticsearchBuiltinPrivileges(orgName, clusterName, options) {
792
+ var _a, _b, _c;
793
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchBuiltinPrivileges(orgName, clusterName, options);
794
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
795
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.getElasticsearchBuiltinPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
796
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
797
+ },
798
+ /**
799
+ *
800
+ * @summary Get Elasticsearch security role
801
+ * @param {string} orgName
802
+ * @param {string} clusterName
803
+ * @param {string} roleName
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ async getElasticsearchSecurityRole(orgName, clusterName, roleName, options) {
808
+ var _a, _b, _c;
809
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityRole(orgName, clusterName, roleName, options);
810
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
811
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.getElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
812
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
813
+ },
814
+ /**
815
+ *
816
+ * @summary Get Elasticsearch security role mapping
817
+ * @param {string} orgName
818
+ * @param {string} clusterName
819
+ * @param {string} mappingName
820
+ * @param {*} [options] Override http request option.
821
+ * @throws {RequiredError}
822
+ */
823
+ async getElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options) {
824
+ var _a, _b, _c;
825
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options);
826
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
827
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.getElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
828
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
829
+ },
830
+ /**
831
+ *
832
+ * @summary Get Elasticsearch security user
833
+ * @param {string} orgName
834
+ * @param {string} clusterName
835
+ * @param {string} username
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ async getElasticsearchSecurityUser(orgName, clusterName, username, options) {
840
+ var _a, _b, _c;
841
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityUser(orgName, clusterName, username, options);
842
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
843
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.getElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
844
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
845
+ },
846
+ /**
847
+ *
848
+ * @summary List Elasticsearch security role mappings
849
+ * @param {string} orgName
850
+ * @param {string} clusterName
851
+ * @param {*} [options] Override http request option.
852
+ * @throws {RequiredError}
853
+ */
854
+ async listElasticsearchSecurityRoleMappings(orgName, clusterName, options) {
855
+ var _a, _b, _c;
856
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityRoleMappings(orgName, clusterName, options);
857
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
858
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.listElasticsearchSecurityRoleMappings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
859
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
860
+ },
861
+ /**
862
+ *
863
+ * @summary List Elasticsearch security roles
864
+ * @param {string} orgName
865
+ * @param {string} clusterName
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ */
869
+ async listElasticsearchSecurityRoles(orgName, clusterName, options) {
870
+ var _a, _b, _c;
871
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityRoles(orgName, clusterName, options);
872
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
873
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.listElasticsearchSecurityRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
874
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
875
+ },
876
+ /**
877
+ *
878
+ * @summary List Elasticsearch security users
879
+ * @param {string} orgName
880
+ * @param {string} clusterName
881
+ * @param {*} [options] Override http request option.
882
+ * @throws {RequiredError}
883
+ */
884
+ async listElasticsearchSecurityUsers(orgName, clusterName, options) {
885
+ var _a, _b, _c;
886
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityUsers(orgName, clusterName, options);
887
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
888
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.listElasticsearchSecurityUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
889
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
890
+ },
891
+ /**
892
+ *
893
+ * @summary Lock Elasticsearch account
894
+ * @param {string} orgName
895
+ * @param {string} clusterName
896
+ * @param {string} username
897
+ * @param {*} [options] Override http request option.
898
+ * @throws {RequiredError}
899
+ */
900
+ async lockElasticsearchSecurityUser(orgName, clusterName, username, options) {
901
+ var _a, _b, _c;
902
+ const localVarAxiosArgs = await localVarAxiosParamCreator.lockElasticsearchSecurityUser(orgName, clusterName, username, options);
903
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
904
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.lockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
905
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
906
+ },
907
+ /**
908
+ *
909
+ * @summary Create or update Elasticsearch security role
910
+ * @param {string} orgName
911
+ * @param {string} clusterName
912
+ * @param {string} roleName
913
+ * @param {ESSecurityRoleDescriptor} body
914
+ * @param {*} [options] Override http request option.
915
+ * @throws {RequiredError}
916
+ */
917
+ async putElasticsearchSecurityRole(orgName, clusterName, roleName, body, options) {
918
+ var _a, _b, _c;
919
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityRole(orgName, clusterName, roleName, body, options);
920
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
921
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.putElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
922
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
923
+ },
924
+ /**
925
+ *
926
+ * @summary Create or update Elasticsearch security role mapping
927
+ * @param {string} orgName
928
+ * @param {string} clusterName
929
+ * @param {string} mappingName
930
+ * @param {ESSecurityRoleMapping} body
931
+ * @param {*} [options] Override http request option.
932
+ * @throws {RequiredError}
933
+ */
934
+ async putElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, body, options) {
935
+ var _a, _b, _c;
936
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, body, options);
937
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
938
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.putElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
939
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
940
+ },
941
+ /**
942
+ *
943
+ * @summary Create or update Elasticsearch security user
944
+ * @param {string} orgName
945
+ * @param {string} clusterName
946
+ * @param {string} username
947
+ * @param {ESPutSecurityUserRequest} body
948
+ * @param {*} [options] Override http request option.
949
+ * @throws {RequiredError}
950
+ */
951
+ async putElasticsearchSecurityUser(orgName, clusterName, username, body, options) {
952
+ var _a, _b, _c;
953
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityUser(orgName, clusterName, username, body, options);
954
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
955
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.putElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
956
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
957
+ },
958
+ /**
959
+ *
960
+ * @summary Unlock Elasticsearch account
961
+ * @param {string} orgName
962
+ * @param {string} clusterName
963
+ * @param {string} username
964
+ * @param {*} [options] Override http request option.
965
+ * @throws {RequiredError}
966
+ */
967
+ async unlockElasticsearchSecurityUser(orgName, clusterName, username, options) {
968
+ var _a, _b, _c;
969
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unlockElasticsearchSecurityUser(orgName, clusterName, username, options);
970
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
971
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ElasticsearchApi.unlockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
972
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
973
+ },
974
+ };
975
+ };
976
+ exports.ElasticsearchApiFp = ElasticsearchApiFp;
977
+ /**
978
+ * ElasticsearchApi - factory interface
979
+ * @export
980
+ */
981
+ const ElasticsearchApiFactory = function (configuration, basePath, axios) {
982
+ const localVarFp = (0, exports.ElasticsearchApiFp)(configuration);
983
+ return {
984
+ /**
985
+ *
986
+ * @summary Change Elasticsearch account password
987
+ * @param {ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
988
+ * @param {*} [options] Override http request option.
989
+ * @throws {RequiredError}
990
+ */
991
+ changeElasticsearchSecurityUserPassword(requestParameters, options) {
992
+ return localVarFp.changeElasticsearchSecurityUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
993
+ },
994
+ /**
995
+ *
996
+ * @summary Delete Elasticsearch security role
997
+ * @param {ElasticsearchApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
998
+ * @param {*} [options] Override http request option.
999
+ * @throws {RequiredError}
1000
+ */
1001
+ deleteElasticsearchSecurityRole(requestParameters, options) {
1002
+ return localVarFp.deleteElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
1003
+ },
1004
+ /**
1005
+ *
1006
+ * @summary Delete Elasticsearch security role mapping
1007
+ * @param {ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ deleteElasticsearchSecurityRoleMapping(requestParameters, options) {
1012
+ return localVarFp.deleteElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(axios, basePath));
1013
+ },
1014
+ /**
1015
+ *
1016
+ * @summary Delete Elasticsearch security user
1017
+ * @param {ElasticsearchApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
1018
+ * @param {*} [options] Override http request option.
1019
+ * @throws {RequiredError}
1020
+ */
1021
+ deleteElasticsearchSecurityUser(requestParameters, options) {
1022
+ return localVarFp.deleteElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
1023
+ },
1024
+ /**
1025
+ *
1026
+ * @summary Get Elasticsearch builtin privileges
1027
+ * @param {ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ getElasticsearchBuiltinPrivileges(requestParameters, options) {
1032
+ return localVarFp.getElasticsearchBuiltinPrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1033
+ },
1034
+ /**
1035
+ *
1036
+ * @summary Get Elasticsearch security role
1037
+ * @param {ElasticsearchApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
1038
+ * @param {*} [options] Override http request option.
1039
+ * @throws {RequiredError}
1040
+ */
1041
+ getElasticsearchSecurityRole(requestParameters, options) {
1042
+ return localVarFp.getElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
1043
+ },
1044
+ /**
1045
+ *
1046
+ * @summary Get Elasticsearch security role mapping
1047
+ * @param {ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
1048
+ * @param {*} [options] Override http request option.
1049
+ * @throws {RequiredError}
1050
+ */
1051
+ getElasticsearchSecurityRoleMapping(requestParameters, options) {
1052
+ return localVarFp.getElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(axios, basePath));
1053
+ },
1054
+ /**
1055
+ *
1056
+ * @summary Get Elasticsearch security user
1057
+ * @param {ElasticsearchApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
1058
+ * @param {*} [options] Override http request option.
1059
+ * @throws {RequiredError}
1060
+ */
1061
+ getElasticsearchSecurityUser(requestParameters, options) {
1062
+ return localVarFp.getElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
1063
+ },
1064
+ /**
1065
+ *
1066
+ * @summary List Elasticsearch security role mappings
1067
+ * @param {ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
1068
+ * @param {*} [options] Override http request option.
1069
+ * @throws {RequiredError}
1070
+ */
1071
+ listElasticsearchSecurityRoleMappings(requestParameters, options) {
1072
+ return localVarFp.listElasticsearchSecurityRoleMappings(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1073
+ },
1074
+ /**
1075
+ *
1076
+ * @summary List Elasticsearch security roles
1077
+ * @param {ElasticsearchApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
1078
+ * @param {*} [options] Override http request option.
1079
+ * @throws {RequiredError}
1080
+ */
1081
+ listElasticsearchSecurityRoles(requestParameters, options) {
1082
+ return localVarFp.listElasticsearchSecurityRoles(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1083
+ },
1084
+ /**
1085
+ *
1086
+ * @summary List Elasticsearch security users
1087
+ * @param {ElasticsearchApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
1088
+ * @param {*} [options] Override http request option.
1089
+ * @throws {RequiredError}
1090
+ */
1091
+ listElasticsearchSecurityUsers(requestParameters, options) {
1092
+ return localVarFp.listElasticsearchSecurityUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
1093
+ },
1094
+ /**
1095
+ *
1096
+ * @summary Lock Elasticsearch account
1097
+ * @param {ElasticsearchApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
1098
+ * @param {*} [options] Override http request option.
1099
+ * @throws {RequiredError}
1100
+ */
1101
+ lockElasticsearchSecurityUser(requestParameters, options) {
1102
+ return localVarFp.lockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
1103
+ },
1104
+ /**
1105
+ *
1106
+ * @summary Create or update Elasticsearch security role
1107
+ * @param {ElasticsearchApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
1108
+ * @param {*} [options] Override http request option.
1109
+ * @throws {RequiredError}
1110
+ */
1111
+ putElasticsearchSecurityRole(requestParameters, options) {
1112
+ return localVarFp.putElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
1113
+ },
1114
+ /**
1115
+ *
1116
+ * @summary Create or update Elasticsearch security role mapping
1117
+ * @param {ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
1118
+ * @param {*} [options] Override http request option.
1119
+ * @throws {RequiredError}
1120
+ */
1121
+ putElasticsearchSecurityRoleMapping(requestParameters, options) {
1122
+ return localVarFp.putElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, requestParameters.body, options).then((request) => request(axios, basePath));
1123
+ },
1124
+ /**
1125
+ *
1126
+ * @summary Create or update Elasticsearch security user
1127
+ * @param {ElasticsearchApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ */
1131
+ putElasticsearchSecurityUser(requestParameters, options) {
1132
+ return localVarFp.putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
1133
+ },
1134
+ /**
1135
+ *
1136
+ * @summary Unlock Elasticsearch account
1137
+ * @param {ElasticsearchApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
1138
+ * @param {*} [options] Override http request option.
1139
+ * @throws {RequiredError}
1140
+ */
1141
+ unlockElasticsearchSecurityUser(requestParameters, options) {
1142
+ return localVarFp.unlockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
1143
+ },
1144
+ };
1145
+ };
1146
+ exports.ElasticsearchApiFactory = ElasticsearchApiFactory;
1147
+ /**
1148
+ * ElasticsearchApi - object-oriented interface
1149
+ * @export
1150
+ * @class ElasticsearchApi
1151
+ * @extends {BaseAPI}
1152
+ */
1153
+ class ElasticsearchApi extends base_1.BaseAPI {
1154
+ /**
1155
+ *
1156
+ * @summary Change Elasticsearch account password
1157
+ * @param {ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
1158
+ * @param {*} [options] Override http request option.
1159
+ * @throws {RequiredError}
1160
+ * @memberof ElasticsearchApi
1161
+ */
1162
+ changeElasticsearchSecurityUserPassword(requestParameters, options) {
1163
+ return (0, exports.ElasticsearchApiFp)(this.configuration).changeElasticsearchSecurityUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1164
+ }
1165
+ /**
1166
+ *
1167
+ * @summary Delete Elasticsearch security role
1168
+ * @param {ElasticsearchApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
1169
+ * @param {*} [options] Override http request option.
1170
+ * @throws {RequiredError}
1171
+ * @memberof ElasticsearchApi
1172
+ */
1173
+ deleteElasticsearchSecurityRole(requestParameters, options) {
1174
+ return (0, exports.ElasticsearchApiFp)(this.configuration).deleteElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
1175
+ }
1176
+ /**
1177
+ *
1178
+ * @summary Delete Elasticsearch security role mapping
1179
+ * @param {ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
1180
+ * @param {*} [options] Override http request option.
1181
+ * @throws {RequiredError}
1182
+ * @memberof ElasticsearchApi
1183
+ */
1184
+ deleteElasticsearchSecurityRoleMapping(requestParameters, options) {
1185
+ return (0, exports.ElasticsearchApiFp)(this.configuration).deleteElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(this.axios, this.basePath));
1186
+ }
1187
+ /**
1188
+ *
1189
+ * @summary Delete Elasticsearch security user
1190
+ * @param {ElasticsearchApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ * @memberof ElasticsearchApi
1194
+ */
1195
+ deleteElasticsearchSecurityUser(requestParameters, options) {
1196
+ return (0, exports.ElasticsearchApiFp)(this.configuration).deleteElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
1197
+ }
1198
+ /**
1199
+ *
1200
+ * @summary Get Elasticsearch builtin privileges
1201
+ * @param {ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
1202
+ * @param {*} [options] Override http request option.
1203
+ * @throws {RequiredError}
1204
+ * @memberof ElasticsearchApi
1205
+ */
1206
+ getElasticsearchBuiltinPrivileges(requestParameters, options) {
1207
+ return (0, exports.ElasticsearchApiFp)(this.configuration).getElasticsearchBuiltinPrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1208
+ }
1209
+ /**
1210
+ *
1211
+ * @summary Get Elasticsearch security role
1212
+ * @param {ElasticsearchApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
1213
+ * @param {*} [options] Override http request option.
1214
+ * @throws {RequiredError}
1215
+ * @memberof ElasticsearchApi
1216
+ */
1217
+ getElasticsearchSecurityRole(requestParameters, options) {
1218
+ return (0, exports.ElasticsearchApiFp)(this.configuration).getElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
1219
+ }
1220
+ /**
1221
+ *
1222
+ * @summary Get Elasticsearch security role mapping
1223
+ * @param {ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
1224
+ * @param {*} [options] Override http request option.
1225
+ * @throws {RequiredError}
1226
+ * @memberof ElasticsearchApi
1227
+ */
1228
+ getElasticsearchSecurityRoleMapping(requestParameters, options) {
1229
+ return (0, exports.ElasticsearchApiFp)(this.configuration).getElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(this.axios, this.basePath));
1230
+ }
1231
+ /**
1232
+ *
1233
+ * @summary Get Elasticsearch security user
1234
+ * @param {ElasticsearchApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ * @memberof ElasticsearchApi
1238
+ */
1239
+ getElasticsearchSecurityUser(requestParameters, options) {
1240
+ return (0, exports.ElasticsearchApiFp)(this.configuration).getElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
1241
+ }
1242
+ /**
1243
+ *
1244
+ * @summary List Elasticsearch security role mappings
1245
+ * @param {ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
1246
+ * @param {*} [options] Override http request option.
1247
+ * @throws {RequiredError}
1248
+ * @memberof ElasticsearchApi
1249
+ */
1250
+ listElasticsearchSecurityRoleMappings(requestParameters, options) {
1251
+ return (0, exports.ElasticsearchApiFp)(this.configuration).listElasticsearchSecurityRoleMappings(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1252
+ }
1253
+ /**
1254
+ *
1255
+ * @summary List Elasticsearch security roles
1256
+ * @param {ElasticsearchApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
1257
+ * @param {*} [options] Override http request option.
1258
+ * @throws {RequiredError}
1259
+ * @memberof ElasticsearchApi
1260
+ */
1261
+ listElasticsearchSecurityRoles(requestParameters, options) {
1262
+ return (0, exports.ElasticsearchApiFp)(this.configuration).listElasticsearchSecurityRoles(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1263
+ }
1264
+ /**
1265
+ *
1266
+ * @summary List Elasticsearch security users
1267
+ * @param {ElasticsearchApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
1268
+ * @param {*} [options] Override http request option.
1269
+ * @throws {RequiredError}
1270
+ * @memberof ElasticsearchApi
1271
+ */
1272
+ listElasticsearchSecurityUsers(requestParameters, options) {
1273
+ return (0, exports.ElasticsearchApiFp)(this.configuration).listElasticsearchSecurityUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
1274
+ }
1275
+ /**
1276
+ *
1277
+ * @summary Lock Elasticsearch account
1278
+ * @param {ElasticsearchApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
1279
+ * @param {*} [options] Override http request option.
1280
+ * @throws {RequiredError}
1281
+ * @memberof ElasticsearchApi
1282
+ */
1283
+ lockElasticsearchSecurityUser(requestParameters, options) {
1284
+ return (0, exports.ElasticsearchApiFp)(this.configuration).lockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
1285
+ }
1286
+ /**
1287
+ *
1288
+ * @summary Create or update Elasticsearch security role
1289
+ * @param {ElasticsearchApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
1290
+ * @param {*} [options] Override http request option.
1291
+ * @throws {RequiredError}
1292
+ * @memberof ElasticsearchApi
1293
+ */
1294
+ putElasticsearchSecurityRole(requestParameters, options) {
1295
+ return (0, exports.ElasticsearchApiFp)(this.configuration).putElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1296
+ }
1297
+ /**
1298
+ *
1299
+ * @summary Create or update Elasticsearch security role mapping
1300
+ * @param {ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
1301
+ * @param {*} [options] Override http request option.
1302
+ * @throws {RequiredError}
1303
+ * @memberof ElasticsearchApi
1304
+ */
1305
+ putElasticsearchSecurityRoleMapping(requestParameters, options) {
1306
+ return (0, exports.ElasticsearchApiFp)(this.configuration).putElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1307
+ }
1308
+ /**
1309
+ *
1310
+ * @summary Create or update Elasticsearch security user
1311
+ * @param {ElasticsearchApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
1312
+ * @param {*} [options] Override http request option.
1313
+ * @throws {RequiredError}
1314
+ * @memberof ElasticsearchApi
1315
+ */
1316
+ putElasticsearchSecurityUser(requestParameters, options) {
1317
+ return (0, exports.ElasticsearchApiFp)(this.configuration).putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
1318
+ }
1319
+ /**
1320
+ *
1321
+ * @summary Unlock Elasticsearch account
1322
+ * @param {ElasticsearchApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
1323
+ * @param {*} [options] Override http request option.
1324
+ * @throws {RequiredError}
1325
+ * @memberof ElasticsearchApi
1326
+ */
1327
+ unlockElasticsearchSecurityUser(requestParameters, options) {
1328
+ return (0, exports.ElasticsearchApiFp)(this.configuration).unlockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
1329
+ }
1330
+ }
1331
+ exports.ElasticsearchApi = ElasticsearchApi;
1332
+ //# sourceMappingURL=elasticsearch-api.js.map