kb-cloud-client-typescript 2.3.0-beta.12 → 2.3.0-beta.14
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/apis/account-api.d.ts +151 -79
- package/dist/adminapi/apis/account-api.d.ts.map +1 -1
- package/dist/adminapi/apis/account-api.js +165 -85
- package/dist/adminapi/apis/account-api.js.map +1 -1
- package/dist/adminapi/apis/milvus-api.d.ts +151 -79
- package/dist/adminapi/apis/milvus-api.d.ts.map +1 -1
- package/dist/adminapi/apis/milvus-api.js +153 -73
- package/dist/adminapi/apis/milvus-api.js.map +1 -1
- package/dist/adminapi/apis/shared-api.d.ts +151 -79
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +165 -85
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/cluster-reference.d.ts +31 -0
- package/dist/adminapi/models/cluster-reference.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-reference.js +16 -0
- package/dist/adminapi/models/cluster-reference.js.map +1 -0
- package/dist/adminapi/models/cluster.d.ts +3 -2
- package/dist/adminapi/models/cluster.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/milvus-role-create-request.d.ts +32 -0
- package/dist/adminapi/models/milvus-role-create-request.d.ts.map +1 -0
- package/dist/adminapi/models/milvus-role-create-request.js +16 -0
- package/dist/adminapi/models/milvus-role-create-request.js.map +1 -0
- package/dist/adminapi/models/milvus-role-request.d.ts +1 -1
- package/dist/adminapi/models/mode-service-ref-helm-value-path.d.ts +6 -0
- package/dist/adminapi/models/mode-service-ref-helm-value-path.d.ts.map +1 -1
- package/dist/adminapi/models/mode-service-ref.d.ts +20 -0
- package/dist/adminapi/models/mode-service-ref.d.ts.map +1 -1
- package/dist/adminapi/models/redis-key-value-item.d.ts +3 -5
- package/dist/adminapi/models/redis-key-value-item.d.ts.map +1 -1
- package/dist/adminapi/models/service-ref.d.ts +8 -0
- package/dist/adminapi/models/service-ref.d.ts.map +1 -1
- package/dist/internalapi/models/cluster-reference.d.ts +31 -0
- package/dist/internalapi/models/cluster-reference.d.ts.map +1 -0
- package/dist/internalapi/models/cluster-reference.js +16 -0
- package/dist/internalapi/models/cluster-reference.js.map +1 -0
- package/dist/internalapi/models/cluster.d.ts +3 -2
- package/dist/internalapi/models/cluster.d.ts.map +1 -1
- package/dist/internalapi/models/index.d.ts +1 -0
- package/dist/internalapi/models/index.d.ts.map +1 -1
- package/dist/internalapi/models/index.js +1 -0
- package/dist/internalapi/models/index.js.map +1 -1
- package/dist/internalapi/models/service-ref.d.ts +8 -0
- package/dist/internalapi/models/service-ref.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.d.ts +151 -79
- package/dist/openapi/apis/account-api.d.ts.map +1 -1
- package/dist/openapi/apis/account-api.js +165 -85
- package/dist/openapi/apis/account-api.js.map +1 -1
- package/dist/openapi/apis/milvus-api.d.ts +151 -79
- package/dist/openapi/apis/milvus-api.d.ts.map +1 -1
- package/dist/openapi/apis/milvus-api.js +153 -73
- package/dist/openapi/apis/milvus-api.js.map +1 -1
- package/dist/openapi/apis/shared-api.d.ts +151 -79
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +165 -85
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/cluster-reference.d.ts +31 -0
- package/dist/openapi/models/cluster-reference.d.ts.map +1 -0
- package/dist/openapi/models/cluster-reference.js +16 -0
- package/dist/openapi/models/cluster-reference.js.map +1 -0
- package/dist/openapi/models/cluster.d.ts +3 -2
- package/dist/openapi/models/cluster.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/milvus-role-create-request.d.ts +32 -0
- package/dist/openapi/models/milvus-role-create-request.d.ts.map +1 -0
- package/dist/openapi/models/milvus-role-create-request.js +16 -0
- package/dist/openapi/models/milvus-role-create-request.js.map +1 -0
- package/dist/openapi/models/milvus-role-request.d.ts +1 -1
- package/dist/openapi/models/mode-service-ref-helm-value-path.d.ts +6 -0
- package/dist/openapi/models/mode-service-ref-helm-value-path.d.ts.map +1 -1
- package/dist/openapi/models/mode-service-ref.d.ts +20 -0
- package/dist/openapi/models/mode-service-ref.d.ts.map +1 -1
- package/dist/openapi/models/redis-key-value-item.d.ts +3 -5
- package/dist/openapi/models/redis-key-value-item.d.ts.map +1 -1
- package/dist/openapi/models/service-ref.d.ts +8 -0
- package/dist/openapi/models/service-ref.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/account-api.ts +266 -138
- package/src/adminapi/apis/milvus-api.ts +242 -114
- package/src/adminapi/apis/shared-api.ts +266 -138
- package/src/adminapi/models/cluster-reference.ts +36 -0
- package/src/adminapi/models/cluster.ts +5 -2
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/milvus-role-create-request.ts +39 -0
- package/src/adminapi/models/milvus-role-request.ts +1 -1
- package/src/adminapi/models/mode-service-ref-helm-value-path.ts +6 -0
- package/src/adminapi/models/mode-service-ref.ts +18 -0
- package/src/adminapi/models/redis-key-value-item.ts +3 -3
- package/src/adminapi/models/service-ref.ts +6 -0
- package/src/adminapi.yaml +113 -8
- package/src/internalapi/.openapi-generator/FILES +1 -0
- package/src/internalapi/models/cluster-reference.ts +36 -0
- package/src/internalapi/models/cluster.ts +5 -2
- package/src/internalapi/models/index.ts +1 -0
- package/src/internalapi/models/service-ref.ts +6 -0
- package/src/internalapi.yaml +19 -1
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/account-api.ts +266 -138
- package/src/openapi/apis/milvus-api.ts +242 -114
- package/src/openapi/apis/shared-api.ts +266 -138
- package/src/openapi/models/cluster-reference.ts +36 -0
- package/src/openapi/models/cluster.ts +5 -2
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/milvus-role-create-request.ts +39 -0
- package/src/openapi/models/milvus-role-request.ts +1 -1
- package/src/openapi/models/mode-service-ref-helm-value-path.ts +6 -0
- package/src/openapi/models/mode-service-ref.ts +18 -0
- package/src/openapi/models/redis-key-value-item.ts +3 -3
- package/src/openapi/models/service-ref.ts +6 -0
- package/src/openapi.yaml +113 -8
|
@@ -40,6 +40,8 @@ import type { MilvusAccountRoles } from '../models';
|
|
|
40
40
|
// @ts-ignore
|
|
41
41
|
import type { MilvusRole } from '../models';
|
|
42
42
|
// @ts-ignore
|
|
43
|
+
import type { MilvusRoleCreateRequest } from '../models';
|
|
44
|
+
// @ts-ignore
|
|
43
45
|
import type { MilvusRoleList } from '../models';
|
|
44
46
|
// @ts-ignore
|
|
45
47
|
import type { MilvusRoleRequest } from '../models';
|
|
@@ -204,6 +206,57 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
204
206
|
|
|
205
207
|
|
|
206
208
|
|
|
209
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
210
|
+
|
|
211
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
214
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
215
|
+
|
|
216
|
+
return {
|
|
217
|
+
url: toPathString(localVarUrlObj),
|
|
218
|
+
options: localVarRequestOptions,
|
|
219
|
+
};
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
* Create a Milvus native role and grant its initial privileges.
|
|
223
|
+
* @summary Create Milvus role
|
|
224
|
+
* @param {string} orgName name of the Org
|
|
225
|
+
* @param {string} clusterName name of the Cluster
|
|
226
|
+
* @param {MilvusRoleCreateRequest} body
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
*/
|
|
230
|
+
createMilvusRole: async (orgName: string, clusterName: string, body: MilvusRoleCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
231
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
232
|
+
assertParamExists('createMilvusRole', 'orgName', orgName)
|
|
233
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
234
|
+
assertParamExists('createMilvusRole', 'clusterName', clusterName)
|
|
235
|
+
// verify required parameter 'body' is not null or undefined
|
|
236
|
+
assertParamExists('createMilvusRole', 'body', body)
|
|
237
|
+
const localVarPath = `/api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
238
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
239
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
240
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
241
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
242
|
+
let baseOptions;
|
|
243
|
+
if (configuration) {
|
|
244
|
+
baseOptions = configuration.baseOptions;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
248
|
+
const localVarHeaderParameter = {} as any;
|
|
249
|
+
const localVarQueryParameter = {} as any;
|
|
250
|
+
|
|
251
|
+
// authentication BearerToken required
|
|
252
|
+
// http bearer authentication required
|
|
253
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
254
|
+
|
|
255
|
+
// authentication DigestAuth required
|
|
256
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
207
260
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
208
261
|
|
|
209
262
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1320,61 +1373,6 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1320
1373
|
options: localVarRequestOptions,
|
|
1321
1374
|
};
|
|
1322
1375
|
},
|
|
1323
|
-
/**
|
|
1324
|
-
* Create or update a Milvus native role and replace its privilege grants.
|
|
1325
|
-
* @summary Put Milvus role
|
|
1326
|
-
* @param {string} orgName name of the Org
|
|
1327
|
-
* @param {string} clusterName name of the Cluster
|
|
1328
|
-
* @param {string} roleName name of the Milvus role
|
|
1329
|
-
* @param {MilvusRoleRequest} body
|
|
1330
|
-
* @param {*} [options] Override http request option.
|
|
1331
|
-
* @throws {RequiredError}
|
|
1332
|
-
*/
|
|
1333
|
-
putMilvusRole: async (orgName: string, clusterName: string, roleName: string, body: MilvusRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1334
|
-
// verify required parameter 'orgName' is not null or undefined
|
|
1335
|
-
assertParamExists('putMilvusRole', 'orgName', orgName)
|
|
1336
|
-
// verify required parameter 'clusterName' is not null or undefined
|
|
1337
|
-
assertParamExists('putMilvusRole', 'clusterName', clusterName)
|
|
1338
|
-
// verify required parameter 'roleName' is not null or undefined
|
|
1339
|
-
assertParamExists('putMilvusRole', 'roleName', roleName)
|
|
1340
|
-
// verify required parameter 'body' is not null or undefined
|
|
1341
|
-
assertParamExists('putMilvusRole', 'body', body)
|
|
1342
|
-
const localVarPath = `/api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
1343
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1344
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1345
|
-
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
1346
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1347
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1348
|
-
let baseOptions;
|
|
1349
|
-
if (configuration) {
|
|
1350
|
-
baseOptions = configuration.baseOptions;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1354
|
-
const localVarHeaderParameter = {} as any;
|
|
1355
|
-
const localVarQueryParameter = {} as any;
|
|
1356
|
-
|
|
1357
|
-
// authentication BearerToken required
|
|
1358
|
-
// http bearer authentication required
|
|
1359
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1360
|
-
|
|
1361
|
-
// authentication DigestAuth required
|
|
1362
|
-
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1367
|
-
|
|
1368
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1369
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1370
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1371
|
-
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1372
|
-
|
|
1373
|
-
return {
|
|
1374
|
-
url: toPathString(localVarUrlObj),
|
|
1375
|
-
options: localVarRequestOptions,
|
|
1376
|
-
};
|
|
1377
|
-
},
|
|
1378
1376
|
/**
|
|
1379
1377
|
* unlock an account in cluster
|
|
1380
1378
|
* @summary Unlock cluster account
|
|
@@ -1754,6 +1752,61 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
1754
1752
|
|
|
1755
1753
|
|
|
1756
1754
|
|
|
1755
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1756
|
+
|
|
1757
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1759
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1760
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
1761
|
+
|
|
1762
|
+
return {
|
|
1763
|
+
url: toPathString(localVarUrlObj),
|
|
1764
|
+
options: localVarRequestOptions,
|
|
1765
|
+
};
|
|
1766
|
+
},
|
|
1767
|
+
/**
|
|
1768
|
+
* Update an existing Milvus native role by replacing its privilege grants.
|
|
1769
|
+
* @summary Update Milvus role
|
|
1770
|
+
* @param {string} orgName name of the Org
|
|
1771
|
+
* @param {string} clusterName name of the Cluster
|
|
1772
|
+
* @param {string} roleName name of the Milvus role
|
|
1773
|
+
* @param {MilvusRoleRequest} body
|
|
1774
|
+
* @param {*} [options] Override http request option.
|
|
1775
|
+
* @throws {RequiredError}
|
|
1776
|
+
*/
|
|
1777
|
+
updateMilvusRole: async (orgName: string, clusterName: string, roleName: string, body: MilvusRoleRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1778
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1779
|
+
assertParamExists('updateMilvusRole', 'orgName', orgName)
|
|
1780
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1781
|
+
assertParamExists('updateMilvusRole', 'clusterName', clusterName)
|
|
1782
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
1783
|
+
assertParamExists('updateMilvusRole', 'roleName', roleName)
|
|
1784
|
+
// verify required parameter 'body' is not null or undefined
|
|
1785
|
+
assertParamExists('updateMilvusRole', 'body', body)
|
|
1786
|
+
const localVarPath = `/api/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
1787
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1788
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1789
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
1790
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1791
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1792
|
+
let baseOptions;
|
|
1793
|
+
if (configuration) {
|
|
1794
|
+
baseOptions = configuration.baseOptions;
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1798
|
+
const localVarHeaderParameter = {} as any;
|
|
1799
|
+
const localVarQueryParameter = {} as any;
|
|
1800
|
+
|
|
1801
|
+
// authentication BearerToken required
|
|
1802
|
+
// http bearer authentication required
|
|
1803
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1804
|
+
|
|
1805
|
+
// authentication DigestAuth required
|
|
1806
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
|
|
1757
1810
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1758
1811
|
|
|
1759
1812
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2040,6 +2093,21 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2040
2093
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.createKafkaAccount']?.[localVarOperationServerIndex]?.url;
|
|
2041
2094
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2042
2095
|
},
|
|
2096
|
+
/**
|
|
2097
|
+
* Create a Milvus native role and grant its initial privileges.
|
|
2098
|
+
* @summary Create Milvus role
|
|
2099
|
+
* @param {string} orgName name of the Org
|
|
2100
|
+
* @param {string} clusterName name of the Cluster
|
|
2101
|
+
* @param {MilvusRoleCreateRequest} body
|
|
2102
|
+
* @param {*} [options] Override http request option.
|
|
2103
|
+
* @throws {RequiredError}
|
|
2104
|
+
*/
|
|
2105
|
+
async createMilvusRole(orgName: string, clusterName: string, body: MilvusRoleCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MilvusRole>> {
|
|
2106
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createMilvusRole(orgName, clusterName, body, options);
|
|
2107
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2108
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.createMilvusRole']?.[localVarOperationServerIndex]?.url;
|
|
2109
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2110
|
+
},
|
|
2043
2111
|
/**
|
|
2044
2112
|
* create an account in mongodb
|
|
2045
2113
|
* @summary Create mongodb account
|
|
@@ -2373,22 +2441,6 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2373
2441
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.lockAccount']?.[localVarOperationServerIndex]?.url;
|
|
2374
2442
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2375
2443
|
},
|
|
2376
|
-
/**
|
|
2377
|
-
* Create or update a Milvus native role and replace its privilege grants.
|
|
2378
|
-
* @summary Put Milvus role
|
|
2379
|
-
* @param {string} orgName name of the Org
|
|
2380
|
-
* @param {string} clusterName name of the Cluster
|
|
2381
|
-
* @param {string} roleName name of the Milvus role
|
|
2382
|
-
* @param {MilvusRoleRequest} body
|
|
2383
|
-
* @param {*} [options] Override http request option.
|
|
2384
|
-
* @throws {RequiredError}
|
|
2385
|
-
*/
|
|
2386
|
-
async putMilvusRole(orgName: string, clusterName: string, roleName: string, body: MilvusRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MilvusRole>> {
|
|
2387
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.putMilvusRole(orgName, clusterName, roleName, body, options);
|
|
2388
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2389
|
-
const localVarOperationServerBasePath = operationServerMap['AccountApi.putMilvusRole']?.[localVarOperationServerIndex]?.url;
|
|
2390
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2391
|
-
},
|
|
2392
2444
|
/**
|
|
2393
2445
|
* unlock an account in cluster
|
|
2394
2446
|
* @summary Unlock cluster account
|
|
@@ -2503,6 +2555,22 @@ export const AccountApiFp = function(configuration?: Configuration) {
|
|
|
2503
2555
|
const localVarOperationServerBasePath = operationServerMap['AccountApi.updateMilvusAccountRoles']?.[localVarOperationServerIndex]?.url;
|
|
2504
2556
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2505
2557
|
},
|
|
2558
|
+
/**
|
|
2559
|
+
* Update an existing Milvus native role by replacing its privilege grants.
|
|
2560
|
+
* @summary Update Milvus role
|
|
2561
|
+
* @param {string} orgName name of the Org
|
|
2562
|
+
* @param {string} clusterName name of the Cluster
|
|
2563
|
+
* @param {string} roleName name of the Milvus role
|
|
2564
|
+
* @param {MilvusRoleRequest} body
|
|
2565
|
+
* @param {*} [options] Override http request option.
|
|
2566
|
+
* @throws {RequiredError}
|
|
2567
|
+
*/
|
|
2568
|
+
async updateMilvusRole(orgName: string, clusterName: string, roleName: string, body: MilvusRoleRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MilvusRole>> {
|
|
2569
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateMilvusRole(orgName, clusterName, roleName, body, options);
|
|
2570
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2571
|
+
const localVarOperationServerBasePath = operationServerMap['AccountApi.updateMilvusRole']?.[localVarOperationServerIndex]?.url;
|
|
2572
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2573
|
+
},
|
|
2506
2574
|
/**
|
|
2507
2575
|
*
|
|
2508
2576
|
* @summary update mssql account compatible with windows account
|
|
@@ -2607,6 +2675,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
2607
2675
|
createKafkaAccount(requestParameters: AccountApiCreateKafkaAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account> {
|
|
2608
2676
|
return localVarFp.createKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
2609
2677
|
},
|
|
2678
|
+
/**
|
|
2679
|
+
* Create a Milvus native role and grant its initial privileges.
|
|
2680
|
+
* @summary Create Milvus role
|
|
2681
|
+
* @param {AccountApiCreateMilvusRoleRequest} requestParameters Request parameters.
|
|
2682
|
+
* @param {*} [options] Override http request option.
|
|
2683
|
+
* @throws {RequiredError}
|
|
2684
|
+
*/
|
|
2685
|
+
createMilvusRole(requestParameters: AccountApiCreateMilvusRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<MilvusRole> {
|
|
2686
|
+
return localVarFp.createMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
2687
|
+
},
|
|
2610
2688
|
/**
|
|
2611
2689
|
* create an account in mongodb
|
|
2612
2690
|
* @summary Create mongodb account
|
|
@@ -2827,16 +2905,6 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
2827
2905
|
lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2828
2906
|
return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
|
|
2829
2907
|
},
|
|
2830
|
-
/**
|
|
2831
|
-
* Create or update a Milvus native role and replace its privilege grants.
|
|
2832
|
-
* @summary Put Milvus role
|
|
2833
|
-
* @param {AccountApiPutMilvusRoleRequest} requestParameters Request parameters.
|
|
2834
|
-
* @param {*} [options] Override http request option.
|
|
2835
|
-
* @throws {RequiredError}
|
|
2836
|
-
*/
|
|
2837
|
-
putMilvusRole(requestParameters: AccountApiPutMilvusRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<MilvusRole> {
|
|
2838
|
-
return localVarFp.putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
2839
|
-
},
|
|
2840
2908
|
/**
|
|
2841
2909
|
* unlock an account in cluster
|
|
2842
2910
|
* @summary Unlock cluster account
|
|
@@ -2907,6 +2975,16 @@ export const AccountApiFactory = function (configuration?: Configuration, basePa
|
|
|
2907
2975
|
updateMilvusAccountRoles(requestParameters: AccountApiUpdateMilvusAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
2908
2976
|
return localVarFp.updateMilvusAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
2909
2977
|
},
|
|
2978
|
+
/**
|
|
2979
|
+
* Update an existing Milvus native role by replacing its privilege grants.
|
|
2980
|
+
* @summary Update Milvus role
|
|
2981
|
+
* @param {AccountApiUpdateMilvusRoleRequest} requestParameters Request parameters.
|
|
2982
|
+
* @param {*} [options] Override http request option.
|
|
2983
|
+
* @throws {RequiredError}
|
|
2984
|
+
*/
|
|
2985
|
+
updateMilvusRole(requestParameters: AccountApiUpdateMilvusRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<MilvusRole> {
|
|
2986
|
+
return localVarFp.updateMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
2987
|
+
},
|
|
2910
2988
|
/**
|
|
2911
2989
|
*
|
|
2912
2990
|
* @summary update mssql account compatible with windows account
|
|
@@ -2986,6 +3064,16 @@ export interface AccountApiInterface {
|
|
|
2986
3064
|
*/
|
|
2987
3065
|
createKafkaAccount(requestParameters: AccountApiCreateKafkaAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<Account>;
|
|
2988
3066
|
|
|
3067
|
+
/**
|
|
3068
|
+
* Create a Milvus native role and grant its initial privileges.
|
|
3069
|
+
* @summary Create Milvus role
|
|
3070
|
+
* @param {AccountApiCreateMilvusRoleRequest} requestParameters Request parameters.
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
* @memberof AccountApiInterface
|
|
3074
|
+
*/
|
|
3075
|
+
createMilvusRole(requestParameters: AccountApiCreateMilvusRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<MilvusRole>;
|
|
3076
|
+
|
|
2989
3077
|
/**
|
|
2990
3078
|
* create an account in mongodb
|
|
2991
3079
|
* @summary Create mongodb account
|
|
@@ -3206,16 +3294,6 @@ export interface AccountApiInterface {
|
|
|
3206
3294
|
*/
|
|
3207
3295
|
lockAccount(requestParameters: AccountApiLockAccountRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3208
3296
|
|
|
3209
|
-
/**
|
|
3210
|
-
* Create or update a Milvus native role and replace its privilege grants.
|
|
3211
|
-
* @summary Put Milvus role
|
|
3212
|
-
* @param {AccountApiPutMilvusRoleRequest} requestParameters Request parameters.
|
|
3213
|
-
* @param {*} [options] Override http request option.
|
|
3214
|
-
* @throws {RequiredError}
|
|
3215
|
-
* @memberof AccountApiInterface
|
|
3216
|
-
*/
|
|
3217
|
-
putMilvusRole(requestParameters: AccountApiPutMilvusRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<MilvusRole>;
|
|
3218
|
-
|
|
3219
3297
|
/**
|
|
3220
3298
|
* unlock an account in cluster
|
|
3221
3299
|
* @summary Unlock cluster account
|
|
@@ -3286,6 +3364,16 @@ export interface AccountApiInterface {
|
|
|
3286
3364
|
*/
|
|
3287
3365
|
updateMilvusAccountRoles(requestParameters: AccountApiUpdateMilvusAccountRolesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3288
3366
|
|
|
3367
|
+
/**
|
|
3368
|
+
* Update an existing Milvus native role by replacing its privilege grants.
|
|
3369
|
+
* @summary Update Milvus role
|
|
3370
|
+
* @param {AccountApiUpdateMilvusRoleRequest} requestParameters Request parameters.
|
|
3371
|
+
* @param {*} [options] Override http request option.
|
|
3372
|
+
* @throws {RequiredError}
|
|
3373
|
+
* @memberof AccountApiInterface
|
|
3374
|
+
*/
|
|
3375
|
+
updateMilvusRole(requestParameters: AccountApiUpdateMilvusRoleRequest, options?: RawAxiosRequestConfig): AxiosPromise<MilvusRole>;
|
|
3376
|
+
|
|
3289
3377
|
/**
|
|
3290
3378
|
*
|
|
3291
3379
|
* @summary update mssql account compatible with windows account
|
|
@@ -3419,6 +3507,34 @@ export interface AccountApiCreateKafkaAccountRequest {
|
|
|
3419
3507
|
readonly body: Account
|
|
3420
3508
|
}
|
|
3421
3509
|
|
|
3510
|
+
/**
|
|
3511
|
+
* Request parameters for createMilvusRole operation in AccountApi.
|
|
3512
|
+
* @export
|
|
3513
|
+
* @interface AccountApiCreateMilvusRoleRequest
|
|
3514
|
+
*/
|
|
3515
|
+
export interface AccountApiCreateMilvusRoleRequest {
|
|
3516
|
+
/**
|
|
3517
|
+
* name of the Org
|
|
3518
|
+
* @type {string}
|
|
3519
|
+
* @memberof AccountApiCreateMilvusRole
|
|
3520
|
+
*/
|
|
3521
|
+
readonly orgName: string
|
|
3522
|
+
|
|
3523
|
+
/**
|
|
3524
|
+
* name of the Cluster
|
|
3525
|
+
* @type {string}
|
|
3526
|
+
* @memberof AccountApiCreateMilvusRole
|
|
3527
|
+
*/
|
|
3528
|
+
readonly clusterName: string
|
|
3529
|
+
|
|
3530
|
+
/**
|
|
3531
|
+
*
|
|
3532
|
+
* @type {MilvusRoleCreateRequest}
|
|
3533
|
+
* @memberof AccountApiCreateMilvusRole
|
|
3534
|
+
*/
|
|
3535
|
+
readonly body: MilvusRoleCreateRequest
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3422
3538
|
/**
|
|
3423
3539
|
* Request parameters for createMongoDBAccount operation in AccountApi.
|
|
3424
3540
|
* @export
|
|
@@ -4056,41 +4172,6 @@ export interface AccountApiLockAccountRequest {
|
|
|
4056
4172
|
readonly accountName: string
|
|
4057
4173
|
}
|
|
4058
4174
|
|
|
4059
|
-
/**
|
|
4060
|
-
* Request parameters for putMilvusRole operation in AccountApi.
|
|
4061
|
-
* @export
|
|
4062
|
-
* @interface AccountApiPutMilvusRoleRequest
|
|
4063
|
-
*/
|
|
4064
|
-
export interface AccountApiPutMilvusRoleRequest {
|
|
4065
|
-
/**
|
|
4066
|
-
* name of the Org
|
|
4067
|
-
* @type {string}
|
|
4068
|
-
* @memberof AccountApiPutMilvusRole
|
|
4069
|
-
*/
|
|
4070
|
-
readonly orgName: string
|
|
4071
|
-
|
|
4072
|
-
/**
|
|
4073
|
-
* name of the Cluster
|
|
4074
|
-
* @type {string}
|
|
4075
|
-
* @memberof AccountApiPutMilvusRole
|
|
4076
|
-
*/
|
|
4077
|
-
readonly clusterName: string
|
|
4078
|
-
|
|
4079
|
-
/**
|
|
4080
|
-
* name of the Milvus role
|
|
4081
|
-
* @type {string}
|
|
4082
|
-
* @memberof AccountApiPutMilvusRole
|
|
4083
|
-
*/
|
|
4084
|
-
readonly roleName: string
|
|
4085
|
-
|
|
4086
|
-
/**
|
|
4087
|
-
*
|
|
4088
|
-
* @type {MilvusRoleRequest}
|
|
4089
|
-
* @memberof AccountApiPutMilvusRole
|
|
4090
|
-
*/
|
|
4091
|
-
readonly body: MilvusRoleRequest
|
|
4092
|
-
}
|
|
4093
|
-
|
|
4094
4175
|
/**
|
|
4095
4176
|
* Request parameters for unlockAccount operation in AccountApi.
|
|
4096
4177
|
* @export
|
|
@@ -4350,6 +4431,41 @@ export interface AccountApiUpdateMilvusAccountRolesRequest {
|
|
|
4350
4431
|
readonly body: MilvusAccountRoles
|
|
4351
4432
|
}
|
|
4352
4433
|
|
|
4434
|
+
/**
|
|
4435
|
+
* Request parameters for updateMilvusRole operation in AccountApi.
|
|
4436
|
+
* @export
|
|
4437
|
+
* @interface AccountApiUpdateMilvusRoleRequest
|
|
4438
|
+
*/
|
|
4439
|
+
export interface AccountApiUpdateMilvusRoleRequest {
|
|
4440
|
+
/**
|
|
4441
|
+
* name of the Org
|
|
4442
|
+
* @type {string}
|
|
4443
|
+
* @memberof AccountApiUpdateMilvusRole
|
|
4444
|
+
*/
|
|
4445
|
+
readonly orgName: string
|
|
4446
|
+
|
|
4447
|
+
/**
|
|
4448
|
+
* name of the Cluster
|
|
4449
|
+
* @type {string}
|
|
4450
|
+
* @memberof AccountApiUpdateMilvusRole
|
|
4451
|
+
*/
|
|
4452
|
+
readonly clusterName: string
|
|
4453
|
+
|
|
4454
|
+
/**
|
|
4455
|
+
* name of the Milvus role
|
|
4456
|
+
* @type {string}
|
|
4457
|
+
* @memberof AccountApiUpdateMilvusRole
|
|
4458
|
+
*/
|
|
4459
|
+
readonly roleName: string
|
|
4460
|
+
|
|
4461
|
+
/**
|
|
4462
|
+
*
|
|
4463
|
+
* @type {MilvusRoleRequest}
|
|
4464
|
+
* @memberof AccountApiUpdateMilvusRole
|
|
4465
|
+
*/
|
|
4466
|
+
readonly body: MilvusRoleRequest
|
|
4467
|
+
}
|
|
4468
|
+
|
|
4353
4469
|
/**
|
|
4354
4470
|
* Request parameters for updateMssqlAccount operation in AccountApi.
|
|
4355
4471
|
* @export
|
|
@@ -4533,6 +4649,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
4533
4649
|
return AccountApiFp(this.configuration).createKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
4534
4650
|
}
|
|
4535
4651
|
|
|
4652
|
+
/**
|
|
4653
|
+
* Create a Milvus native role and grant its initial privileges.
|
|
4654
|
+
* @summary Create Milvus role
|
|
4655
|
+
* @param {AccountApiCreateMilvusRoleRequest} requestParameters Request parameters.
|
|
4656
|
+
* @param {*} [options] Override http request option.
|
|
4657
|
+
* @throws {RequiredError}
|
|
4658
|
+
* @memberof AccountApi
|
|
4659
|
+
*/
|
|
4660
|
+
public createMilvusRole(requestParameters: AccountApiCreateMilvusRoleRequest, options?: RawAxiosRequestConfig) {
|
|
4661
|
+
return AccountApiFp(this.configuration).createMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
4662
|
+
}
|
|
4663
|
+
|
|
4536
4664
|
/**
|
|
4537
4665
|
* create an account in mongodb
|
|
4538
4666
|
* @summary Create mongodb account
|
|
@@ -4797,18 +4925,6 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
4797
4925
|
return AccountApiFp(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
|
|
4798
4926
|
}
|
|
4799
4927
|
|
|
4800
|
-
/**
|
|
4801
|
-
* Create or update a Milvus native role and replace its privilege grants.
|
|
4802
|
-
* @summary Put Milvus role
|
|
4803
|
-
* @param {AccountApiPutMilvusRoleRequest} requestParameters Request parameters.
|
|
4804
|
-
* @param {*} [options] Override http request option.
|
|
4805
|
-
* @throws {RequiredError}
|
|
4806
|
-
* @memberof AccountApi
|
|
4807
|
-
*/
|
|
4808
|
-
public putMilvusRole(requestParameters: AccountApiPutMilvusRoleRequest, options?: RawAxiosRequestConfig) {
|
|
4809
|
-
return AccountApiFp(this.configuration).putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
4810
|
-
}
|
|
4811
|
-
|
|
4812
4928
|
/**
|
|
4813
4929
|
* unlock an account in cluster
|
|
4814
4930
|
* @summary Unlock cluster account
|
|
@@ -4893,6 +5009,18 @@ export class AccountApi extends BaseAPI implements AccountApiInterface {
|
|
|
4893
5009
|
return AccountApiFp(this.configuration).updateMilvusAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
4894
5010
|
}
|
|
4895
5011
|
|
|
5012
|
+
/**
|
|
5013
|
+
* Update an existing Milvus native role by replacing its privilege grants.
|
|
5014
|
+
* @summary Update Milvus role
|
|
5015
|
+
* @param {AccountApiUpdateMilvusRoleRequest} requestParameters Request parameters.
|
|
5016
|
+
* @param {*} [options] Override http request option.
|
|
5017
|
+
* @throws {RequiredError}
|
|
5018
|
+
* @memberof AccountApi
|
|
5019
|
+
*/
|
|
5020
|
+
public updateMilvusRole(requestParameters: AccountApiUpdateMilvusRoleRequest, options?: RawAxiosRequestConfig) {
|
|
5021
|
+
return AccountApiFp(this.configuration).updateMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
5022
|
+
}
|
|
5023
|
+
|
|
4896
5024
|
/**
|
|
4897
5025
|
*
|
|
4898
5026
|
* @summary update mssql account compatible with windows account
|