kb-cloud-client-typescript 2.3.0-beta.11 → 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.
Files changed (129) hide show
  1. package/dist/adminapi/apis/account-api.d.ts +151 -79
  2. package/dist/adminapi/apis/account-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/account-api.js +165 -85
  4. package/dist/adminapi/apis/account-api.js.map +1 -1
  5. package/dist/adminapi/apis/milvus-api.d.ts +151 -79
  6. package/dist/adminapi/apis/milvus-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/milvus-api.js +153 -73
  8. package/dist/adminapi/apis/milvus-api.js.map +1 -1
  9. package/dist/adminapi/apis/shared-api.d.ts +151 -79
  10. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/shared-api.js +165 -85
  12. package/dist/adminapi/apis/shared-api.js.map +1 -1
  13. package/dist/adminapi/models/cluster-reference.d.ts +31 -0
  14. package/dist/adminapi/models/cluster-reference.d.ts.map +1 -0
  15. package/dist/adminapi/models/cluster-reference.js +16 -0
  16. package/dist/adminapi/models/cluster-reference.js.map +1 -0
  17. package/dist/adminapi/models/cluster.d.ts +3 -2
  18. package/dist/adminapi/models/cluster.d.ts.map +1 -1
  19. package/dist/adminapi/models/essecurity-role-mapping.d.ts +3 -3
  20. package/dist/adminapi/models/essecurity-role-mapping.d.ts.map +1 -1
  21. package/dist/adminapi/models/essecurity-role-template.d.ts +1 -1
  22. package/dist/adminapi/models/essecurity-role-template.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.d.ts +2 -0
  24. package/dist/adminapi/models/index.d.ts.map +1 -1
  25. package/dist/adminapi/models/index.js +2 -0
  26. package/dist/adminapi/models/index.js.map +1 -1
  27. package/dist/adminapi/models/milvus-role-create-request.d.ts +32 -0
  28. package/dist/adminapi/models/milvus-role-create-request.d.ts.map +1 -0
  29. package/dist/adminapi/models/milvus-role-create-request.js +16 -0
  30. package/dist/adminapi/models/milvus-role-create-request.js.map +1 -0
  31. package/dist/adminapi/models/milvus-role-request.d.ts +1 -1
  32. package/dist/adminapi/models/mode-service-ref-helm-value-path.d.ts +6 -0
  33. package/dist/adminapi/models/mode-service-ref-helm-value-path.d.ts.map +1 -1
  34. package/dist/adminapi/models/mode-service-ref.d.ts +20 -0
  35. package/dist/adminapi/models/mode-service-ref.d.ts.map +1 -1
  36. package/dist/adminapi/models/redis-key-value-item.d.ts +3 -5
  37. package/dist/adminapi/models/redis-key-value-item.d.ts.map +1 -1
  38. package/dist/adminapi/models/service-ref.d.ts +8 -0
  39. package/dist/adminapi/models/service-ref.d.ts.map +1 -1
  40. package/dist/internalapi/models/cluster-reference.d.ts +31 -0
  41. package/dist/internalapi/models/cluster-reference.d.ts.map +1 -0
  42. package/dist/internalapi/models/cluster-reference.js +16 -0
  43. package/dist/internalapi/models/cluster-reference.js.map +1 -0
  44. package/dist/internalapi/models/cluster.d.ts +3 -2
  45. package/dist/internalapi/models/cluster.d.ts.map +1 -1
  46. package/dist/internalapi/models/index.d.ts +1 -0
  47. package/dist/internalapi/models/index.d.ts.map +1 -1
  48. package/dist/internalapi/models/index.js +1 -0
  49. package/dist/internalapi/models/index.js.map +1 -1
  50. package/dist/internalapi/models/service-ref.d.ts +8 -0
  51. package/dist/internalapi/models/service-ref.d.ts.map +1 -1
  52. package/dist/openapi/apis/account-api.d.ts +151 -79
  53. package/dist/openapi/apis/account-api.d.ts.map +1 -1
  54. package/dist/openapi/apis/account-api.js +165 -85
  55. package/dist/openapi/apis/account-api.js.map +1 -1
  56. package/dist/openapi/apis/milvus-api.d.ts +151 -79
  57. package/dist/openapi/apis/milvus-api.d.ts.map +1 -1
  58. package/dist/openapi/apis/milvus-api.js +153 -73
  59. package/dist/openapi/apis/milvus-api.js.map +1 -1
  60. package/dist/openapi/apis/shared-api.d.ts +151 -79
  61. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  62. package/dist/openapi/apis/shared-api.js +165 -85
  63. package/dist/openapi/apis/shared-api.js.map +1 -1
  64. package/dist/openapi/models/cluster-reference.d.ts +31 -0
  65. package/dist/openapi/models/cluster-reference.d.ts.map +1 -0
  66. package/dist/openapi/models/cluster-reference.js +16 -0
  67. package/dist/openapi/models/cluster-reference.js.map +1 -0
  68. package/dist/openapi/models/cluster.d.ts +3 -2
  69. package/dist/openapi/models/cluster.d.ts.map +1 -1
  70. package/dist/openapi/models/essecurity-role-mapping.d.ts +3 -3
  71. package/dist/openapi/models/essecurity-role-mapping.d.ts.map +1 -1
  72. package/dist/openapi/models/essecurity-role-template.d.ts +1 -1
  73. package/dist/openapi/models/essecurity-role-template.d.ts.map +1 -1
  74. package/dist/openapi/models/index.d.ts +2 -0
  75. package/dist/openapi/models/index.d.ts.map +1 -1
  76. package/dist/openapi/models/index.js +2 -0
  77. package/dist/openapi/models/index.js.map +1 -1
  78. package/dist/openapi/models/milvus-role-create-request.d.ts +32 -0
  79. package/dist/openapi/models/milvus-role-create-request.d.ts.map +1 -0
  80. package/dist/openapi/models/milvus-role-create-request.js +16 -0
  81. package/dist/openapi/models/milvus-role-create-request.js.map +1 -0
  82. package/dist/openapi/models/milvus-role-request.d.ts +1 -1
  83. package/dist/openapi/models/mode-service-ref-helm-value-path.d.ts +6 -0
  84. package/dist/openapi/models/mode-service-ref-helm-value-path.d.ts.map +1 -1
  85. package/dist/openapi/models/mode-service-ref.d.ts +20 -0
  86. package/dist/openapi/models/mode-service-ref.d.ts.map +1 -1
  87. package/dist/openapi/models/redis-key-value-item.d.ts +3 -5
  88. package/dist/openapi/models/redis-key-value-item.d.ts.map +1 -1
  89. package/dist/openapi/models/service-ref.d.ts +8 -0
  90. package/dist/openapi/models/service-ref.d.ts.map +1 -1
  91. package/package.json +1 -1
  92. package/src/adminapi/.openapi-generator/FILES +2 -0
  93. package/src/adminapi/apis/account-api.ts +266 -138
  94. package/src/adminapi/apis/milvus-api.ts +242 -114
  95. package/src/adminapi/apis/shared-api.ts +266 -138
  96. package/src/adminapi/models/cluster-reference.ts +36 -0
  97. package/src/adminapi/models/cluster.ts +5 -2
  98. package/src/adminapi/models/essecurity-role-mapping.ts +3 -3
  99. package/src/adminapi/models/essecurity-role-template.ts +1 -1
  100. package/src/adminapi/models/index.ts +2 -0
  101. package/src/adminapi/models/milvus-role-create-request.ts +39 -0
  102. package/src/adminapi/models/milvus-role-request.ts +1 -1
  103. package/src/adminapi/models/mode-service-ref-helm-value-path.ts +6 -0
  104. package/src/adminapi/models/mode-service-ref.ts +18 -0
  105. package/src/adminapi/models/redis-key-value-item.ts +3 -3
  106. package/src/adminapi/models/service-ref.ts +6 -0
  107. package/src/adminapi.yaml +119 -8
  108. package/src/internalapi/.openapi-generator/FILES +1 -0
  109. package/src/internalapi/models/cluster-reference.ts +36 -0
  110. package/src/internalapi/models/cluster.ts +5 -2
  111. package/src/internalapi/models/index.ts +1 -0
  112. package/src/internalapi/models/service-ref.ts +6 -0
  113. package/src/internalapi.yaml +19 -1
  114. package/src/openapi/.openapi-generator/FILES +2 -0
  115. package/src/openapi/apis/account-api.ts +266 -138
  116. package/src/openapi/apis/milvus-api.ts +242 -114
  117. package/src/openapi/apis/shared-api.ts +266 -138
  118. package/src/openapi/models/cluster-reference.ts +36 -0
  119. package/src/openapi/models/cluster.ts +5 -2
  120. package/src/openapi/models/essecurity-role-mapping.ts +3 -3
  121. package/src/openapi/models/essecurity-role-template.ts +1 -1
  122. package/src/openapi/models/index.ts +2 -0
  123. package/src/openapi/models/milvus-role-create-request.ts +39 -0
  124. package/src/openapi/models/milvus-role-request.ts +1 -1
  125. package/src/openapi/models/mode-service-ref-helm-value-path.ts +6 -0
  126. package/src/openapi/models/mode-service-ref.ts +18 -0
  127. package/src/openapi/models/redis-key-value-item.ts +3 -3
  128. package/src/openapi/models/service-ref.ts +6 -0
  129. package/src/openapi.yaml +119 -8
