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.
- package/dist/adminapi/api.d.ts +1 -0
- package/dist/adminapi/api.d.ts.map +1 -1
- package/dist/adminapi/api.js +1 -0
- package/dist/adminapi/api.js.map +1 -1
- package/dist/adminapi/apis/elasticsearch-api.d.ts +1221 -0
- package/dist/adminapi/apis/elasticsearch-api.d.ts.map +1 -0
- package/dist/adminapi/apis/elasticsearch-api.js +1332 -0
- package/dist/adminapi/apis/elasticsearch-api.js.map +1 -0
- package/dist/adminapi/apis/shared-api.d.ts +1187 -14
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +1402 -134
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/account-option.d.ts +18 -0
- package/dist/adminapi/models/account-option.d.ts.map +1 -1
- package/dist/adminapi/models/esput-security-user-request.d.ts +63 -0
- package/dist/adminapi/models/esput-security-user-request.d.ts.map +1 -0
- package/dist/adminapi/models/esput-security-user-request.js +16 -0
- package/dist/adminapi/models/esput-security-user-request.js.map +1 -0
- package/dist/adminapi/models/essecurity-application-privileges.d.ts +37 -0
- package/dist/adminapi/models/essecurity-application-privileges.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-application-privileges.js +16 -0
- package/dist/adminapi/models/essecurity-application-privileges.js.map +1 -0
- package/dist/adminapi/models/essecurity-field-security.d.ts +31 -0
- package/dist/adminapi/models/essecurity-field-security.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-field-security.js +16 -0
- package/dist/adminapi/models/essecurity-field-security.js.map +1 -0
- package/dist/adminapi/models/essecurity-index-privileges.d.ts +50 -0
- package/dist/adminapi/models/essecurity-index-privileges.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-index-privileges.js +16 -0
- package/dist/adminapi/models/essecurity-index-privileges.js.map +1 -0
- package/dist/adminapi/models/essecurity-password-request.d.ts +25 -0
- package/dist/adminapi/models/essecurity-password-request.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-password-request.js +16 -0
- package/dist/adminapi/models/essecurity-password-request.js.map +1 -0
- package/dist/adminapi/models/essecurity-remote-cluster-privileges.d.ts +31 -0
- package/dist/adminapi/models/essecurity-remote-cluster-privileges.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-remote-cluster-privileges.js +16 -0
- package/dist/adminapi/models/essecurity-remote-cluster-privileges.js.map +1 -0
- package/dist/adminapi/models/essecurity-remote-index-privileges.d.ts +56 -0
- package/dist/adminapi/models/essecurity-remote-index-privileges.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-remote-index-privileges.js +16 -0
- package/dist/adminapi/models/essecurity-remote-index-privileges.js.map +1 -0
- package/dist/adminapi/models/essecurity-role-descriptor.d.ts +97 -0
- package/dist/adminapi/models/essecurity-role-descriptor.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-role-descriptor.js +16 -0
- package/dist/adminapi/models/essecurity-role-descriptor.js.map +1 -0
- package/dist/adminapi/models/essecurity-role-mapping.d.ts +54 -0
- package/dist/adminapi/models/essecurity-role-mapping.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-role-mapping.js +16 -0
- package/dist/adminapi/models/essecurity-role-mapping.js.map +1 -0
- package/dist/adminapi/models/essecurity-role-template-format.d.ts +22 -0
- package/dist/adminapi/models/essecurity-role-template-format.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-role-template-format.js +26 -0
- package/dist/adminapi/models/essecurity-role-template-format.js.map +1 -0
- package/dist/adminapi/models/essecurity-role-template.d.ts +34 -0
- package/dist/adminapi/models/essecurity-role-template.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-role-template.js +16 -0
- package/dist/adminapi/models/essecurity-role-template.js.map +1 -0
- package/dist/adminapi/models/essecurity-user.d.ts +51 -0
- package/dist/adminapi/models/essecurity-user.d.ts.map +1 -0
- package/dist/adminapi/models/essecurity-user.js +16 -0
- package/dist/adminapi/models/essecurity-user.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +12 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +12 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/openapi/api.d.ts +1 -0
- package/dist/openapi/api.d.ts.map +1 -1
- package/dist/openapi/api.js +1 -0
- package/dist/openapi/api.js.map +1 -1
- package/dist/openapi/apis/elasticsearch-api.d.ts +1221 -0
- package/dist/openapi/apis/elasticsearch-api.d.ts.map +1 -0
- package/dist/openapi/apis/elasticsearch-api.js +1332 -0
- package/dist/openapi/apis/elasticsearch-api.js.map +1 -0
- package/dist/openapi/apis/shared-api.d.ts +1187 -14
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +1407 -139
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/account-option.d.ts +18 -0
- package/dist/openapi/models/account-option.d.ts.map +1 -1
- package/dist/openapi/models/esput-security-user-request.d.ts +63 -0
- package/dist/openapi/models/esput-security-user-request.d.ts.map +1 -0
- package/dist/openapi/models/esput-security-user-request.js +16 -0
- package/dist/openapi/models/esput-security-user-request.js.map +1 -0
- package/dist/openapi/models/essecurity-application-privileges.d.ts +37 -0
- package/dist/openapi/models/essecurity-application-privileges.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-application-privileges.js +16 -0
- package/dist/openapi/models/essecurity-application-privileges.js.map +1 -0
- package/dist/openapi/models/essecurity-field-security.d.ts +31 -0
- package/dist/openapi/models/essecurity-field-security.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-field-security.js +16 -0
- package/dist/openapi/models/essecurity-field-security.js.map +1 -0
- package/dist/openapi/models/essecurity-index-privileges.d.ts +50 -0
- package/dist/openapi/models/essecurity-index-privileges.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-index-privileges.js +16 -0
- package/dist/openapi/models/essecurity-index-privileges.js.map +1 -0
- package/dist/openapi/models/essecurity-password-request.d.ts +25 -0
- package/dist/openapi/models/essecurity-password-request.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-password-request.js +16 -0
- package/dist/openapi/models/essecurity-password-request.js.map +1 -0
- package/dist/openapi/models/essecurity-remote-cluster-privileges.d.ts +31 -0
- package/dist/openapi/models/essecurity-remote-cluster-privileges.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-remote-cluster-privileges.js +16 -0
- package/dist/openapi/models/essecurity-remote-cluster-privileges.js.map +1 -0
- package/dist/openapi/models/essecurity-remote-index-privileges.d.ts +56 -0
- package/dist/openapi/models/essecurity-remote-index-privileges.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-remote-index-privileges.js +16 -0
- package/dist/openapi/models/essecurity-remote-index-privileges.js.map +1 -0
- package/dist/openapi/models/essecurity-role-descriptor.d.ts +97 -0
- package/dist/openapi/models/essecurity-role-descriptor.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-role-descriptor.js +16 -0
- package/dist/openapi/models/essecurity-role-descriptor.js.map +1 -0
- package/dist/openapi/models/essecurity-role-mapping.d.ts +54 -0
- package/dist/openapi/models/essecurity-role-mapping.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-role-mapping.js +16 -0
- package/dist/openapi/models/essecurity-role-mapping.js.map +1 -0
- package/dist/openapi/models/essecurity-role-template-format.d.ts +22 -0
- package/dist/openapi/models/essecurity-role-template-format.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-role-template-format.js +26 -0
- package/dist/openapi/models/essecurity-role-template-format.js.map +1 -0
- package/dist/openapi/models/essecurity-role-template.d.ts +34 -0
- package/dist/openapi/models/essecurity-role-template.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-role-template.js +16 -0
- package/dist/openapi/models/essecurity-role-template.js.map +1 -0
- package/dist/openapi/models/essecurity-user.d.ts +51 -0
- package/dist/openapi/models/essecurity-user.d.ts.map +1 -0
- package/dist/openapi/models/essecurity-user.js +16 -0
- package/dist/openapi/models/essecurity-user.js.map +1 -0
- package/dist/openapi/models/index.d.ts +12 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +12 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +13 -0
- package/src/adminapi/api.ts +1 -0
- package/src/adminapi/apis/elasticsearch-api.ts +2072 -0
- package/src/adminapi/apis/shared-api.ts +2141 -139
- package/src/adminapi/models/account-option.ts +18 -0
- package/src/adminapi/models/esput-security-user-request.ts +66 -0
- package/src/adminapi/models/essecurity-application-privileges.ts +42 -0
- package/src/adminapi/models/essecurity-field-security.ts +36 -0
- package/src/adminapi/models/essecurity-index-privileges.ts +57 -0
- package/src/adminapi/models/essecurity-password-request.ts +30 -0
- package/src/adminapi/models/essecurity-remote-cluster-privileges.ts +36 -0
- package/src/adminapi/models/essecurity-remote-index-privileges.ts +63 -0
- package/src/adminapi/models/essecurity-role-descriptor.ts +102 -0
- package/src/adminapi/models/essecurity-role-mapping.ts +57 -0
- package/src/adminapi/models/essecurity-role-template-format.ts +31 -0
- package/src/adminapi/models/essecurity-role-template.ts +41 -0
- package/src/adminapi/models/essecurity-user.ts +54 -0
- package/src/adminapi/models/index.ts +12 -0
- package/src/adminapi.yaml +874 -0
- package/src/openapi/.openapi-generator/FILES +13 -0
- package/src/openapi/api.ts +1 -0
- package/src/openapi/apis/elasticsearch-api.ts +2072 -0
- package/src/openapi/apis/shared-api.ts +2144 -142
- package/src/openapi/models/account-option.ts +18 -0
- package/src/openapi/models/esput-security-user-request.ts +66 -0
- package/src/openapi/models/essecurity-application-privileges.ts +42 -0
- package/src/openapi/models/essecurity-field-security.ts +36 -0
- package/src/openapi/models/essecurity-index-privileges.ts +57 -0
- package/src/openapi/models/essecurity-password-request.ts +30 -0
- package/src/openapi/models/essecurity-remote-cluster-privileges.ts +36 -0
- package/src/openapi/models/essecurity-remote-index-privileges.ts +63 -0
- package/src/openapi/models/essecurity-role-descriptor.ts +102 -0
- package/src/openapi/models/essecurity-role-mapping.ts +57 -0
- package/src/openapi/models/essecurity-role-template-format.ts +31 -0
- package/src/openapi/models/essecurity-role-template.ts +41 -0
- package/src/openapi/models/essecurity-user.ts +54 -0
- package/src/openapi/models/index.ts +12 -0
- package/src/openapi.yaml +874 -0
|
@@ -0,0 +1,2072 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* KubeBlocks Cloud API
|
|
5
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import type { Configuration } from '../configuration';
|
|
17
|
+
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
+
import globalAxios from 'axios';
|
|
19
|
+
// Some imports not used depending on template conditions
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
22
|
+
// @ts-ignore
|
|
23
|
+
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
import type { APIErrorResponse } from '../models';
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { ESPutSecurityUserRequest } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { ESSecurityPasswordRequest } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { ESSecurityRoleDescriptor } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { ESSecurityRoleMapping } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { ESSecurityUser } from '../models';
|
|
36
|
+
/**
|
|
37
|
+
* ElasticsearchApi - axios parameter creator
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ElasticsearchApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
41
|
+
return {
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @summary Change Elasticsearch account password
|
|
45
|
+
* @param {string} orgName
|
|
46
|
+
* @param {string} clusterName
|
|
47
|
+
* @param {string} username
|
|
48
|
+
* @param {ESSecurityPasswordRequest} body
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
changeElasticsearchSecurityUserPassword: async (orgName: string, clusterName: string, username: string, body: ESSecurityPasswordRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
54
|
+
assertParamExists('changeElasticsearchSecurityUserPassword', 'orgName', orgName)
|
|
55
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
56
|
+
assertParamExists('changeElasticsearchSecurityUserPassword', 'clusterName', clusterName)
|
|
57
|
+
// verify required parameter 'username' is not null or undefined
|
|
58
|
+
assertParamExists('changeElasticsearchSecurityUserPassword', 'username', username)
|
|
59
|
+
// verify required parameter 'body' is not null or undefined
|
|
60
|
+
assertParamExists('changeElasticsearchSecurityUserPassword', 'body', body)
|
|
61
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
62
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
63
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
64
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
65
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
66
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
67
|
+
let baseOptions;
|
|
68
|
+
if (configuration) {
|
|
69
|
+
baseOptions = configuration.baseOptions;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
73
|
+
const localVarHeaderParameter = {} as any;
|
|
74
|
+
const localVarQueryParameter = {} as any;
|
|
75
|
+
|
|
76
|
+
// authentication BearerToken required
|
|
77
|
+
// http bearer authentication required
|
|
78
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
79
|
+
|
|
80
|
+
// authentication DigestAuth required
|
|
81
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
86
|
+
|
|
87
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
88
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
89
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
90
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
url: toPathString(localVarUrlObj),
|
|
94
|
+
options: localVarRequestOptions,
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @summary Delete Elasticsearch security role
|
|
100
|
+
* @param {string} orgName
|
|
101
|
+
* @param {string} clusterName
|
|
102
|
+
* @param {string} roleName
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
deleteElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
108
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'orgName', orgName)
|
|
109
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
110
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'clusterName', clusterName)
|
|
111
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
112
|
+
assertParamExists('deleteElasticsearchSecurityRole', 'roleName', roleName)
|
|
113
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
114
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
115
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
116
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
117
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
118
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
119
|
+
let baseOptions;
|
|
120
|
+
if (configuration) {
|
|
121
|
+
baseOptions = configuration.baseOptions;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
125
|
+
const localVarHeaderParameter = {} as any;
|
|
126
|
+
const localVarQueryParameter = {} as any;
|
|
127
|
+
|
|
128
|
+
// authentication BearerToken required
|
|
129
|
+
// http bearer authentication required
|
|
130
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
131
|
+
|
|
132
|
+
// authentication DigestAuth required
|
|
133
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
url: toPathString(localVarUrlObj),
|
|
143
|
+
options: localVarRequestOptions,
|
|
144
|
+
};
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @summary Delete Elasticsearch security role mapping
|
|
149
|
+
* @param {string} orgName
|
|
150
|
+
* @param {string} clusterName
|
|
151
|
+
* @param {string} mappingName
|
|
152
|
+
* @param {*} [options] Override http request option.
|
|
153
|
+
* @throws {RequiredError}
|
|
154
|
+
*/
|
|
155
|
+
deleteElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
156
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
157
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'orgName', orgName)
|
|
158
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
159
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
|
|
160
|
+
// verify required parameter 'mappingName' is not null or undefined
|
|
161
|
+
assertParamExists('deleteElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
|
|
162
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
|
|
163
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
164
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
165
|
+
.replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
|
|
166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
167
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
168
|
+
let baseOptions;
|
|
169
|
+
if (configuration) {
|
|
170
|
+
baseOptions = configuration.baseOptions;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
174
|
+
const localVarHeaderParameter = {} as any;
|
|
175
|
+
const localVarQueryParameter = {} as any;
|
|
176
|
+
|
|
177
|
+
// authentication BearerToken required
|
|
178
|
+
// http bearer authentication required
|
|
179
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
180
|
+
|
|
181
|
+
// authentication DigestAuth required
|
|
182
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
187
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
188
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
189
|
+
|
|
190
|
+
return {
|
|
191
|
+
url: toPathString(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
};
|
|
194
|
+
},
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @summary Delete Elasticsearch security user
|
|
198
|
+
* @param {string} orgName
|
|
199
|
+
* @param {string} clusterName
|
|
200
|
+
* @param {string} username
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
deleteElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
205
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
206
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'orgName', orgName)
|
|
207
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
208
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'clusterName', clusterName)
|
|
209
|
+
// verify required parameter 'username' is not null or undefined
|
|
210
|
+
assertParamExists('deleteElasticsearchSecurityUser', 'username', username)
|
|
211
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
212
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
213
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
214
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
215
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
216
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
217
|
+
let baseOptions;
|
|
218
|
+
if (configuration) {
|
|
219
|
+
baseOptions = configuration.baseOptions;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
223
|
+
const localVarHeaderParameter = {} as any;
|
|
224
|
+
const localVarQueryParameter = {} as any;
|
|
225
|
+
|
|
226
|
+
// authentication BearerToken required
|
|
227
|
+
// http bearer authentication required
|
|
228
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
229
|
+
|
|
230
|
+
// authentication DigestAuth required
|
|
231
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
236
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
237
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
238
|
+
|
|
239
|
+
return {
|
|
240
|
+
url: toPathString(localVarUrlObj),
|
|
241
|
+
options: localVarRequestOptions,
|
|
242
|
+
};
|
|
243
|
+
},
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @summary Get Elasticsearch builtin privileges
|
|
247
|
+
* @param {string} orgName
|
|
248
|
+
* @param {string} clusterName
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
getElasticsearchBuiltinPrivileges: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
253
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
254
|
+
assertParamExists('getElasticsearchBuiltinPrivileges', 'orgName', orgName)
|
|
255
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
256
|
+
assertParamExists('getElasticsearchBuiltinPrivileges', 'clusterName', clusterName)
|
|
257
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/privileges/builtin`
|
|
258
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
259
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
262
|
+
let baseOptions;
|
|
263
|
+
if (configuration) {
|
|
264
|
+
baseOptions = configuration.baseOptions;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
268
|
+
const localVarHeaderParameter = {} as any;
|
|
269
|
+
const localVarQueryParameter = {} as any;
|
|
270
|
+
|
|
271
|
+
// authentication BearerToken required
|
|
272
|
+
// http bearer authentication required
|
|
273
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
274
|
+
|
|
275
|
+
// authentication DigestAuth required
|
|
276
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
281
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
282
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
283
|
+
|
|
284
|
+
return {
|
|
285
|
+
url: toPathString(localVarUrlObj),
|
|
286
|
+
options: localVarRequestOptions,
|
|
287
|
+
};
|
|
288
|
+
},
|
|
289
|
+
/**
|
|
290
|
+
*
|
|
291
|
+
* @summary Get Elasticsearch security role
|
|
292
|
+
* @param {string} orgName
|
|
293
|
+
* @param {string} clusterName
|
|
294
|
+
* @param {string} roleName
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
*/
|
|
298
|
+
getElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
299
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
300
|
+
assertParamExists('getElasticsearchSecurityRole', 'orgName', orgName)
|
|
301
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
302
|
+
assertParamExists('getElasticsearchSecurityRole', 'clusterName', clusterName)
|
|
303
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
304
|
+
assertParamExists('getElasticsearchSecurityRole', 'roleName', roleName)
|
|
305
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
306
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
307
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
308
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
309
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
310
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
311
|
+
let baseOptions;
|
|
312
|
+
if (configuration) {
|
|
313
|
+
baseOptions = configuration.baseOptions;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
317
|
+
const localVarHeaderParameter = {} as any;
|
|
318
|
+
const localVarQueryParameter = {} as any;
|
|
319
|
+
|
|
320
|
+
// authentication BearerToken required
|
|
321
|
+
// http bearer authentication required
|
|
322
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
323
|
+
|
|
324
|
+
// authentication DigestAuth required
|
|
325
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
330
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
331
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
332
|
+
|
|
333
|
+
return {
|
|
334
|
+
url: toPathString(localVarUrlObj),
|
|
335
|
+
options: localVarRequestOptions,
|
|
336
|
+
};
|
|
337
|
+
},
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
* @summary Get Elasticsearch security role mapping
|
|
341
|
+
* @param {string} orgName
|
|
342
|
+
* @param {string} clusterName
|
|
343
|
+
* @param {string} mappingName
|
|
344
|
+
* @param {*} [options] Override http request option.
|
|
345
|
+
* @throws {RequiredError}
|
|
346
|
+
*/
|
|
347
|
+
getElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
348
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
349
|
+
assertParamExists('getElasticsearchSecurityRoleMapping', 'orgName', orgName)
|
|
350
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
351
|
+
assertParamExists('getElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
|
|
352
|
+
// verify required parameter 'mappingName' is not null or undefined
|
|
353
|
+
assertParamExists('getElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
|
|
354
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
|
|
355
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
356
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
357
|
+
.replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
|
|
358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
359
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
360
|
+
let baseOptions;
|
|
361
|
+
if (configuration) {
|
|
362
|
+
baseOptions = configuration.baseOptions;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
366
|
+
const localVarHeaderParameter = {} as any;
|
|
367
|
+
const localVarQueryParameter = {} as any;
|
|
368
|
+
|
|
369
|
+
// authentication BearerToken required
|
|
370
|
+
// http bearer authentication required
|
|
371
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
372
|
+
|
|
373
|
+
// authentication DigestAuth required
|
|
374
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
379
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
380
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
381
|
+
|
|
382
|
+
return {
|
|
383
|
+
url: toPathString(localVarUrlObj),
|
|
384
|
+
options: localVarRequestOptions,
|
|
385
|
+
};
|
|
386
|
+
},
|
|
387
|
+
/**
|
|
388
|
+
*
|
|
389
|
+
* @summary Get Elasticsearch security user
|
|
390
|
+
* @param {string} orgName
|
|
391
|
+
* @param {string} clusterName
|
|
392
|
+
* @param {string} username
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
getElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
397
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
398
|
+
assertParamExists('getElasticsearchSecurityUser', 'orgName', orgName)
|
|
399
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
400
|
+
assertParamExists('getElasticsearchSecurityUser', 'clusterName', clusterName)
|
|
401
|
+
// verify required parameter 'username' is not null or undefined
|
|
402
|
+
assertParamExists('getElasticsearchSecurityUser', 'username', username)
|
|
403
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
404
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
405
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
406
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
407
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
408
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
409
|
+
let baseOptions;
|
|
410
|
+
if (configuration) {
|
|
411
|
+
baseOptions = configuration.baseOptions;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
415
|
+
const localVarHeaderParameter = {} as any;
|
|
416
|
+
const localVarQueryParameter = {} as any;
|
|
417
|
+
|
|
418
|
+
// authentication BearerToken required
|
|
419
|
+
// http bearer authentication required
|
|
420
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
421
|
+
|
|
422
|
+
// authentication DigestAuth required
|
|
423
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
429
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
430
|
+
|
|
431
|
+
return {
|
|
432
|
+
url: toPathString(localVarUrlObj),
|
|
433
|
+
options: localVarRequestOptions,
|
|
434
|
+
};
|
|
435
|
+
},
|
|
436
|
+
/**
|
|
437
|
+
*
|
|
438
|
+
* @summary List Elasticsearch security role mappings
|
|
439
|
+
* @param {string} orgName
|
|
440
|
+
* @param {string} clusterName
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
listElasticsearchSecurityRoleMappings: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
445
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
446
|
+
assertParamExists('listElasticsearchSecurityRoleMappings', 'orgName', orgName)
|
|
447
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
448
|
+
assertParamExists('listElasticsearchSecurityRoleMappings', 'clusterName', clusterName)
|
|
449
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings`
|
|
450
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
451
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
452
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
453
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
454
|
+
let baseOptions;
|
|
455
|
+
if (configuration) {
|
|
456
|
+
baseOptions = configuration.baseOptions;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
460
|
+
const localVarHeaderParameter = {} as any;
|
|
461
|
+
const localVarQueryParameter = {} as any;
|
|
462
|
+
|
|
463
|
+
// authentication BearerToken required
|
|
464
|
+
// http bearer authentication required
|
|
465
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
466
|
+
|
|
467
|
+
// authentication DigestAuth required
|
|
468
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
474
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
475
|
+
|
|
476
|
+
return {
|
|
477
|
+
url: toPathString(localVarUrlObj),
|
|
478
|
+
options: localVarRequestOptions,
|
|
479
|
+
};
|
|
480
|
+
},
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @summary List Elasticsearch security roles
|
|
484
|
+
* @param {string} orgName
|
|
485
|
+
* @param {string} clusterName
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
listElasticsearchSecurityRoles: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
490
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
491
|
+
assertParamExists('listElasticsearchSecurityRoles', 'orgName', orgName)
|
|
492
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
493
|
+
assertParamExists('listElasticsearchSecurityRoles', 'clusterName', clusterName)
|
|
494
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
495
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
496
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
497
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
498
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
499
|
+
let baseOptions;
|
|
500
|
+
if (configuration) {
|
|
501
|
+
baseOptions = configuration.baseOptions;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
505
|
+
const localVarHeaderParameter = {} as any;
|
|
506
|
+
const localVarQueryParameter = {} as any;
|
|
507
|
+
|
|
508
|
+
// authentication BearerToken required
|
|
509
|
+
// http bearer authentication required
|
|
510
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
511
|
+
|
|
512
|
+
// authentication DigestAuth required
|
|
513
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
518
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
519
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
520
|
+
|
|
521
|
+
return {
|
|
522
|
+
url: toPathString(localVarUrlObj),
|
|
523
|
+
options: localVarRequestOptions,
|
|
524
|
+
};
|
|
525
|
+
},
|
|
526
|
+
/**
|
|
527
|
+
*
|
|
528
|
+
* @summary List Elasticsearch security users
|
|
529
|
+
* @param {string} orgName
|
|
530
|
+
* @param {string} clusterName
|
|
531
|
+
* @param {*} [options] Override http request option.
|
|
532
|
+
* @throws {RequiredError}
|
|
533
|
+
*/
|
|
534
|
+
listElasticsearchSecurityUsers: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
535
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
536
|
+
assertParamExists('listElasticsearchSecurityUsers', 'orgName', orgName)
|
|
537
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
538
|
+
assertParamExists('listElasticsearchSecurityUsers', 'clusterName', clusterName)
|
|
539
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
540
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
541
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
544
|
+
let baseOptions;
|
|
545
|
+
if (configuration) {
|
|
546
|
+
baseOptions = configuration.baseOptions;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
550
|
+
const localVarHeaderParameter = {} as any;
|
|
551
|
+
const localVarQueryParameter = {} as any;
|
|
552
|
+
|
|
553
|
+
// authentication BearerToken required
|
|
554
|
+
// http bearer authentication required
|
|
555
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
556
|
+
|
|
557
|
+
// authentication DigestAuth required
|
|
558
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
563
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
564
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
565
|
+
|
|
566
|
+
return {
|
|
567
|
+
url: toPathString(localVarUrlObj),
|
|
568
|
+
options: localVarRequestOptions,
|
|
569
|
+
};
|
|
570
|
+
},
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary Lock Elasticsearch account
|
|
574
|
+
* @param {string} orgName
|
|
575
|
+
* @param {string} clusterName
|
|
576
|
+
* @param {string} username
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
lockElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
581
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
582
|
+
assertParamExists('lockElasticsearchSecurityUser', 'orgName', orgName)
|
|
583
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
584
|
+
assertParamExists('lockElasticsearchSecurityUser', 'clusterName', clusterName)
|
|
585
|
+
// verify required parameter 'username' is not null or undefined
|
|
586
|
+
assertParamExists('lockElasticsearchSecurityUser', 'username', username)
|
|
587
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock`
|
|
588
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
589
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
590
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
591
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
592
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
593
|
+
let baseOptions;
|
|
594
|
+
if (configuration) {
|
|
595
|
+
baseOptions = configuration.baseOptions;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
599
|
+
const localVarHeaderParameter = {} as any;
|
|
600
|
+
const localVarQueryParameter = {} as any;
|
|
601
|
+
|
|
602
|
+
// authentication BearerToken required
|
|
603
|
+
// http bearer authentication required
|
|
604
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
605
|
+
|
|
606
|
+
// authentication DigestAuth required
|
|
607
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
612
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
613
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
614
|
+
|
|
615
|
+
return {
|
|
616
|
+
url: toPathString(localVarUrlObj),
|
|
617
|
+
options: localVarRequestOptions,
|
|
618
|
+
};
|
|
619
|
+
},
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @summary Create or update Elasticsearch security role
|
|
623
|
+
* @param {string} orgName
|
|
624
|
+
* @param {string} clusterName
|
|
625
|
+
* @param {string} roleName
|
|
626
|
+
* @param {ESSecurityRoleDescriptor} body
|
|
627
|
+
* @param {*} [options] Override http request option.
|
|
628
|
+
* @throws {RequiredError}
|
|
629
|
+
*/
|
|
630
|
+
putElasticsearchSecurityRole: async (orgName: string, clusterName: string, roleName: string, body: ESSecurityRoleDescriptor, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
631
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
632
|
+
assertParamExists('putElasticsearchSecurityRole', 'orgName', orgName)
|
|
633
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
634
|
+
assertParamExists('putElasticsearchSecurityRole', 'clusterName', clusterName)
|
|
635
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
636
|
+
assertParamExists('putElasticsearchSecurityRole', 'roleName', roleName)
|
|
637
|
+
// verify required parameter 'body' is not null or undefined
|
|
638
|
+
assertParamExists('putElasticsearchSecurityRole', 'body', body)
|
|
639
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
640
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
641
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
642
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
643
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
645
|
+
let baseOptions;
|
|
646
|
+
if (configuration) {
|
|
647
|
+
baseOptions = configuration.baseOptions;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
651
|
+
const localVarHeaderParameter = {} as any;
|
|
652
|
+
const localVarQueryParameter = {} as any;
|
|
653
|
+
|
|
654
|
+
// authentication BearerToken required
|
|
655
|
+
// http bearer authentication required
|
|
656
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
657
|
+
|
|
658
|
+
// authentication DigestAuth required
|
|
659
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
664
|
+
|
|
665
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
666
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
667
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
668
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
669
|
+
|
|
670
|
+
return {
|
|
671
|
+
url: toPathString(localVarUrlObj),
|
|
672
|
+
options: localVarRequestOptions,
|
|
673
|
+
};
|
|
674
|
+
},
|
|
675
|
+
/**
|
|
676
|
+
*
|
|
677
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
678
|
+
* @param {string} orgName
|
|
679
|
+
* @param {string} clusterName
|
|
680
|
+
* @param {string} mappingName
|
|
681
|
+
* @param {ESSecurityRoleMapping} body
|
|
682
|
+
* @param {*} [options] Override http request option.
|
|
683
|
+
* @throws {RequiredError}
|
|
684
|
+
*/
|
|
685
|
+
putElasticsearchSecurityRoleMapping: async (orgName: string, clusterName: string, mappingName: string, body: ESSecurityRoleMapping, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
686
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
687
|
+
assertParamExists('putElasticsearchSecurityRoleMapping', 'orgName', orgName)
|
|
688
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
689
|
+
assertParamExists('putElasticsearchSecurityRoleMapping', 'clusterName', clusterName)
|
|
690
|
+
// verify required parameter 'mappingName' is not null or undefined
|
|
691
|
+
assertParamExists('putElasticsearchSecurityRoleMapping', 'mappingName', mappingName)
|
|
692
|
+
// verify required parameter 'body' is not null or undefined
|
|
693
|
+
assertParamExists('putElasticsearchSecurityRoleMapping', 'body', body)
|
|
694
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
|
|
695
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
696
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
697
|
+
.replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
|
|
698
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
699
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
700
|
+
let baseOptions;
|
|
701
|
+
if (configuration) {
|
|
702
|
+
baseOptions = configuration.baseOptions;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
706
|
+
const localVarHeaderParameter = {} as any;
|
|
707
|
+
const localVarQueryParameter = {} as any;
|
|
708
|
+
|
|
709
|
+
// authentication BearerToken required
|
|
710
|
+
// http bearer authentication required
|
|
711
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
712
|
+
|
|
713
|
+
// authentication DigestAuth required
|
|
714
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
719
|
+
|
|
720
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
721
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
722
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
723
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
724
|
+
|
|
725
|
+
return {
|
|
726
|
+
url: toPathString(localVarUrlObj),
|
|
727
|
+
options: localVarRequestOptions,
|
|
728
|
+
};
|
|
729
|
+
},
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @summary Create or update Elasticsearch security user
|
|
733
|
+
* @param {string} orgName
|
|
734
|
+
* @param {string} clusterName
|
|
735
|
+
* @param {string} username
|
|
736
|
+
* @param {ESPutSecurityUserRequest} body
|
|
737
|
+
* @param {*} [options] Override http request option.
|
|
738
|
+
* @throws {RequiredError}
|
|
739
|
+
*/
|
|
740
|
+
putElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, body: ESPutSecurityUserRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
741
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
742
|
+
assertParamExists('putElasticsearchSecurityUser', 'orgName', orgName)
|
|
743
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
744
|
+
assertParamExists('putElasticsearchSecurityUser', 'clusterName', clusterName)
|
|
745
|
+
// verify required parameter 'username' is not null or undefined
|
|
746
|
+
assertParamExists('putElasticsearchSecurityUser', 'username', username)
|
|
747
|
+
// verify required parameter 'body' is not null or undefined
|
|
748
|
+
assertParamExists('putElasticsearchSecurityUser', 'body', body)
|
|
749
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
750
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
751
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
752
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
753
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
754
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
755
|
+
let baseOptions;
|
|
756
|
+
if (configuration) {
|
|
757
|
+
baseOptions = configuration.baseOptions;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
761
|
+
const localVarHeaderParameter = {} as any;
|
|
762
|
+
const localVarQueryParameter = {} as any;
|
|
763
|
+
|
|
764
|
+
// authentication BearerToken required
|
|
765
|
+
// http bearer authentication required
|
|
766
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
767
|
+
|
|
768
|
+
// authentication DigestAuth required
|
|
769
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
770
|
+
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
774
|
+
|
|
775
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
776
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
777
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
778
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
779
|
+
|
|
780
|
+
return {
|
|
781
|
+
url: toPathString(localVarUrlObj),
|
|
782
|
+
options: localVarRequestOptions,
|
|
783
|
+
};
|
|
784
|
+
},
|
|
785
|
+
/**
|
|
786
|
+
*
|
|
787
|
+
* @summary Unlock Elasticsearch account
|
|
788
|
+
* @param {string} orgName
|
|
789
|
+
* @param {string} clusterName
|
|
790
|
+
* @param {string} username
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
unlockElasticsearchSecurityUser: async (orgName: string, clusterName: string, username: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
795
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
796
|
+
assertParamExists('unlockElasticsearchSecurityUser', 'orgName', orgName)
|
|
797
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
798
|
+
assertParamExists('unlockElasticsearchSecurityUser', 'clusterName', clusterName)
|
|
799
|
+
// verify required parameter 'username' is not null or undefined
|
|
800
|
+
assertParamExists('unlockElasticsearchSecurityUser', 'username', username)
|
|
801
|
+
const localVarPath = `/api/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/unlock`
|
|
802
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
803
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
804
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
805
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
806
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
807
|
+
let baseOptions;
|
|
808
|
+
if (configuration) {
|
|
809
|
+
baseOptions = configuration.baseOptions;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
813
|
+
const localVarHeaderParameter = {} as any;
|
|
814
|
+
const localVarQueryParameter = {} as any;
|
|
815
|
+
|
|
816
|
+
// authentication BearerToken required
|
|
817
|
+
// http bearer authentication required
|
|
818
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
819
|
+
|
|
820
|
+
// authentication DigestAuth required
|
|
821
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
826
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
827
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
828
|
+
|
|
829
|
+
return {
|
|
830
|
+
url: toPathString(localVarUrlObj),
|
|
831
|
+
options: localVarRequestOptions,
|
|
832
|
+
};
|
|
833
|
+
},
|
|
834
|
+
}
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* ElasticsearchApi - functional programming interface
|
|
839
|
+
* @export
|
|
840
|
+
*/
|
|
841
|
+
export const ElasticsearchApiFp = function(configuration?: Configuration) {
|
|
842
|
+
const localVarAxiosParamCreator = ElasticsearchApiAxiosParamCreator(configuration)
|
|
843
|
+
return {
|
|
844
|
+
/**
|
|
845
|
+
*
|
|
846
|
+
* @summary Change Elasticsearch account password
|
|
847
|
+
* @param {string} orgName
|
|
848
|
+
* @param {string} clusterName
|
|
849
|
+
* @param {string} username
|
|
850
|
+
* @param {ESSecurityPasswordRequest} body
|
|
851
|
+
* @param {*} [options] Override http request option.
|
|
852
|
+
* @throws {RequiredError}
|
|
853
|
+
*/
|
|
854
|
+
async changeElasticsearchSecurityUserPassword(orgName: string, clusterName: string, username: string, body: ESSecurityPasswordRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
855
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.changeElasticsearchSecurityUserPassword(orgName, clusterName, username, body, options);
|
|
856
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
857
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.changeElasticsearchSecurityUserPassword']?.[localVarOperationServerIndex]?.url;
|
|
858
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
859
|
+
},
|
|
860
|
+
/**
|
|
861
|
+
*
|
|
862
|
+
* @summary Delete Elasticsearch security role
|
|
863
|
+
* @param {string} orgName
|
|
864
|
+
* @param {string} clusterName
|
|
865
|
+
* @param {string} roleName
|
|
866
|
+
* @param {*} [options] Override http request option.
|
|
867
|
+
* @throws {RequiredError}
|
|
868
|
+
*/
|
|
869
|
+
async deleteElasticsearchSecurityRole(orgName: string, clusterName: string, roleName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityRole(orgName, clusterName, roleName, options);
|
|
871
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
872
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.deleteElasticsearchSecurityRole']?.[localVarOperationServerIndex]?.url;
|
|
873
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
874
|
+
},
|
|
875
|
+
/**
|
|
876
|
+
*
|
|
877
|
+
* @summary Delete Elasticsearch security role mapping
|
|
878
|
+
* @param {string} orgName
|
|
879
|
+
* @param {string} clusterName
|
|
880
|
+
* @param {string} mappingName
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
async deleteElasticsearchSecurityRoleMapping(orgName: string, clusterName: string, mappingName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
885
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options);
|
|
886
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
887
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.deleteElasticsearchSecurityRoleMapping']?.[localVarOperationServerIndex]?.url;
|
|
888
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
889
|
+
},
|
|
890
|
+
/**
|
|
891
|
+
*
|
|
892
|
+
* @summary Delete Elasticsearch security user
|
|
893
|
+
* @param {string} orgName
|
|
894
|
+
* @param {string} clusterName
|
|
895
|
+
* @param {string} username
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
*/
|
|
899
|
+
async deleteElasticsearchSecurityUser(orgName: string, clusterName: string, username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
900
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityUser(orgName, clusterName, username, options);
|
|
901
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
902
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.deleteElasticsearchSecurityUser']?.[localVarOperationServerIndex]?.url;
|
|
903
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
904
|
+
},
|
|
905
|
+
/**
|
|
906
|
+
*
|
|
907
|
+
* @summary Get Elasticsearch builtin privileges
|
|
908
|
+
* @param {string} orgName
|
|
909
|
+
* @param {string} clusterName
|
|
910
|
+
* @param {*} [options] Override http request option.
|
|
911
|
+
* @throws {RequiredError}
|
|
912
|
+
*/
|
|
913
|
+
async getElasticsearchBuiltinPrivileges(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: Array<string>; }>> {
|
|
914
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchBuiltinPrivileges(orgName, clusterName, options);
|
|
915
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
916
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.getElasticsearchBuiltinPrivileges']?.[localVarOperationServerIndex]?.url;
|
|
917
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
918
|
+
},
|
|
919
|
+
/**
|
|
920
|
+
*
|
|
921
|
+
* @summary Get Elasticsearch security role
|
|
922
|
+
* @param {string} orgName
|
|
923
|
+
* @param {string} clusterName
|
|
924
|
+
* @param {string} roleName
|
|
925
|
+
* @param {*} [options] Override http request option.
|
|
926
|
+
* @throws {RequiredError}
|
|
927
|
+
*/
|
|
928
|
+
async getElasticsearchSecurityRole(orgName: string, clusterName: string, roleName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ESSecurityRoleDescriptor>> {
|
|
929
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityRole(orgName, clusterName, roleName, options);
|
|
930
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
931
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.getElasticsearchSecurityRole']?.[localVarOperationServerIndex]?.url;
|
|
932
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
933
|
+
},
|
|
934
|
+
/**
|
|
935
|
+
*
|
|
936
|
+
* @summary Get Elasticsearch security role mapping
|
|
937
|
+
* @param {string} orgName
|
|
938
|
+
* @param {string} clusterName
|
|
939
|
+
* @param {string} mappingName
|
|
940
|
+
* @param {*} [options] Override http request option.
|
|
941
|
+
* @throws {RequiredError}
|
|
942
|
+
*/
|
|
943
|
+
async getElasticsearchSecurityRoleMapping(orgName: string, clusterName: string, mappingName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ESSecurityRoleMapping>> {
|
|
944
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options);
|
|
945
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
946
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.getElasticsearchSecurityRoleMapping']?.[localVarOperationServerIndex]?.url;
|
|
947
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
948
|
+
},
|
|
949
|
+
/**
|
|
950
|
+
*
|
|
951
|
+
* @summary Get Elasticsearch security user
|
|
952
|
+
* @param {string} orgName
|
|
953
|
+
* @param {string} clusterName
|
|
954
|
+
* @param {string} username
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
async getElasticsearchSecurityUser(orgName: string, clusterName: string, username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ESSecurityUser>> {
|
|
959
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityUser(orgName, clusterName, username, options);
|
|
960
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
961
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.getElasticsearchSecurityUser']?.[localVarOperationServerIndex]?.url;
|
|
962
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
963
|
+
},
|
|
964
|
+
/**
|
|
965
|
+
*
|
|
966
|
+
* @summary List Elasticsearch security role mappings
|
|
967
|
+
* @param {string} orgName
|
|
968
|
+
* @param {string} clusterName
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
*/
|
|
972
|
+
async listElasticsearchSecurityRoleMappings(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: ESSecurityRoleMapping; }>> {
|
|
973
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityRoleMappings(orgName, clusterName, options);
|
|
974
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
975
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.listElasticsearchSecurityRoleMappings']?.[localVarOperationServerIndex]?.url;
|
|
976
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
977
|
+
},
|
|
978
|
+
/**
|
|
979
|
+
*
|
|
980
|
+
* @summary List Elasticsearch security roles
|
|
981
|
+
* @param {string} orgName
|
|
982
|
+
* @param {string} clusterName
|
|
983
|
+
* @param {*} [options] Override http request option.
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
*/
|
|
986
|
+
async listElasticsearchSecurityRoles(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: ESSecurityRoleDescriptor; }>> {
|
|
987
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityRoles(orgName, clusterName, options);
|
|
988
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
989
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.listElasticsearchSecurityRoles']?.[localVarOperationServerIndex]?.url;
|
|
990
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
991
|
+
},
|
|
992
|
+
/**
|
|
993
|
+
*
|
|
994
|
+
* @summary List Elasticsearch security users
|
|
995
|
+
* @param {string} orgName
|
|
996
|
+
* @param {string} clusterName
|
|
997
|
+
* @param {*} [options] Override http request option.
|
|
998
|
+
* @throws {RequiredError}
|
|
999
|
+
*/
|
|
1000
|
+
async listElasticsearchSecurityUsers(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: ESSecurityUser; }>> {
|
|
1001
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityUsers(orgName, clusterName, options);
|
|
1002
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1003
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.listElasticsearchSecurityUsers']?.[localVarOperationServerIndex]?.url;
|
|
1004
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1005
|
+
},
|
|
1006
|
+
/**
|
|
1007
|
+
*
|
|
1008
|
+
* @summary Lock Elasticsearch account
|
|
1009
|
+
* @param {string} orgName
|
|
1010
|
+
* @param {string} clusterName
|
|
1011
|
+
* @param {string} username
|
|
1012
|
+
* @param {*} [options] Override http request option.
|
|
1013
|
+
* @throws {RequiredError}
|
|
1014
|
+
*/
|
|
1015
|
+
async lockElasticsearchSecurityUser(orgName: string, clusterName: string, username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1016
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.lockElasticsearchSecurityUser(orgName, clusterName, username, options);
|
|
1017
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1018
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.lockElasticsearchSecurityUser']?.[localVarOperationServerIndex]?.url;
|
|
1019
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1020
|
+
},
|
|
1021
|
+
/**
|
|
1022
|
+
*
|
|
1023
|
+
* @summary Create or update Elasticsearch security role
|
|
1024
|
+
* @param {string} orgName
|
|
1025
|
+
* @param {string} clusterName
|
|
1026
|
+
* @param {string} roleName
|
|
1027
|
+
* @param {ESSecurityRoleDescriptor} body
|
|
1028
|
+
* @param {*} [options] Override http request option.
|
|
1029
|
+
* @throws {RequiredError}
|
|
1030
|
+
*/
|
|
1031
|
+
async putElasticsearchSecurityRole(orgName: string, clusterName: string, roleName: string, body: ESSecurityRoleDescriptor, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityRole(orgName, clusterName, roleName, body, options);
|
|
1033
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1034
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.putElasticsearchSecurityRole']?.[localVarOperationServerIndex]?.url;
|
|
1035
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1036
|
+
},
|
|
1037
|
+
/**
|
|
1038
|
+
*
|
|
1039
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
1040
|
+
* @param {string} orgName
|
|
1041
|
+
* @param {string} clusterName
|
|
1042
|
+
* @param {string} mappingName
|
|
1043
|
+
* @param {ESSecurityRoleMapping} body
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
*/
|
|
1047
|
+
async putElasticsearchSecurityRoleMapping(orgName: string, clusterName: string, mappingName: string, body: ESSecurityRoleMapping, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1048
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, body, options);
|
|
1049
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1050
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.putElasticsearchSecurityRoleMapping']?.[localVarOperationServerIndex]?.url;
|
|
1051
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1052
|
+
},
|
|
1053
|
+
/**
|
|
1054
|
+
*
|
|
1055
|
+
* @summary Create or update Elasticsearch security user
|
|
1056
|
+
* @param {string} orgName
|
|
1057
|
+
* @param {string} clusterName
|
|
1058
|
+
* @param {string} username
|
|
1059
|
+
* @param {ESPutSecurityUserRequest} body
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
async putElasticsearchSecurityUser(orgName: string, clusterName: string, username: string, body: ESPutSecurityUserRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1064
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityUser(orgName, clusterName, username, body, options);
|
|
1065
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1066
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.putElasticsearchSecurityUser']?.[localVarOperationServerIndex]?.url;
|
|
1067
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1068
|
+
},
|
|
1069
|
+
/**
|
|
1070
|
+
*
|
|
1071
|
+
* @summary Unlock Elasticsearch account
|
|
1072
|
+
* @param {string} orgName
|
|
1073
|
+
* @param {string} clusterName
|
|
1074
|
+
* @param {string} username
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
*/
|
|
1078
|
+
async unlockElasticsearchSecurityUser(orgName: string, clusterName: string, username: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1079
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlockElasticsearchSecurityUser(orgName, clusterName, username, options);
|
|
1080
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1081
|
+
const localVarOperationServerBasePath = operationServerMap['ElasticsearchApi.unlockElasticsearchSecurityUser']?.[localVarOperationServerIndex]?.url;
|
|
1082
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1083
|
+
},
|
|
1084
|
+
}
|
|
1085
|
+
};
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* ElasticsearchApi - factory interface
|
|
1089
|
+
* @export
|
|
1090
|
+
*/
|
|
1091
|
+
export const ElasticsearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1092
|
+
const localVarFp = ElasticsearchApiFp(configuration)
|
|
1093
|
+
return {
|
|
1094
|
+
/**
|
|
1095
|
+
*
|
|
1096
|
+
* @summary Change Elasticsearch account password
|
|
1097
|
+
* @param {ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
|
|
1098
|
+
* @param {*} [options] Override http request option.
|
|
1099
|
+
* @throws {RequiredError}
|
|
1100
|
+
*/
|
|
1101
|
+
changeElasticsearchSecurityUserPassword(requestParameters: ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1102
|
+
return localVarFp.changeElasticsearchSecurityUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1103
|
+
},
|
|
1104
|
+
/**
|
|
1105
|
+
*
|
|
1106
|
+
* @summary Delete Elasticsearch security role
|
|
1107
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
1108
|
+
* @param {*} [options] Override http request option.
|
|
1109
|
+
* @throws {RequiredError}
|
|
1110
|
+
*/
|
|
1111
|
+
deleteElasticsearchSecurityRole(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1112
|
+
return localVarFp.deleteElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
1113
|
+
},
|
|
1114
|
+
/**
|
|
1115
|
+
*
|
|
1116
|
+
* @summary Delete Elasticsearch security role mapping
|
|
1117
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
deleteElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1122
|
+
return localVarFp.deleteElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(axios, basePath));
|
|
1123
|
+
},
|
|
1124
|
+
/**
|
|
1125
|
+
*
|
|
1126
|
+
* @summary Delete Elasticsearch security user
|
|
1127
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
*/
|
|
1131
|
+
deleteElasticsearchSecurityUser(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1132
|
+
return localVarFp.deleteElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
1133
|
+
},
|
|
1134
|
+
/**
|
|
1135
|
+
*
|
|
1136
|
+
* @summary Get Elasticsearch builtin privileges
|
|
1137
|
+
* @param {ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
|
|
1138
|
+
* @param {*} [options] Override http request option.
|
|
1139
|
+
* @throws {RequiredError}
|
|
1140
|
+
*/
|
|
1141
|
+
getElasticsearchBuiltinPrivileges(requestParameters: ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: Array<string>; }> {
|
|
1142
|
+
return localVarFp.getElasticsearchBuiltinPrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
1143
|
+
},
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @summary Get Elasticsearch security role
|
|
1147
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
*/
|
|
1151
|
+
getElasticsearchSecurityRole(requestParameters: ElasticsearchApiGetElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<ESSecurityRoleDescriptor> {
|
|
1152
|
+
return localVarFp.getElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
1153
|
+
},
|
|
1154
|
+
/**
|
|
1155
|
+
*
|
|
1156
|
+
* @summary Get Elasticsearch security role mapping
|
|
1157
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
1158
|
+
* @param {*} [options] Override http request option.
|
|
1159
|
+
* @throws {RequiredError}
|
|
1160
|
+
*/
|
|
1161
|
+
getElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig): AxiosPromise<ESSecurityRoleMapping> {
|
|
1162
|
+
return localVarFp.getElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(axios, basePath));
|
|
1163
|
+
},
|
|
1164
|
+
/**
|
|
1165
|
+
*
|
|
1166
|
+
* @summary Get Elasticsearch security user
|
|
1167
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1168
|
+
* @param {*} [options] Override http request option.
|
|
1169
|
+
* @throws {RequiredError}
|
|
1170
|
+
*/
|
|
1171
|
+
getElasticsearchSecurityUser(requestParameters: ElasticsearchApiGetElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ESSecurityUser> {
|
|
1172
|
+
return localVarFp.getElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
1173
|
+
},
|
|
1174
|
+
/**
|
|
1175
|
+
*
|
|
1176
|
+
* @summary List Elasticsearch security role mappings
|
|
1177
|
+
* @param {ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
*/
|
|
1181
|
+
listElasticsearchSecurityRoleMappings(requestParameters: ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ESSecurityRoleMapping; }> {
|
|
1182
|
+
return localVarFp.listElasticsearchSecurityRoleMappings(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
1183
|
+
},
|
|
1184
|
+
/**
|
|
1185
|
+
*
|
|
1186
|
+
* @summary List Elasticsearch security roles
|
|
1187
|
+
* @param {ElasticsearchApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
|
|
1188
|
+
* @param {*} [options] Override http request option.
|
|
1189
|
+
* @throws {RequiredError}
|
|
1190
|
+
*/
|
|
1191
|
+
listElasticsearchSecurityRoles(requestParameters: ElasticsearchApiListElasticsearchSecurityRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ESSecurityRoleDescriptor; }> {
|
|
1192
|
+
return localVarFp.listElasticsearchSecurityRoles(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
1193
|
+
},
|
|
1194
|
+
/**
|
|
1195
|
+
*
|
|
1196
|
+
* @summary List Elasticsearch security users
|
|
1197
|
+
* @param {ElasticsearchApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
|
|
1198
|
+
* @param {*} [options] Override http request option.
|
|
1199
|
+
* @throws {RequiredError}
|
|
1200
|
+
*/
|
|
1201
|
+
listElasticsearchSecurityUsers(requestParameters: ElasticsearchApiListElasticsearchSecurityUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ESSecurityUser; }> {
|
|
1202
|
+
return localVarFp.listElasticsearchSecurityUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
1203
|
+
},
|
|
1204
|
+
/**
|
|
1205
|
+
*
|
|
1206
|
+
* @summary Lock Elasticsearch account
|
|
1207
|
+
* @param {ElasticsearchApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1208
|
+
* @param {*} [options] Override http request option.
|
|
1209
|
+
* @throws {RequiredError}
|
|
1210
|
+
*/
|
|
1211
|
+
lockElasticsearchSecurityUser(requestParameters: ElasticsearchApiLockElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1212
|
+
return localVarFp.lockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
1213
|
+
},
|
|
1214
|
+
/**
|
|
1215
|
+
*
|
|
1216
|
+
* @summary Create or update Elasticsearch security role
|
|
1217
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
*/
|
|
1221
|
+
putElasticsearchSecurityRole(requestParameters: ElasticsearchApiPutElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1222
|
+
return localVarFp.putElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1223
|
+
},
|
|
1224
|
+
/**
|
|
1225
|
+
*
|
|
1226
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
1227
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
1228
|
+
* @param {*} [options] Override http request option.
|
|
1229
|
+
* @throws {RequiredError}
|
|
1230
|
+
*/
|
|
1231
|
+
putElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1232
|
+
return localVarFp.putElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1233
|
+
},
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @summary Create or update Elasticsearch security user
|
|
1237
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
*/
|
|
1241
|
+
putElasticsearchSecurityUser(requestParameters: ElasticsearchApiPutElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1242
|
+
return localVarFp.putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
1243
|
+
},
|
|
1244
|
+
/**
|
|
1245
|
+
*
|
|
1246
|
+
* @summary Unlock Elasticsearch account
|
|
1247
|
+
* @param {ElasticsearchApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
*/
|
|
1251
|
+
unlockElasticsearchSecurityUser(requestParameters: ElasticsearchApiUnlockElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1252
|
+
return localVarFp.unlockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
1253
|
+
},
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* ElasticsearchApi - interface
|
|
1259
|
+
* @export
|
|
1260
|
+
* @interface ElasticsearchApi
|
|
1261
|
+
*/
|
|
1262
|
+
export interface ElasticsearchApiInterface {
|
|
1263
|
+
/**
|
|
1264
|
+
*
|
|
1265
|
+
* @summary Change Elasticsearch account password
|
|
1266
|
+
* @param {ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
|
|
1267
|
+
* @param {*} [options] Override http request option.
|
|
1268
|
+
* @throws {RequiredError}
|
|
1269
|
+
* @memberof ElasticsearchApiInterface
|
|
1270
|
+
*/
|
|
1271
|
+
changeElasticsearchSecurityUserPassword(requestParameters: ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
*
|
|
1275
|
+
* @summary Delete Elasticsearch security role
|
|
1276
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
1277
|
+
* @param {*} [options] Override http request option.
|
|
1278
|
+
* @throws {RequiredError}
|
|
1279
|
+
* @memberof ElasticsearchApiInterface
|
|
1280
|
+
*/
|
|
1281
|
+
deleteElasticsearchSecurityRole(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
*
|
|
1285
|
+
* @summary Delete Elasticsearch security role mapping
|
|
1286
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
1287
|
+
* @param {*} [options] Override http request option.
|
|
1288
|
+
* @throws {RequiredError}
|
|
1289
|
+
* @memberof ElasticsearchApiInterface
|
|
1290
|
+
*/
|
|
1291
|
+
deleteElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
*
|
|
1295
|
+
* @summary Delete Elasticsearch security user
|
|
1296
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1297
|
+
* @param {*} [options] Override http request option.
|
|
1298
|
+
* @throws {RequiredError}
|
|
1299
|
+
* @memberof ElasticsearchApiInterface
|
|
1300
|
+
*/
|
|
1301
|
+
deleteElasticsearchSecurityUser(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
*
|
|
1305
|
+
* @summary Get Elasticsearch builtin privileges
|
|
1306
|
+
* @param {ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
|
|
1307
|
+
* @param {*} [options] Override http request option.
|
|
1308
|
+
* @throws {RequiredError}
|
|
1309
|
+
* @memberof ElasticsearchApiInterface
|
|
1310
|
+
*/
|
|
1311
|
+
getElasticsearchBuiltinPrivileges(requestParameters: ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: Array<string>; }>;
|
|
1312
|
+
|
|
1313
|
+
/**
|
|
1314
|
+
*
|
|
1315
|
+
* @summary Get Elasticsearch security role
|
|
1316
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
1317
|
+
* @param {*} [options] Override http request option.
|
|
1318
|
+
* @throws {RequiredError}
|
|
1319
|
+
* @memberof ElasticsearchApiInterface
|
|
1320
|
+
*/
|
|
1321
|
+
getElasticsearchSecurityRole(requestParameters: ElasticsearchApiGetElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<ESSecurityRoleDescriptor>;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
*
|
|
1325
|
+
* @summary Get Elasticsearch security role mapping
|
|
1326
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
1327
|
+
* @param {*} [options] Override http request option.
|
|
1328
|
+
* @throws {RequiredError}
|
|
1329
|
+
* @memberof ElasticsearchApiInterface
|
|
1330
|
+
*/
|
|
1331
|
+
getElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig): AxiosPromise<ESSecurityRoleMapping>;
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
*
|
|
1335
|
+
* @summary Get Elasticsearch security user
|
|
1336
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1337
|
+
* @param {*} [options] Override http request option.
|
|
1338
|
+
* @throws {RequiredError}
|
|
1339
|
+
* @memberof ElasticsearchApiInterface
|
|
1340
|
+
*/
|
|
1341
|
+
getElasticsearchSecurityUser(requestParameters: ElasticsearchApiGetElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<ESSecurityUser>;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
*
|
|
1345
|
+
* @summary List Elasticsearch security role mappings
|
|
1346
|
+
* @param {ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
|
|
1347
|
+
* @param {*} [options] Override http request option.
|
|
1348
|
+
* @throws {RequiredError}
|
|
1349
|
+
* @memberof ElasticsearchApiInterface
|
|
1350
|
+
*/
|
|
1351
|
+
listElasticsearchSecurityRoleMappings(requestParameters: ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ESSecurityRoleMapping; }>;
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
*
|
|
1355
|
+
* @summary List Elasticsearch security roles
|
|
1356
|
+
* @param {ElasticsearchApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
* @memberof ElasticsearchApiInterface
|
|
1360
|
+
*/
|
|
1361
|
+
listElasticsearchSecurityRoles(requestParameters: ElasticsearchApiListElasticsearchSecurityRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ESSecurityRoleDescriptor; }>;
|
|
1362
|
+
|
|
1363
|
+
/**
|
|
1364
|
+
*
|
|
1365
|
+
* @summary List Elasticsearch security users
|
|
1366
|
+
* @param {ElasticsearchApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
|
|
1367
|
+
* @param {*} [options] Override http request option.
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
* @memberof ElasticsearchApiInterface
|
|
1370
|
+
*/
|
|
1371
|
+
listElasticsearchSecurityUsers(requestParameters: ElasticsearchApiListElasticsearchSecurityUsersRequest, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: ESSecurityUser; }>;
|
|
1372
|
+
|
|
1373
|
+
/**
|
|
1374
|
+
*
|
|
1375
|
+
* @summary Lock Elasticsearch account
|
|
1376
|
+
* @param {ElasticsearchApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
* @memberof ElasticsearchApiInterface
|
|
1380
|
+
*/
|
|
1381
|
+
lockElasticsearchSecurityUser(requestParameters: ElasticsearchApiLockElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
*
|
|
1385
|
+
* @summary Create or update Elasticsearch security role
|
|
1386
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
* @memberof ElasticsearchApiInterface
|
|
1390
|
+
*/
|
|
1391
|
+
putElasticsearchSecurityRole(requestParameters: ElasticsearchApiPutElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1392
|
+
|
|
1393
|
+
/**
|
|
1394
|
+
*
|
|
1395
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
1396
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
1397
|
+
* @param {*} [options] Override http request option.
|
|
1398
|
+
* @throws {RequiredError}
|
|
1399
|
+
* @memberof ElasticsearchApiInterface
|
|
1400
|
+
*/
|
|
1401
|
+
putElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1402
|
+
|
|
1403
|
+
/**
|
|
1404
|
+
*
|
|
1405
|
+
* @summary Create or update Elasticsearch security user
|
|
1406
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
* @memberof ElasticsearchApiInterface
|
|
1410
|
+
*/
|
|
1411
|
+
putElasticsearchSecurityUser(requestParameters: ElasticsearchApiPutElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
*
|
|
1415
|
+
* @summary Unlock Elasticsearch account
|
|
1416
|
+
* @param {ElasticsearchApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1417
|
+
* @param {*} [options] Override http request option.
|
|
1418
|
+
* @throws {RequiredError}
|
|
1419
|
+
* @memberof ElasticsearchApiInterface
|
|
1420
|
+
*/
|
|
1421
|
+
unlockElasticsearchSecurityUser(requestParameters: ElasticsearchApiUnlockElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1422
|
+
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Request parameters for changeElasticsearchSecurityUserPassword operation in ElasticsearchApi.
|
|
1427
|
+
* @export
|
|
1428
|
+
* @interface ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest
|
|
1429
|
+
*/
|
|
1430
|
+
export interface ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest {
|
|
1431
|
+
/**
|
|
1432
|
+
*
|
|
1433
|
+
* @type {string}
|
|
1434
|
+
* @memberof ElasticsearchApiChangeElasticsearchSecurityUserPassword
|
|
1435
|
+
*/
|
|
1436
|
+
readonly orgName: string
|
|
1437
|
+
|
|
1438
|
+
/**
|
|
1439
|
+
*
|
|
1440
|
+
* @type {string}
|
|
1441
|
+
* @memberof ElasticsearchApiChangeElasticsearchSecurityUserPassword
|
|
1442
|
+
*/
|
|
1443
|
+
readonly clusterName: string
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
*
|
|
1447
|
+
* @type {string}
|
|
1448
|
+
* @memberof ElasticsearchApiChangeElasticsearchSecurityUserPassword
|
|
1449
|
+
*/
|
|
1450
|
+
readonly username: string
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
*
|
|
1454
|
+
* @type {ESSecurityPasswordRequest}
|
|
1455
|
+
* @memberof ElasticsearchApiChangeElasticsearchSecurityUserPassword
|
|
1456
|
+
*/
|
|
1457
|
+
readonly body: ESSecurityPasswordRequest
|
|
1458
|
+
}
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* Request parameters for deleteElasticsearchSecurityRole operation in ElasticsearchApi.
|
|
1462
|
+
* @export
|
|
1463
|
+
* @interface ElasticsearchApiDeleteElasticsearchSecurityRoleRequest
|
|
1464
|
+
*/
|
|
1465
|
+
export interface ElasticsearchApiDeleteElasticsearchSecurityRoleRequest {
|
|
1466
|
+
/**
|
|
1467
|
+
*
|
|
1468
|
+
* @type {string}
|
|
1469
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityRole
|
|
1470
|
+
*/
|
|
1471
|
+
readonly orgName: string
|
|
1472
|
+
|
|
1473
|
+
/**
|
|
1474
|
+
*
|
|
1475
|
+
* @type {string}
|
|
1476
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityRole
|
|
1477
|
+
*/
|
|
1478
|
+
readonly clusterName: string
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
*
|
|
1482
|
+
* @type {string}
|
|
1483
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityRole
|
|
1484
|
+
*/
|
|
1485
|
+
readonly roleName: string
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Request parameters for deleteElasticsearchSecurityRoleMapping operation in ElasticsearchApi.
|
|
1490
|
+
* @export
|
|
1491
|
+
* @interface ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest
|
|
1492
|
+
*/
|
|
1493
|
+
export interface ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest {
|
|
1494
|
+
/**
|
|
1495
|
+
*
|
|
1496
|
+
* @type {string}
|
|
1497
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityRoleMapping
|
|
1498
|
+
*/
|
|
1499
|
+
readonly orgName: string
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
*
|
|
1503
|
+
* @type {string}
|
|
1504
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityRoleMapping
|
|
1505
|
+
*/
|
|
1506
|
+
readonly clusterName: string
|
|
1507
|
+
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @type {string}
|
|
1511
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityRoleMapping
|
|
1512
|
+
*/
|
|
1513
|
+
readonly mappingName: string
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Request parameters for deleteElasticsearchSecurityUser operation in ElasticsearchApi.
|
|
1518
|
+
* @export
|
|
1519
|
+
* @interface ElasticsearchApiDeleteElasticsearchSecurityUserRequest
|
|
1520
|
+
*/
|
|
1521
|
+
export interface ElasticsearchApiDeleteElasticsearchSecurityUserRequest {
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @type {string}
|
|
1525
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityUser
|
|
1526
|
+
*/
|
|
1527
|
+
readonly orgName: string
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
*
|
|
1531
|
+
* @type {string}
|
|
1532
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityUser
|
|
1533
|
+
*/
|
|
1534
|
+
readonly clusterName: string
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @type {string}
|
|
1539
|
+
* @memberof ElasticsearchApiDeleteElasticsearchSecurityUser
|
|
1540
|
+
*/
|
|
1541
|
+
readonly username: string
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
/**
|
|
1545
|
+
* Request parameters for getElasticsearchBuiltinPrivileges operation in ElasticsearchApi.
|
|
1546
|
+
* @export
|
|
1547
|
+
* @interface ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest
|
|
1548
|
+
*/
|
|
1549
|
+
export interface ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest {
|
|
1550
|
+
/**
|
|
1551
|
+
*
|
|
1552
|
+
* @type {string}
|
|
1553
|
+
* @memberof ElasticsearchApiGetElasticsearchBuiltinPrivileges
|
|
1554
|
+
*/
|
|
1555
|
+
readonly orgName: string
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
*
|
|
1559
|
+
* @type {string}
|
|
1560
|
+
* @memberof ElasticsearchApiGetElasticsearchBuiltinPrivileges
|
|
1561
|
+
*/
|
|
1562
|
+
readonly clusterName: string
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* Request parameters for getElasticsearchSecurityRole operation in ElasticsearchApi.
|
|
1567
|
+
* @export
|
|
1568
|
+
* @interface ElasticsearchApiGetElasticsearchSecurityRoleRequest
|
|
1569
|
+
*/
|
|
1570
|
+
export interface ElasticsearchApiGetElasticsearchSecurityRoleRequest {
|
|
1571
|
+
/**
|
|
1572
|
+
*
|
|
1573
|
+
* @type {string}
|
|
1574
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityRole
|
|
1575
|
+
*/
|
|
1576
|
+
readonly orgName: string
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
*
|
|
1580
|
+
* @type {string}
|
|
1581
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityRole
|
|
1582
|
+
*/
|
|
1583
|
+
readonly clusterName: string
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
*
|
|
1587
|
+
* @type {string}
|
|
1588
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityRole
|
|
1589
|
+
*/
|
|
1590
|
+
readonly roleName: string
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Request parameters for getElasticsearchSecurityRoleMapping operation in ElasticsearchApi.
|
|
1595
|
+
* @export
|
|
1596
|
+
* @interface ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest
|
|
1597
|
+
*/
|
|
1598
|
+
export interface ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest {
|
|
1599
|
+
/**
|
|
1600
|
+
*
|
|
1601
|
+
* @type {string}
|
|
1602
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityRoleMapping
|
|
1603
|
+
*/
|
|
1604
|
+
readonly orgName: string
|
|
1605
|
+
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @type {string}
|
|
1609
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityRoleMapping
|
|
1610
|
+
*/
|
|
1611
|
+
readonly clusterName: string
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
*
|
|
1615
|
+
* @type {string}
|
|
1616
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityRoleMapping
|
|
1617
|
+
*/
|
|
1618
|
+
readonly mappingName: string
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/**
|
|
1622
|
+
* Request parameters for getElasticsearchSecurityUser operation in ElasticsearchApi.
|
|
1623
|
+
* @export
|
|
1624
|
+
* @interface ElasticsearchApiGetElasticsearchSecurityUserRequest
|
|
1625
|
+
*/
|
|
1626
|
+
export interface ElasticsearchApiGetElasticsearchSecurityUserRequest {
|
|
1627
|
+
/**
|
|
1628
|
+
*
|
|
1629
|
+
* @type {string}
|
|
1630
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityUser
|
|
1631
|
+
*/
|
|
1632
|
+
readonly orgName: string
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @type {string}
|
|
1637
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityUser
|
|
1638
|
+
*/
|
|
1639
|
+
readonly clusterName: string
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
*
|
|
1643
|
+
* @type {string}
|
|
1644
|
+
* @memberof ElasticsearchApiGetElasticsearchSecurityUser
|
|
1645
|
+
*/
|
|
1646
|
+
readonly username: string
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
/**
|
|
1650
|
+
* Request parameters for listElasticsearchSecurityRoleMappings operation in ElasticsearchApi.
|
|
1651
|
+
* @export
|
|
1652
|
+
* @interface ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest
|
|
1653
|
+
*/
|
|
1654
|
+
export interface ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest {
|
|
1655
|
+
/**
|
|
1656
|
+
*
|
|
1657
|
+
* @type {string}
|
|
1658
|
+
* @memberof ElasticsearchApiListElasticsearchSecurityRoleMappings
|
|
1659
|
+
*/
|
|
1660
|
+
readonly orgName: string
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
*
|
|
1664
|
+
* @type {string}
|
|
1665
|
+
* @memberof ElasticsearchApiListElasticsearchSecurityRoleMappings
|
|
1666
|
+
*/
|
|
1667
|
+
readonly clusterName: string
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Request parameters for listElasticsearchSecurityRoles operation in ElasticsearchApi.
|
|
1672
|
+
* @export
|
|
1673
|
+
* @interface ElasticsearchApiListElasticsearchSecurityRolesRequest
|
|
1674
|
+
*/
|
|
1675
|
+
export interface ElasticsearchApiListElasticsearchSecurityRolesRequest {
|
|
1676
|
+
/**
|
|
1677
|
+
*
|
|
1678
|
+
* @type {string}
|
|
1679
|
+
* @memberof ElasticsearchApiListElasticsearchSecurityRoles
|
|
1680
|
+
*/
|
|
1681
|
+
readonly orgName: string
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @type {string}
|
|
1686
|
+
* @memberof ElasticsearchApiListElasticsearchSecurityRoles
|
|
1687
|
+
*/
|
|
1688
|
+
readonly clusterName: string
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* Request parameters for listElasticsearchSecurityUsers operation in ElasticsearchApi.
|
|
1693
|
+
* @export
|
|
1694
|
+
* @interface ElasticsearchApiListElasticsearchSecurityUsersRequest
|
|
1695
|
+
*/
|
|
1696
|
+
export interface ElasticsearchApiListElasticsearchSecurityUsersRequest {
|
|
1697
|
+
/**
|
|
1698
|
+
*
|
|
1699
|
+
* @type {string}
|
|
1700
|
+
* @memberof ElasticsearchApiListElasticsearchSecurityUsers
|
|
1701
|
+
*/
|
|
1702
|
+
readonly orgName: string
|
|
1703
|
+
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
* @type {string}
|
|
1707
|
+
* @memberof ElasticsearchApiListElasticsearchSecurityUsers
|
|
1708
|
+
*/
|
|
1709
|
+
readonly clusterName: string
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* Request parameters for lockElasticsearchSecurityUser operation in ElasticsearchApi.
|
|
1714
|
+
* @export
|
|
1715
|
+
* @interface ElasticsearchApiLockElasticsearchSecurityUserRequest
|
|
1716
|
+
*/
|
|
1717
|
+
export interface ElasticsearchApiLockElasticsearchSecurityUserRequest {
|
|
1718
|
+
/**
|
|
1719
|
+
*
|
|
1720
|
+
* @type {string}
|
|
1721
|
+
* @memberof ElasticsearchApiLockElasticsearchSecurityUser
|
|
1722
|
+
*/
|
|
1723
|
+
readonly orgName: string
|
|
1724
|
+
|
|
1725
|
+
/**
|
|
1726
|
+
*
|
|
1727
|
+
* @type {string}
|
|
1728
|
+
* @memberof ElasticsearchApiLockElasticsearchSecurityUser
|
|
1729
|
+
*/
|
|
1730
|
+
readonly clusterName: string
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
*
|
|
1734
|
+
* @type {string}
|
|
1735
|
+
* @memberof ElasticsearchApiLockElasticsearchSecurityUser
|
|
1736
|
+
*/
|
|
1737
|
+
readonly username: string
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Request parameters for putElasticsearchSecurityRole operation in ElasticsearchApi.
|
|
1742
|
+
* @export
|
|
1743
|
+
* @interface ElasticsearchApiPutElasticsearchSecurityRoleRequest
|
|
1744
|
+
*/
|
|
1745
|
+
export interface ElasticsearchApiPutElasticsearchSecurityRoleRequest {
|
|
1746
|
+
/**
|
|
1747
|
+
*
|
|
1748
|
+
* @type {string}
|
|
1749
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityRole
|
|
1750
|
+
*/
|
|
1751
|
+
readonly orgName: string
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
*
|
|
1755
|
+
* @type {string}
|
|
1756
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityRole
|
|
1757
|
+
*/
|
|
1758
|
+
readonly clusterName: string
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
*
|
|
1762
|
+
* @type {string}
|
|
1763
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityRole
|
|
1764
|
+
*/
|
|
1765
|
+
readonly roleName: string
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
*
|
|
1769
|
+
* @type {ESSecurityRoleDescriptor}
|
|
1770
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityRole
|
|
1771
|
+
*/
|
|
1772
|
+
readonly body: ESSecurityRoleDescriptor
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/**
|
|
1776
|
+
* Request parameters for putElasticsearchSecurityRoleMapping operation in ElasticsearchApi.
|
|
1777
|
+
* @export
|
|
1778
|
+
* @interface ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest
|
|
1779
|
+
*/
|
|
1780
|
+
export interface ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest {
|
|
1781
|
+
/**
|
|
1782
|
+
*
|
|
1783
|
+
* @type {string}
|
|
1784
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityRoleMapping
|
|
1785
|
+
*/
|
|
1786
|
+
readonly orgName: string
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
*
|
|
1790
|
+
* @type {string}
|
|
1791
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityRoleMapping
|
|
1792
|
+
*/
|
|
1793
|
+
readonly clusterName: string
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
*
|
|
1797
|
+
* @type {string}
|
|
1798
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityRoleMapping
|
|
1799
|
+
*/
|
|
1800
|
+
readonly mappingName: string
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
*
|
|
1804
|
+
* @type {ESSecurityRoleMapping}
|
|
1805
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityRoleMapping
|
|
1806
|
+
*/
|
|
1807
|
+
readonly body: ESSecurityRoleMapping
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
* Request parameters for putElasticsearchSecurityUser operation in ElasticsearchApi.
|
|
1812
|
+
* @export
|
|
1813
|
+
* @interface ElasticsearchApiPutElasticsearchSecurityUserRequest
|
|
1814
|
+
*/
|
|
1815
|
+
export interface ElasticsearchApiPutElasticsearchSecurityUserRequest {
|
|
1816
|
+
/**
|
|
1817
|
+
*
|
|
1818
|
+
* @type {string}
|
|
1819
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityUser
|
|
1820
|
+
*/
|
|
1821
|
+
readonly orgName: string
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
*
|
|
1825
|
+
* @type {string}
|
|
1826
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityUser
|
|
1827
|
+
*/
|
|
1828
|
+
readonly clusterName: string
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
*
|
|
1832
|
+
* @type {string}
|
|
1833
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityUser
|
|
1834
|
+
*/
|
|
1835
|
+
readonly username: string
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
*
|
|
1839
|
+
* @type {ESPutSecurityUserRequest}
|
|
1840
|
+
* @memberof ElasticsearchApiPutElasticsearchSecurityUser
|
|
1841
|
+
*/
|
|
1842
|
+
readonly body: ESPutSecurityUserRequest
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Request parameters for unlockElasticsearchSecurityUser operation in ElasticsearchApi.
|
|
1847
|
+
* @export
|
|
1848
|
+
* @interface ElasticsearchApiUnlockElasticsearchSecurityUserRequest
|
|
1849
|
+
*/
|
|
1850
|
+
export interface ElasticsearchApiUnlockElasticsearchSecurityUserRequest {
|
|
1851
|
+
/**
|
|
1852
|
+
*
|
|
1853
|
+
* @type {string}
|
|
1854
|
+
* @memberof ElasticsearchApiUnlockElasticsearchSecurityUser
|
|
1855
|
+
*/
|
|
1856
|
+
readonly orgName: string
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
*
|
|
1860
|
+
* @type {string}
|
|
1861
|
+
* @memberof ElasticsearchApiUnlockElasticsearchSecurityUser
|
|
1862
|
+
*/
|
|
1863
|
+
readonly clusterName: string
|
|
1864
|
+
|
|
1865
|
+
/**
|
|
1866
|
+
*
|
|
1867
|
+
* @type {string}
|
|
1868
|
+
* @memberof ElasticsearchApiUnlockElasticsearchSecurityUser
|
|
1869
|
+
*/
|
|
1870
|
+
readonly username: string
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* ElasticsearchApi - object-oriented interface
|
|
1875
|
+
* @export
|
|
1876
|
+
* @class ElasticsearchApi
|
|
1877
|
+
* @extends {BaseAPI}
|
|
1878
|
+
*/
|
|
1879
|
+
export class ElasticsearchApi extends BaseAPI implements ElasticsearchApiInterface {
|
|
1880
|
+
/**
|
|
1881
|
+
*
|
|
1882
|
+
* @summary Change Elasticsearch account password
|
|
1883
|
+
* @param {ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
|
|
1884
|
+
* @param {*} [options] Override http request option.
|
|
1885
|
+
* @throws {RequiredError}
|
|
1886
|
+
* @memberof ElasticsearchApi
|
|
1887
|
+
*/
|
|
1888
|
+
public changeElasticsearchSecurityUserPassword(requestParameters: ElasticsearchApiChangeElasticsearchSecurityUserPasswordRequest, options?: RawAxiosRequestConfig) {
|
|
1889
|
+
return ElasticsearchApiFp(this.configuration).changeElasticsearchSecurityUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
*
|
|
1894
|
+
* @summary Delete Elasticsearch security role
|
|
1895
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
1896
|
+
* @param {*} [options] Override http request option.
|
|
1897
|
+
* @throws {RequiredError}
|
|
1898
|
+
* @memberof ElasticsearchApi
|
|
1899
|
+
*/
|
|
1900
|
+
public deleteElasticsearchSecurityRole(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig) {
|
|
1901
|
+
return ElasticsearchApiFp(this.configuration).deleteElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
/**
|
|
1905
|
+
*
|
|
1906
|
+
* @summary Delete Elasticsearch security role mapping
|
|
1907
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
1908
|
+
* @param {*} [options] Override http request option.
|
|
1909
|
+
* @throws {RequiredError}
|
|
1910
|
+
* @memberof ElasticsearchApi
|
|
1911
|
+
*/
|
|
1912
|
+
public deleteElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig) {
|
|
1913
|
+
return ElasticsearchApiFp(this.configuration).deleteElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(this.axios, this.basePath));
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @summary Delete Elasticsearch security user
|
|
1919
|
+
* @param {ElasticsearchApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1920
|
+
* @param {*} [options] Override http request option.
|
|
1921
|
+
* @throws {RequiredError}
|
|
1922
|
+
* @memberof ElasticsearchApi
|
|
1923
|
+
*/
|
|
1924
|
+
public deleteElasticsearchSecurityUser(requestParameters: ElasticsearchApiDeleteElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig) {
|
|
1925
|
+
return ElasticsearchApiFp(this.configuration).deleteElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1928
|
+
/**
|
|
1929
|
+
*
|
|
1930
|
+
* @summary Get Elasticsearch builtin privileges
|
|
1931
|
+
* @param {ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
|
|
1932
|
+
* @param {*} [options] Override http request option.
|
|
1933
|
+
* @throws {RequiredError}
|
|
1934
|
+
* @memberof ElasticsearchApi
|
|
1935
|
+
*/
|
|
1936
|
+
public getElasticsearchBuiltinPrivileges(requestParameters: ElasticsearchApiGetElasticsearchBuiltinPrivilegesRequest, options?: RawAxiosRequestConfig) {
|
|
1937
|
+
return ElasticsearchApiFp(this.configuration).getElasticsearchBuiltinPrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
/**
|
|
1941
|
+
*
|
|
1942
|
+
* @summary Get Elasticsearch security role
|
|
1943
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
1944
|
+
* @param {*} [options] Override http request option.
|
|
1945
|
+
* @throws {RequiredError}
|
|
1946
|
+
* @memberof ElasticsearchApi
|
|
1947
|
+
*/
|
|
1948
|
+
public getElasticsearchSecurityRole(requestParameters: ElasticsearchApiGetElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig) {
|
|
1949
|
+
return ElasticsearchApiFp(this.configuration).getElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
/**
|
|
1953
|
+
*
|
|
1954
|
+
* @summary Get Elasticsearch security role mapping
|
|
1955
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
1956
|
+
* @param {*} [options] Override http request option.
|
|
1957
|
+
* @throws {RequiredError}
|
|
1958
|
+
* @memberof ElasticsearchApi
|
|
1959
|
+
*/
|
|
1960
|
+
public getElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiGetElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig) {
|
|
1961
|
+
return ElasticsearchApiFp(this.configuration).getElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(this.axios, this.basePath));
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
/**
|
|
1965
|
+
*
|
|
1966
|
+
* @summary Get Elasticsearch security user
|
|
1967
|
+
* @param {ElasticsearchApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
1968
|
+
* @param {*} [options] Override http request option.
|
|
1969
|
+
* @throws {RequiredError}
|
|
1970
|
+
* @memberof ElasticsearchApi
|
|
1971
|
+
*/
|
|
1972
|
+
public getElasticsearchSecurityUser(requestParameters: ElasticsearchApiGetElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig) {
|
|
1973
|
+
return ElasticsearchApiFp(this.configuration).getElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
/**
|
|
1977
|
+
*
|
|
1978
|
+
* @summary List Elasticsearch security role mappings
|
|
1979
|
+
* @param {ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
|
|
1980
|
+
* @param {*} [options] Override http request option.
|
|
1981
|
+
* @throws {RequiredError}
|
|
1982
|
+
* @memberof ElasticsearchApi
|
|
1983
|
+
*/
|
|
1984
|
+
public listElasticsearchSecurityRoleMappings(requestParameters: ElasticsearchApiListElasticsearchSecurityRoleMappingsRequest, options?: RawAxiosRequestConfig) {
|
|
1985
|
+
return ElasticsearchApiFp(this.configuration).listElasticsearchSecurityRoleMappings(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/**
|
|
1989
|
+
*
|
|
1990
|
+
* @summary List Elasticsearch security roles
|
|
1991
|
+
* @param {ElasticsearchApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
|
|
1992
|
+
* @param {*} [options] Override http request option.
|
|
1993
|
+
* @throws {RequiredError}
|
|
1994
|
+
* @memberof ElasticsearchApi
|
|
1995
|
+
*/
|
|
1996
|
+
public listElasticsearchSecurityRoles(requestParameters: ElasticsearchApiListElasticsearchSecurityRolesRequest, options?: RawAxiosRequestConfig) {
|
|
1997
|
+
return ElasticsearchApiFp(this.configuration).listElasticsearchSecurityRoles(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
1998
|
+
}
|
|
1999
|
+
|
|
2000
|
+
/**
|
|
2001
|
+
*
|
|
2002
|
+
* @summary List Elasticsearch security users
|
|
2003
|
+
* @param {ElasticsearchApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
|
|
2004
|
+
* @param {*} [options] Override http request option.
|
|
2005
|
+
* @throws {RequiredError}
|
|
2006
|
+
* @memberof ElasticsearchApi
|
|
2007
|
+
*/
|
|
2008
|
+
public listElasticsearchSecurityUsers(requestParameters: ElasticsearchApiListElasticsearchSecurityUsersRequest, options?: RawAxiosRequestConfig) {
|
|
2009
|
+
return ElasticsearchApiFp(this.configuration).listElasticsearchSecurityUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
*
|
|
2014
|
+
* @summary Lock Elasticsearch account
|
|
2015
|
+
* @param {ElasticsearchApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
2016
|
+
* @param {*} [options] Override http request option.
|
|
2017
|
+
* @throws {RequiredError}
|
|
2018
|
+
* @memberof ElasticsearchApi
|
|
2019
|
+
*/
|
|
2020
|
+
public lockElasticsearchSecurityUser(requestParameters: ElasticsearchApiLockElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig) {
|
|
2021
|
+
return ElasticsearchApiFp(this.configuration).lockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
*
|
|
2026
|
+
* @summary Create or update Elasticsearch security role
|
|
2027
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
2028
|
+
* @param {*} [options] Override http request option.
|
|
2029
|
+
* @throws {RequiredError}
|
|
2030
|
+
* @memberof ElasticsearchApi
|
|
2031
|
+
*/
|
|
2032
|
+
public putElasticsearchSecurityRole(requestParameters: ElasticsearchApiPutElasticsearchSecurityRoleRequest, options?: RawAxiosRequestConfig) {
|
|
2033
|
+
return ElasticsearchApiFp(this.configuration).putElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
*
|
|
2038
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
2039
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
2040
|
+
* @param {*} [options] Override http request option.
|
|
2041
|
+
* @throws {RequiredError}
|
|
2042
|
+
* @memberof ElasticsearchApi
|
|
2043
|
+
*/
|
|
2044
|
+
public putElasticsearchSecurityRoleMapping(requestParameters: ElasticsearchApiPutElasticsearchSecurityRoleMappingRequest, options?: RawAxiosRequestConfig) {
|
|
2045
|
+
return ElasticsearchApiFp(this.configuration).putElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
/**
|
|
2049
|
+
*
|
|
2050
|
+
* @summary Create or update Elasticsearch security user
|
|
2051
|
+
* @param {ElasticsearchApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
2052
|
+
* @param {*} [options] Override http request option.
|
|
2053
|
+
* @throws {RequiredError}
|
|
2054
|
+
* @memberof ElasticsearchApi
|
|
2055
|
+
*/
|
|
2056
|
+
public putElasticsearchSecurityUser(requestParameters: ElasticsearchApiPutElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig) {
|
|
2057
|
+
return ElasticsearchApiFp(this.configuration).putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
*
|
|
2062
|
+
* @summary Unlock Elasticsearch account
|
|
2063
|
+
* @param {ElasticsearchApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
2064
|
+
* @param {*} [options] Override http request option.
|
|
2065
|
+
* @throws {RequiredError}
|
|
2066
|
+
* @memberof ElasticsearchApi
|
|
2067
|
+
*/
|
|
2068
|
+
public unlockElasticsearchSecurityUser(requestParameters: ElasticsearchApiUnlockElasticsearchSecurityUserRequest, options?: RawAxiosRequestConfig) {
|
|
2069
|
+
return ElasticsearchApiFp(this.configuration).unlockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
|