@@ -162,6 +162,49 @@ const AccountApiAxiosParamCreator = function (configuration) {
162
162
  options: localVarRequestOptions,
163
163
  };
164
164
  },
165
+ /**
166
+ * Create a Milvus native role and grant its initial privileges.
167
+ * @summary Create Milvus role
168
+ * @param {string} orgName name of the Org
169
+ * @param {string} clusterName name of the Cluster
170
+ * @param {MilvusRoleCreateRequest} body
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ createMilvusRole: async (orgName, clusterName, body, options = {}) => {
175
+ // verify required parameter 'orgName' is not null or undefined
176
+ (0, common_1.assertParamExists)('createMilvusRole', 'orgName', orgName);
177
+ // verify required parameter 'clusterName' is not null or undefined
178
+ (0, common_1.assertParamExists)('createMilvusRole', 'clusterName', clusterName);
179
+ // verify required parameter 'body' is not null or undefined
180
+ (0, common_1.assertParamExists)('createMilvusRole', 'body', body);
181
+ const localVarPath = `/admin/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
182
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
183
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
184
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
185
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
186
+ let baseOptions;
187
+ if (configuration) {
188
+ baseOptions = configuration.baseOptions;
189
+ }
190
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
191
+ const localVarHeaderParameter = {};
192
+ const localVarQueryParameter = {};
193
+ // authentication BearerToken required
194
+ // http bearer authentication required
195
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
196
+ // authentication DigestAuth required
197
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
198
+ localVarHeaderParameter['Content-Type'] = 'application/json';
199
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
200
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
201
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
202
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
203
+ return {
204
+ url: (0, common_1.toPathString)(localVarUrlObj),
205
+ options: localVarRequestOptions,
206
+ };
207
+ },
165
208
  /**
166
209
  * create an account in mongodb
167
210
  * @summary Create mongodb account
@@ -1105,53 +1148,6 @@ const AccountApiAxiosParamCreator = function (configuration) {
1105
1148
  options: localVarRequestOptions,
1106
1149
  };
1107
1150
  },
1108
- /**
1109
- * Create or update a Milvus native role and replace its privilege grants.
1110
- * @summary Put Milvus role
1111
- * @param {string} orgName name of the Org
1112
- * @param {string} clusterName name of the Cluster
1113
- * @param {string} roleName name of the Milvus role
1114
- * @param {MilvusRoleRequest} body
1115
- * @param {*} [options] Override http request option.
1116
- * @throws {RequiredError}
1117
- */
1118
- putMilvusRole: async (orgName, clusterName, roleName, body, options = {}) => {
1119
- // verify required parameter 'orgName' is not null or undefined
1120
- (0, common_1.assertParamExists)('putMilvusRole', 'orgName', orgName);
1121
- // verify required parameter 'clusterName' is not null or undefined
1122
- (0, common_1.assertParamExists)('putMilvusRole', 'clusterName', clusterName);
1123
- // verify required parameter 'roleName' is not null or undefined
1124
- (0, common_1.assertParamExists)('putMilvusRole', 'roleName', roleName);
1125
- // verify required parameter 'body' is not null or undefined
1126
- (0, common_1.assertParamExists)('putMilvusRole', 'body', body);
1127
- const localVarPath = `/admin/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
1128
- .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1129
- .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1130
- .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
1131
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
1132
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1133
- let baseOptions;
1134
- if (configuration) {
1135
- baseOptions = configuration.baseOptions;
1136
- }
1137
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1138
- const localVarHeaderParameter = {};
1139
- const localVarQueryParameter = {};
1140
- // authentication BearerToken required
1141
- // http bearer authentication required
1142
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1143
- // authentication DigestAuth required
1144
- await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1145
- localVarHeaderParameter['Content-Type'] = 'application/json';
1146
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1147
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1148
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1149
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1150
- return {
1151
- url: (0, common_1.toPathString)(localVarUrlObj),
1152
- options: localVarRequestOptions,
1153
- };
1154
- },
1155
1151
  /**
1156
1152
  * unlock an account in cluster
1157
1153
  * @summary Unlock cluster account
@@ -1488,6 +1484,53 @@ const AccountApiAxiosParamCreator = function (configuration) {
1488
1484
  options: localVarRequestOptions,
1489
1485
  };
1490
1486
  },
1487
+ /**
1488
+ * Update an existing Milvus native role by replacing its privilege grants.
1489
+ * @summary Update Milvus role
1490
+ * @param {string} orgName name of the Org
1491
+ * @param {string} clusterName name of the Cluster
1492
+ * @param {string} roleName name of the Milvus role
1493
+ * @param {MilvusRoleRequest} body
1494
+ * @param {*} [options] Override http request option.
1495
+ * @throws {RequiredError}
1496
+ */
1497
+ updateMilvusRole: async (orgName, clusterName, roleName, body, options = {}) => {
1498
+ // verify required parameter 'orgName' is not null or undefined
1499
+ (0, common_1.assertParamExists)('updateMilvusRole', 'orgName', orgName);
1500
+ // verify required parameter 'clusterName' is not null or undefined
1501
+ (0, common_1.assertParamExists)('updateMilvusRole', 'clusterName', clusterName);
1502
+ // verify required parameter 'roleName' is not null or undefined
1503
+ (0, common_1.assertParamExists)('updateMilvusRole', 'roleName', roleName);
1504
+ // verify required parameter 'body' is not null or undefined
1505
+ (0, common_1.assertParamExists)('updateMilvusRole', 'body', body);
1506
+ const localVarPath = `/admin/v1/data/milvus/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
1507
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
1508
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
1509
+ .replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
1510
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1511
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1512
+ let baseOptions;
1513
+ if (configuration) {
1514
+ baseOptions = configuration.baseOptions;
1515
+ }
1516
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
1517
+ const localVarHeaderParameter = {};
1518
+ const localVarQueryParameter = {};
1519
+ // authentication BearerToken required
1520
+ // http bearer authentication required
1521
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1522
+ // authentication DigestAuth required
1523
+ await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
1524
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1525
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1526
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1527
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1528
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
1529
+ return {
1530
+ url: (0, common_1.toPathString)(localVarUrlObj),
1531
+ options: localVarRequestOptions,
1532
+ };
1533
+ },
1491
1534
  /**
1492
1535
  *
1493
1536
  * @summary update mssql account compatible with windows account
@@ -1733,6 +1776,22 @@ const AccountApiFp = function (configuration) {
1733
1776
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.createKafkaAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1734
1777
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1735
1778
  },
1779
+ /**
1780
+ * Create a Milvus native role and grant its initial privileges.
1781
+ * @summary Create Milvus role
1782
+ * @param {string} orgName name of the Org
1783
+ * @param {string} clusterName name of the Cluster
1784
+ * @param {MilvusRoleCreateRequest} body
1785
+ * @param {*} [options] Override http request option.
1786
+ * @throws {RequiredError}
1787
+ */
1788
+ async createMilvusRole(orgName, clusterName, body, options) {
1789
+ var _a, _b, _c;
1790
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMilvusRole(orgName, clusterName, body, options);
1791
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1792
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.createMilvusRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1793
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1794
+ },
1736
1795
  /**
1737
1796
  * create an account in mongodb
1738
1797
  * @summary Create mongodb account
@@ -2088,23 +2147,6 @@ const AccountApiFp = function (configuration) {
2088
2147
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.lockAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2089
2148
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2090
2149
  },
2091
- /**
2092
- * Create or update a Milvus native role and replace its privilege grants.
2093
- * @summary Put Milvus role
2094
- * @param {string} orgName name of the Org
2095
- * @param {string} clusterName name of the Cluster
2096
- * @param {string} roleName name of the Milvus role
2097
- * @param {MilvusRoleRequest} body
2098
- * @param {*} [options] Override http request option.
2099
- * @throws {RequiredError}
2100
- */
2101
- async putMilvusRole(orgName, clusterName, roleName, body, options) {
2102
- var _a, _b, _c;
2103
- const localVarAxiosArgs = await localVarAxiosParamCreator.putMilvusRole(orgName, clusterName, roleName, body, options);
2104
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2105
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.putMilvusRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2106
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2107
- },
2108
2150
  /**
2109
2151
  * unlock an account in cluster
2110
2152
  * @summary Unlock cluster account
@@ -2226,6 +2268,23 @@ const AccountApiFp = function (configuration) {
2226
2268
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.updateMilvusAccountRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2227
2269
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2228
2270
  },
2271
+ /**
2272
+ * Update an existing Milvus native role by replacing its privilege grants.
2273
+ * @summary Update Milvus role
2274
+ * @param {string} orgName name of the Org
2275
+ * @param {string} clusterName name of the Cluster
2276
+ * @param {string} roleName name of the Milvus role
2277
+ * @param {MilvusRoleRequest} body
2278
+ * @param {*} [options] Override http request option.
2279
+ * @throws {RequiredError}
2280
+ */
2281
+ async updateMilvusRole(orgName, clusterName, roleName, body, options) {
2282
+ var _a, _b, _c;
2283
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateMilvusRole(orgName, clusterName, roleName, body, options);
2284
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2285
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountApi.updateMilvusRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2286
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2287
+ },
2229
2288
  /**
2230
2289
  *
2231
2290
  * @summary update mssql account compatible with windows account
@@ -2334,6 +2393,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2334
2393
  createKafkaAccount(requestParameters, options) {
2335
2394
  return localVarFp.createKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
2336
2395
  },
2396
+ /**
2397
+ * Create a Milvus native role and grant its initial privileges.
2398
+ * @summary Create Milvus role
2399
+ * @param {AccountApiCreateMilvusRoleRequest} requestParameters Request parameters.
2400
+ * @param {*} [options] Override http request option.
2401
+ * @throws {RequiredError}
2402
+ */
2403
+ createMilvusRole(requestParameters, options) {
2404
+ return localVarFp.createMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
2405
+ },
2337
2406
  /**
2338
2407
  * create an account in mongodb
2339
2408
  * @summary Create mongodb account
@@ -2554,16 +2623,6 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2554
2623
  lockAccount(requestParameters, options) {
2555
2624
  return localVarFp.lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(axios, basePath));
2556
2625
  },
2557
- /**
2558
- * Create or update a Milvus native role and replace its privilege grants.
2559
- * @summary Put Milvus role
2560
- * @param {AccountApiPutMilvusRoleRequest} requestParameters Request parameters.
2561
- * @param {*} [options] Override http request option.
2562
- * @throws {RequiredError}
2563
- */
2564
- putMilvusRole(requestParameters, options) {
2565
- return localVarFp.putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
2566
- },
2567
2626
  /**
2568
2627
  * unlock an account in cluster
2569
2628
  * @summary Unlock cluster account
@@ -2634,6 +2693,16 @@ const AccountApiFactory = function (configuration, basePath, axios) {
2634
2693
  updateMilvusAccountRoles(requestParameters, options) {
2635
2694
  return localVarFp.updateMilvusAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(axios, basePath));
2636
2695
  },
2696
+ /**
2697
+ * Update an existing Milvus native role by replacing its privilege grants.
2698
+ * @summary Update Milvus role
2699
+ * @param {AccountApiUpdateMilvusRoleRequest} requestParameters Request parameters.
2700
+ * @param {*} [options] Override http request option.
2701
+ * @throws {RequiredError}
2702
+ */
2703
+ updateMilvusRole(requestParameters, options) {
2704
+ return localVarFp.updateMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
2705
+ },
2637
2706
  /**
2638
2707
  *
2639
2708
  * @summary update mssql account compatible with windows account
@@ -2717,6 +2786,17 @@ class AccountApi extends base_1.BaseAPI {
2717
2786
  createKafkaAccount(requestParameters, options) {
2718
2787
  return (0, exports.AccountApiFp)(this.configuration).createKafkaAccount(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2719
2788
  }
2789
+ /**
2790
+ * Create a Milvus native role and grant its initial privileges.
2791
+ * @summary Create Milvus role
2792
+ * @param {AccountApiCreateMilvusRoleRequest} requestParameters Request parameters.
2793
+ * @param {*} [options] Override http request option.
2794
+ * @throws {RequiredError}
2795
+ * @memberof AccountApi
2796
+ */
2797
+ createMilvusRole(requestParameters, options) {
2798
+ return (0, exports.AccountApiFp)(this.configuration).createMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2799
+ }
2720
2800
  /**
2721
2801
  * create an account in mongodb
2722
2802
  * @summary Create mongodb account
@@ -2959,17 +3039,6 @@ class AccountApi extends base_1.BaseAPI {
2959
3039
  lockAccount(requestParameters, options) {
2960
3040
  return (0, exports.AccountApiFp)(this.configuration).lockAccount(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, options).then((request) => request(this.axios, this.basePath));
2961
3041
  }
2962
- /**
2963
- * Create or update a Milvus native role and replace its privilege grants.
2964
- * @summary Put Milvus role
2965
- * @param {AccountApiPutMilvusRoleRequest} requestParameters Request parameters.
2966
- * @param {*} [options] Override http request option.
2967
- * @throws {RequiredError}
2968
- * @memberof AccountApi
2969
- */
2970
- putMilvusRole(requestParameters, options) {
2971
- return (0, exports.AccountApiFp)(this.configuration).putMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
2972
- }
2973
3042
  /**
2974
3043
  * unlock an account in cluster
2975
3044
  * @summary Unlock cluster account
@@ -3047,6 +3116,17 @@ class AccountApi extends base_1.BaseAPI {
3047
3116
  updateMilvusAccountRoles(requestParameters, options) {
3048
3117
  return (0, exports.AccountApiFp)(this.configuration).updateMilvusAccountRoles(requestParameters.orgName, requestParameters.clusterName, requestParameters.accountName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3049
3118
  }
3119
+ /**
3120
+ * Update an existing Milvus native role by replacing its privilege grants.
3121
+ * @summary Update Milvus role
3122
+ * @param {AccountApiUpdateMilvusRoleRequest} requestParameters Request parameters.
3123
+ * @param {*} [options] Override http request option.
3124
+ * @throws {RequiredError}
3125
+ * @memberof AccountApi
3126
+ */
3127
+ updateMilvusRole(requestParameters, options) {
3128
+ return (0, exports.AccountApiFp)(this.configuration).updateMilvusRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
3129
+ }
3050
3130
  /**
3051
3131
  *
3052
3132
  * @summary update mssql account compatible with windows account