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
|
@@ -394,6 +394,53 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
394
394
|
options: localVarRequestOptions,
|
|
395
395
|
};
|
|
396
396
|
},
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @summary Change Elasticsearch account password
|
|
400
|
+
* @param {string} orgName
|
|
401
|
+
* @param {string} clusterName
|
|
402
|
+
* @param {string} username
|
|
403
|
+
* @param {ESSecurityPasswordRequest} body
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
*/
|
|
407
|
+
changeElasticsearchSecurityUserPassword: async (orgName, clusterName, username, body, options = {}) => {
|
|
408
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
409
|
+
(0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'orgName', orgName);
|
|
410
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
411
|
+
(0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'clusterName', clusterName);
|
|
412
|
+
// verify required parameter 'username' is not null or undefined
|
|
413
|
+
(0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'username', username);
|
|
414
|
+
// verify required parameter 'body' is not null or undefined
|
|
415
|
+
(0, common_1.assertParamExists)('changeElasticsearchSecurityUserPassword', 'body', body);
|
|
416
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
417
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
418
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
419
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
421
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
422
|
+
let baseOptions;
|
|
423
|
+
if (configuration) {
|
|
424
|
+
baseOptions = configuration.baseOptions;
|
|
425
|
+
}
|
|
426
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
427
|
+
const localVarHeaderParameter = {};
|
|
428
|
+
const localVarQueryParameter = {};
|
|
429
|
+
// authentication BearerToken required
|
|
430
|
+
// http bearer authentication required
|
|
431
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
432
|
+
// authentication DigestAuth required
|
|
433
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
434
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
435
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
436
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
437
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
438
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
439
|
+
return {
|
|
440
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
441
|
+
options: localVarRequestOptions,
|
|
442
|
+
};
|
|
443
|
+
},
|
|
397
444
|
/**
|
|
398
445
|
* check apikey available
|
|
399
446
|
* @summary check apikey available
|
|
@@ -1629,6 +1676,132 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
1629
1676
|
options: localVarRequestOptions,
|
|
1630
1677
|
};
|
|
1631
1678
|
},
|
|
1679
|
+
/**
|
|
1680
|
+
*
|
|
1681
|
+
* @summary Delete Elasticsearch security role
|
|
1682
|
+
* @param {string} orgName
|
|
1683
|
+
* @param {string} clusterName
|
|
1684
|
+
* @param {string} roleName
|
|
1685
|
+
* @param {*} [options] Override http request option.
|
|
1686
|
+
* @throws {RequiredError}
|
|
1687
|
+
*/
|
|
1688
|
+
deleteElasticsearchSecurityRole: async (orgName, clusterName, roleName, options = {}) => {
|
|
1689
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1690
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'orgName', orgName);
|
|
1691
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1692
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'clusterName', clusterName);
|
|
1693
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
1694
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityRole', 'roleName', roleName);
|
|
1695
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
1696
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1697
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1698
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
1699
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1700
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1701
|
+
let baseOptions;
|
|
1702
|
+
if (configuration) {
|
|
1703
|
+
baseOptions = configuration.baseOptions;
|
|
1704
|
+
}
|
|
1705
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1706
|
+
const localVarHeaderParameter = {};
|
|
1707
|
+
const localVarQueryParameter = {};
|
|
1708
|
+
// authentication BearerToken required
|
|
1709
|
+
// http bearer authentication required
|
|
1710
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1711
|
+
// authentication DigestAuth required
|
|
1712
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1713
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1714
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1715
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1716
|
+
return {
|
|
1717
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1718
|
+
options: localVarRequestOptions,
|
|
1719
|
+
};
|
|
1720
|
+
},
|
|
1721
|
+
/**
|
|
1722
|
+
*
|
|
1723
|
+
* @summary Delete Elasticsearch security role mapping
|
|
1724
|
+
* @param {string} orgName
|
|
1725
|
+
* @param {string} clusterName
|
|
1726
|
+
* @param {string} mappingName
|
|
1727
|
+
* @param {*} [options] Override http request option.
|
|
1728
|
+
* @throws {RequiredError}
|
|
1729
|
+
*/
|
|
1730
|
+
deleteElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, options = {}) => {
|
|
1731
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1732
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'orgName', orgName);
|
|
1733
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1734
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
|
|
1735
|
+
// verify required parameter 'mappingName' is not null or undefined
|
|
1736
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
|
|
1737
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
|
|
1738
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1739
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1740
|
+
.replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
|
|
1741
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1742
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1743
|
+
let baseOptions;
|
|
1744
|
+
if (configuration) {
|
|
1745
|
+
baseOptions = configuration.baseOptions;
|
|
1746
|
+
}
|
|
1747
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1748
|
+
const localVarHeaderParameter = {};
|
|
1749
|
+
const localVarQueryParameter = {};
|
|
1750
|
+
// authentication BearerToken required
|
|
1751
|
+
// http bearer authentication required
|
|
1752
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1753
|
+
// authentication DigestAuth required
|
|
1754
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1755
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1756
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1757
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1758
|
+
return {
|
|
1759
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1760
|
+
options: localVarRequestOptions,
|
|
1761
|
+
};
|
|
1762
|
+
},
|
|
1763
|
+
/**
|
|
1764
|
+
*
|
|
1765
|
+
* @summary Delete Elasticsearch security user
|
|
1766
|
+
* @param {string} orgName
|
|
1767
|
+
* @param {string} clusterName
|
|
1768
|
+
* @param {string} username
|
|
1769
|
+
* @param {*} [options] Override http request option.
|
|
1770
|
+
* @throws {RequiredError}
|
|
1771
|
+
*/
|
|
1772
|
+
deleteElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
|
|
1773
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
1774
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'orgName', orgName);
|
|
1775
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
1776
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'clusterName', clusterName);
|
|
1777
|
+
// verify required parameter 'username' is not null or undefined
|
|
1778
|
+
(0, common_1.assertParamExists)('deleteElasticsearchSecurityUser', 'username', username);
|
|
1779
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
1780
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
1781
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
1782
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
1783
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1784
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1785
|
+
let baseOptions;
|
|
1786
|
+
if (configuration) {
|
|
1787
|
+
baseOptions = configuration.baseOptions;
|
|
1788
|
+
}
|
|
1789
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1790
|
+
const localVarHeaderParameter = {};
|
|
1791
|
+
const localVarQueryParameter = {};
|
|
1792
|
+
// authentication BearerToken required
|
|
1793
|
+
// http bearer authentication required
|
|
1794
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1795
|
+
// authentication DigestAuth required
|
|
1796
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
1797
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1798
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1799
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1800
|
+
return {
|
|
1801
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1802
|
+
options: localVarRequestOptions,
|
|
1803
|
+
};
|
|
1804
|
+
},
|
|
1632
1805
|
/**
|
|
1633
1806
|
*
|
|
1634
1807
|
* @summary Delete IP whitelist
|
|
@@ -3405,23 +3578,19 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3405
3578
|
};
|
|
3406
3579
|
},
|
|
3407
3580
|
/**
|
|
3408
|
-
*
|
|
3409
|
-
* @summary
|
|
3410
|
-
* @param {string}
|
|
3411
|
-
* @param {string}
|
|
3412
|
-
* @param {string} clusterName name of the cluster
|
|
3581
|
+
*
|
|
3582
|
+
* @summary Get Elasticsearch builtin privileges
|
|
3583
|
+
* @param {string} orgName
|
|
3584
|
+
* @param {string} clusterName
|
|
3413
3585
|
* @param {*} [options] Override http request option.
|
|
3414
3586
|
* @throws {RequiredError}
|
|
3415
3587
|
*/
|
|
3416
|
-
|
|
3417
|
-
// verify required parameter 'engineName' is not null or undefined
|
|
3418
|
-
(0, common_1.assertParamExists)('getEngineAvailableConsole', 'engineName', engineName);
|
|
3588
|
+
getElasticsearchBuiltinPrivileges: async (orgName, clusterName, options = {}) => {
|
|
3419
3589
|
// verify required parameter 'orgName' is not null or undefined
|
|
3420
|
-
(0, common_1.assertParamExists)('
|
|
3590
|
+
(0, common_1.assertParamExists)('getElasticsearchBuiltinPrivileges', 'orgName', orgName);
|
|
3421
3591
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3422
|
-
(0, common_1.assertParamExists)('
|
|
3423
|
-
const localVarPath = `/admin/v1/data/
|
|
3424
|
-
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
3592
|
+
(0, common_1.assertParamExists)('getElasticsearchBuiltinPrivileges', 'clusterName', clusterName);
|
|
3593
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/privileges/builtin`
|
|
3425
3594
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3426
3595
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
3427
3596
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3447,18 +3616,25 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3447
3616
|
};
|
|
3448
3617
|
},
|
|
3449
3618
|
/**
|
|
3450
|
-
*
|
|
3451
|
-
* @summary Get
|
|
3452
|
-
* @param {string}
|
|
3453
|
-
* @param {
|
|
3619
|
+
*
|
|
3620
|
+
* @summary Get Elasticsearch security role
|
|
3621
|
+
* @param {string} orgName
|
|
3622
|
+
* @param {string} clusterName
|
|
3623
|
+
* @param {string} roleName
|
|
3454
3624
|
* @param {*} [options] Override http request option.
|
|
3455
3625
|
* @throws {RequiredError}
|
|
3456
3626
|
*/
|
|
3457
|
-
|
|
3458
|
-
// verify required parameter '
|
|
3459
|
-
(0, common_1.assertParamExists)('
|
|
3460
|
-
|
|
3461
|
-
|
|
3627
|
+
getElasticsearchSecurityRole: async (orgName, clusterName, roleName, options = {}) => {
|
|
3628
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3629
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'orgName', orgName);
|
|
3630
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3631
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'clusterName', clusterName);
|
|
3632
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
3633
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityRole', 'roleName', roleName);
|
|
3634
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
3635
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3636
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3637
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
3462
3638
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3463
3639
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3464
3640
|
let baseOptions;
|
|
@@ -3473,9 +3649,6 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3473
3649
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3474
3650
|
// authentication DigestAuth required
|
|
3475
3651
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3476
|
-
if (version !== undefined) {
|
|
3477
|
-
localVarQueryParameter['version'] = version;
|
|
3478
|
-
}
|
|
3479
3652
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3480
3653
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3481
3654
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3485,25 +3658,25 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3485
3658
|
};
|
|
3486
3659
|
},
|
|
3487
3660
|
/**
|
|
3488
|
-
*
|
|
3489
|
-
* @summary Get
|
|
3490
|
-
* @param {string} orgName
|
|
3491
|
-
* @param {string} clusterName
|
|
3492
|
-
* @param {string}
|
|
3661
|
+
*
|
|
3662
|
+
* @summary Get Elasticsearch security role mapping
|
|
3663
|
+
* @param {string} orgName
|
|
3664
|
+
* @param {string} clusterName
|
|
3665
|
+
* @param {string} mappingName
|
|
3493
3666
|
* @param {*} [options] Override http request option.
|
|
3494
3667
|
* @throws {RequiredError}
|
|
3495
3668
|
*/
|
|
3496
|
-
|
|
3669
|
+
getElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, options = {}) => {
|
|
3497
3670
|
// verify required parameter 'orgName' is not null or undefined
|
|
3498
|
-
(0, common_1.assertParamExists)('
|
|
3671
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'orgName', orgName);
|
|
3499
3672
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3500
|
-
(0, common_1.assertParamExists)('
|
|
3501
|
-
// verify required parameter '
|
|
3502
|
-
(0, common_1.assertParamExists)('
|
|
3503
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
3673
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
|
|
3674
|
+
// verify required parameter 'mappingName' is not null or undefined
|
|
3675
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
|
|
3676
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
|
|
3504
3677
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3505
3678
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3506
|
-
.replace(`{${"
|
|
3679
|
+
.replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
|
|
3507
3680
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3508
3681
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3509
3682
|
let baseOptions;
|
|
@@ -3527,25 +3700,25 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3527
3700
|
};
|
|
3528
3701
|
},
|
|
3529
3702
|
/**
|
|
3530
|
-
*
|
|
3531
|
-
* @summary Get
|
|
3532
|
-
* @param {string} orgName
|
|
3533
|
-
* @param {string} clusterName
|
|
3534
|
-
* @param {string}
|
|
3703
|
+
*
|
|
3704
|
+
* @summary Get Elasticsearch security user
|
|
3705
|
+
* @param {string} orgName
|
|
3706
|
+
* @param {string} clusterName
|
|
3707
|
+
* @param {string} username
|
|
3535
3708
|
* @param {*} [options] Override http request option.
|
|
3536
3709
|
* @throws {RequiredError}
|
|
3537
3710
|
*/
|
|
3538
|
-
|
|
3711
|
+
getElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
|
|
3539
3712
|
// verify required parameter 'orgName' is not null or undefined
|
|
3540
|
-
(0, common_1.assertParamExists)('
|
|
3713
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'orgName', orgName);
|
|
3541
3714
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3542
|
-
(0, common_1.assertParamExists)('
|
|
3543
|
-
// verify required parameter '
|
|
3544
|
-
(0, common_1.assertParamExists)('
|
|
3545
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
3715
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'clusterName', clusterName);
|
|
3716
|
+
// verify required parameter 'username' is not null or undefined
|
|
3717
|
+
(0, common_1.assertParamExists)('getElasticsearchSecurityUser', 'username', username);
|
|
3718
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
3546
3719
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3547
3720
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3548
|
-
.replace(`{${"
|
|
3721
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
3549
3722
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3550
3723
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3551
3724
|
let baseOptions;
|
|
@@ -3569,19 +3742,23 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3569
3742
|
};
|
|
3570
3743
|
},
|
|
3571
3744
|
/**
|
|
3572
|
-
*
|
|
3573
|
-
* @summary
|
|
3745
|
+
* get engine available console
|
|
3746
|
+
* @summary get engine available console
|
|
3747
|
+
* @param {string} engineName name of the engine
|
|
3574
3748
|
* @param {string} orgName name of the Org
|
|
3575
|
-
* @param {string} clusterName name of the
|
|
3749
|
+
* @param {string} clusterName name of the cluster
|
|
3576
3750
|
* @param {*} [options] Override http request option.
|
|
3577
3751
|
* @throws {RequiredError}
|
|
3578
3752
|
*/
|
|
3579
|
-
|
|
3753
|
+
getEngineAvailableConsole: async (engineName, orgName, clusterName, options = {}) => {
|
|
3754
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
3755
|
+
(0, common_1.assertParamExists)('getEngineAvailableConsole', 'engineName', engineName);
|
|
3580
3756
|
// verify required parameter 'orgName' is not null or undefined
|
|
3581
|
-
(0, common_1.assertParamExists)('
|
|
3757
|
+
(0, common_1.assertParamExists)('getEngineAvailableConsole', 'orgName', orgName);
|
|
3582
3758
|
// verify required parameter 'clusterName' is not null or undefined
|
|
3583
|
-
(0, common_1.assertParamExists)('
|
|
3584
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
3759
|
+
(0, common_1.assertParamExists)('getEngineAvailableConsole', 'clusterName', clusterName);
|
|
3760
|
+
const localVarPath = `/admin/v1/data/{engineName}/organizations/{orgName}/clusters/{clusterName}/console`
|
|
3761
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)))
|
|
3585
3762
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3586
3763
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
3587
3764
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -3607,28 +3784,18 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3607
3784
|
};
|
|
3608
3785
|
},
|
|
3609
3786
|
/**
|
|
3610
|
-
*
|
|
3611
|
-
* @summary
|
|
3612
|
-
* @param {string}
|
|
3613
|
-
* @param {
|
|
3614
|
-
* @param {string} instanceName name of the instance
|
|
3615
|
-
* @param {string} [container] specify container name to get specific container log, if not specified, will return the log of the default container
|
|
3616
|
-
* @param {number} [sinceSeconds] A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
|
|
3617
|
-
* @param {number} [tailLines] If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
|
|
3787
|
+
* Get a engineOption detail
|
|
3788
|
+
* @summary Get engineOption
|
|
3789
|
+
* @param {string} engineName Name of the engine
|
|
3790
|
+
* @param {EngineOptionVersion} [version] The version of the engineOption to query, `current` from potentially modified data, `original` from the json files of the apiserver
|
|
3618
3791
|
* @param {*} [options] Override http request option.
|
|
3619
3792
|
* @throws {RequiredError}
|
|
3620
3793
|
*/
|
|
3621
|
-
|
|
3622
|
-
// verify required parameter '
|
|
3623
|
-
(0, common_1.assertParamExists)('
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
// verify required parameter 'instanceName' is not null or undefined
|
|
3627
|
-
(0, common_1.assertParamExists)('getInstanceContainerLog', 'instanceName', instanceName);
|
|
3628
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/instances/{instanceName}/log`
|
|
3629
|
-
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3630
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3631
|
-
.replace(`{${"instanceName"}}`, encodeURIComponent(String(instanceName)));
|
|
3794
|
+
getEngineOption: async (engineName, version, options = {}) => {
|
|
3795
|
+
// verify required parameter 'engineName' is not null or undefined
|
|
3796
|
+
(0, common_1.assertParamExists)('getEngineOption', 'engineName', engineName);
|
|
3797
|
+
const localVarPath = `/admin/v1/engineOptions/{engineName}`
|
|
3798
|
+
.replace(`{${"engineName"}}`, encodeURIComponent(String(engineName)));
|
|
3632
3799
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3633
3800
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3634
3801
|
let baseOptions;
|
|
@@ -3643,10 +3810,180 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
3643
3810
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3644
3811
|
// authentication DigestAuth required
|
|
3645
3812
|
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3646
|
-
if (
|
|
3647
|
-
localVarQueryParameter['
|
|
3813
|
+
if (version !== undefined) {
|
|
3814
|
+
localVarQueryParameter['version'] = version;
|
|
3648
3815
|
}
|
|
3649
|
-
|
|
3816
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3818
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3819
|
+
return {
|
|
3820
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3821
|
+
options: localVarRequestOptions,
|
|
3822
|
+
};
|
|
3823
|
+
},
|
|
3824
|
+
/**
|
|
3825
|
+
* Retrieves detailed information about a specific data import preflight task by its ID
|
|
3826
|
+
* @summary Get preflight task details
|
|
3827
|
+
* @param {string} orgName Organization name
|
|
3828
|
+
* @param {string} clusterName Cluster name
|
|
3829
|
+
* @param {string} taskId Preflight task ID
|
|
3830
|
+
* @param {*} [options] Override http request option.
|
|
3831
|
+
* @throws {RequiredError}
|
|
3832
|
+
*/
|
|
3833
|
+
getImportPreflightTask: async (orgName, clusterName, taskId, options = {}) => {
|
|
3834
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3835
|
+
(0, common_1.assertParamExists)('getImportPreflightTask', 'orgName', orgName);
|
|
3836
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3837
|
+
(0, common_1.assertParamExists)('getImportPreflightTask', 'clusterName', clusterName);
|
|
3838
|
+
// verify required parameter 'taskId' is not null or undefined
|
|
3839
|
+
(0, common_1.assertParamExists)('getImportPreflightTask', 'taskId', taskId);
|
|
3840
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/import/preflight/{taskId}`
|
|
3841
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3842
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3843
|
+
.replace(`{${"taskId"}}`, encodeURIComponent(String(taskId)));
|
|
3844
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3845
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3846
|
+
let baseOptions;
|
|
3847
|
+
if (configuration) {
|
|
3848
|
+
baseOptions = configuration.baseOptions;
|
|
3849
|
+
}
|
|
3850
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3851
|
+
const localVarHeaderParameter = {};
|
|
3852
|
+
const localVarQueryParameter = {};
|
|
3853
|
+
// authentication BearerToken required
|
|
3854
|
+
// http bearer authentication required
|
|
3855
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3856
|
+
// authentication DigestAuth required
|
|
3857
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3858
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3859
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3860
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3861
|
+
return {
|
|
3862
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3863
|
+
options: localVarRequestOptions,
|
|
3864
|
+
};
|
|
3865
|
+
},
|
|
3866
|
+
/**
|
|
3867
|
+
* Gets detailed information about a specific import task by its ID
|
|
3868
|
+
* @summary Get import task details
|
|
3869
|
+
* @param {string} orgName Organization name
|
|
3870
|
+
* @param {string} clusterName Cluster name
|
|
3871
|
+
* @param {string} id Import task ID
|
|
3872
|
+
* @param {*} [options] Override http request option.
|
|
3873
|
+
* @throws {RequiredError}
|
|
3874
|
+
*/
|
|
3875
|
+
getImportTask: async (orgName, clusterName, id, options = {}) => {
|
|
3876
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3877
|
+
(0, common_1.assertParamExists)('getImportTask', 'orgName', orgName);
|
|
3878
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3879
|
+
(0, common_1.assertParamExists)('getImportTask', 'clusterName', clusterName);
|
|
3880
|
+
// verify required parameter 'id' is not null or undefined
|
|
3881
|
+
(0, common_1.assertParamExists)('getImportTask', 'id', id);
|
|
3882
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/import/{id}`
|
|
3883
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3884
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3885
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3887
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3888
|
+
let baseOptions;
|
|
3889
|
+
if (configuration) {
|
|
3890
|
+
baseOptions = configuration.baseOptions;
|
|
3891
|
+
}
|
|
3892
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3893
|
+
const localVarHeaderParameter = {};
|
|
3894
|
+
const localVarQueryParameter = {};
|
|
3895
|
+
// authentication BearerToken required
|
|
3896
|
+
// http bearer authentication required
|
|
3897
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3898
|
+
// authentication DigestAuth required
|
|
3899
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3900
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3901
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3902
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3903
|
+
return {
|
|
3904
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3905
|
+
options: localVarRequestOptions,
|
|
3906
|
+
};
|
|
3907
|
+
},
|
|
3908
|
+
/**
|
|
3909
|
+
*
|
|
3910
|
+
* @summary Get instaces metrics in cluster
|
|
3911
|
+
* @param {string} orgName name of the Org
|
|
3912
|
+
* @param {string} clusterName name of the Cluster
|
|
3913
|
+
* @param {*} [options] Override http request option.
|
|
3914
|
+
* @throws {RequiredError}
|
|
3915
|
+
*/
|
|
3916
|
+
getInstacesMetrics: async (orgName, clusterName, options = {}) => {
|
|
3917
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3918
|
+
(0, common_1.assertParamExists)('getInstacesMetrics', 'orgName', orgName);
|
|
3919
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3920
|
+
(0, common_1.assertParamExists)('getInstacesMetrics', 'clusterName', clusterName);
|
|
3921
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/instances/metrics`
|
|
3922
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3923
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
3924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3925
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3926
|
+
let baseOptions;
|
|
3927
|
+
if (configuration) {
|
|
3928
|
+
baseOptions = configuration.baseOptions;
|
|
3929
|
+
}
|
|
3930
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3931
|
+
const localVarHeaderParameter = {};
|
|
3932
|
+
const localVarQueryParameter = {};
|
|
3933
|
+
// authentication BearerToken required
|
|
3934
|
+
// http bearer authentication required
|
|
3935
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3936
|
+
// authentication DigestAuth required
|
|
3937
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3938
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3939
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3940
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3941
|
+
return {
|
|
3942
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3943
|
+
options: localVarRequestOptions,
|
|
3944
|
+
};
|
|
3945
|
+
},
|
|
3946
|
+
/**
|
|
3947
|
+
* read log of the specified cluster instance
|
|
3948
|
+
* @summary Tail cluster instance container log
|
|
3949
|
+
* @param {string} orgName name of the Org
|
|
3950
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
3951
|
+
* @param {string} instanceName name of the instance
|
|
3952
|
+
* @param {string} [container] specify container name to get specific container log, if not specified, will return the log of the default container
|
|
3953
|
+
* @param {number} [sinceSeconds] A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified.
|
|
3954
|
+
* @param {number} [tailLines] If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime
|
|
3955
|
+
* @param {*} [options] Override http request option.
|
|
3956
|
+
* @throws {RequiredError}
|
|
3957
|
+
*/
|
|
3958
|
+
getInstanceContainerLog: async (orgName, clusterName, instanceName, container, sinceSeconds, tailLines, options = {}) => {
|
|
3959
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
3960
|
+
(0, common_1.assertParamExists)('getInstanceContainerLog', 'orgName', orgName);
|
|
3961
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
3962
|
+
(0, common_1.assertParamExists)('getInstanceContainerLog', 'clusterName', clusterName);
|
|
3963
|
+
// verify required parameter 'instanceName' is not null or undefined
|
|
3964
|
+
(0, common_1.assertParamExists)('getInstanceContainerLog', 'instanceName', instanceName);
|
|
3965
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/instances/{instanceName}/log`
|
|
3966
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
3967
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
3968
|
+
.replace(`{${"instanceName"}}`, encodeURIComponent(String(instanceName)));
|
|
3969
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3970
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3971
|
+
let baseOptions;
|
|
3972
|
+
if (configuration) {
|
|
3973
|
+
baseOptions = configuration.baseOptions;
|
|
3974
|
+
}
|
|
3975
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3976
|
+
const localVarHeaderParameter = {};
|
|
3977
|
+
const localVarQueryParameter = {};
|
|
3978
|
+
// authentication BearerToken required
|
|
3979
|
+
// http bearer authentication required
|
|
3980
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3981
|
+
// authentication DigestAuth required
|
|
3982
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
3983
|
+
if (container !== undefined) {
|
|
3984
|
+
localVarQueryParameter['container'] = container;
|
|
3985
|
+
}
|
|
3986
|
+
if (sinceSeconds !== undefined) {
|
|
3650
3987
|
localVarQueryParameter['sinceSeconds'] = sinceSeconds;
|
|
3651
3988
|
}
|
|
3652
3989
|
if (tailLines !== undefined) {
|
|
@@ -5288,6 +5625,120 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
5288
5625
|
options: localVarRequestOptions,
|
|
5289
5626
|
};
|
|
5290
5627
|
},
|
|
5628
|
+
/**
|
|
5629
|
+
*
|
|
5630
|
+
* @summary List Elasticsearch security role mappings
|
|
5631
|
+
* @param {string} orgName
|
|
5632
|
+
* @param {string} clusterName
|
|
5633
|
+
* @param {*} [options] Override http request option.
|
|
5634
|
+
* @throws {RequiredError}
|
|
5635
|
+
*/
|
|
5636
|
+
listElasticsearchSecurityRoleMappings: async (orgName, clusterName, options = {}) => {
|
|
5637
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
5638
|
+
(0, common_1.assertParamExists)('listElasticsearchSecurityRoleMappings', 'orgName', orgName);
|
|
5639
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5640
|
+
(0, common_1.assertParamExists)('listElasticsearchSecurityRoleMappings', 'clusterName', clusterName);
|
|
5641
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings`
|
|
5642
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5643
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
5644
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5645
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5646
|
+
let baseOptions;
|
|
5647
|
+
if (configuration) {
|
|
5648
|
+
baseOptions = configuration.baseOptions;
|
|
5649
|
+
}
|
|
5650
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5651
|
+
const localVarHeaderParameter = {};
|
|
5652
|
+
const localVarQueryParameter = {};
|
|
5653
|
+
// authentication BearerToken required
|
|
5654
|
+
// http bearer authentication required
|
|
5655
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5656
|
+
// authentication DigestAuth required
|
|
5657
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5658
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5659
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5660
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5661
|
+
return {
|
|
5662
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5663
|
+
options: localVarRequestOptions,
|
|
5664
|
+
};
|
|
5665
|
+
},
|
|
5666
|
+
/**
|
|
5667
|
+
*
|
|
5668
|
+
* @summary List Elasticsearch security roles
|
|
5669
|
+
* @param {string} orgName
|
|
5670
|
+
* @param {string} clusterName
|
|
5671
|
+
* @param {*} [options] Override http request option.
|
|
5672
|
+
* @throws {RequiredError}
|
|
5673
|
+
*/
|
|
5674
|
+
listElasticsearchSecurityRoles: async (orgName, clusterName, options = {}) => {
|
|
5675
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
5676
|
+
(0, common_1.assertParamExists)('listElasticsearchSecurityRoles', 'orgName', orgName);
|
|
5677
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5678
|
+
(0, common_1.assertParamExists)('listElasticsearchSecurityRoles', 'clusterName', clusterName);
|
|
5679
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles`
|
|
5680
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5681
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
5682
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5683
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5684
|
+
let baseOptions;
|
|
5685
|
+
if (configuration) {
|
|
5686
|
+
baseOptions = configuration.baseOptions;
|
|
5687
|
+
}
|
|
5688
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5689
|
+
const localVarHeaderParameter = {};
|
|
5690
|
+
const localVarQueryParameter = {};
|
|
5691
|
+
// authentication BearerToken required
|
|
5692
|
+
// http bearer authentication required
|
|
5693
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5694
|
+
// authentication DigestAuth required
|
|
5695
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5696
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5697
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5698
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5699
|
+
return {
|
|
5700
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5701
|
+
options: localVarRequestOptions,
|
|
5702
|
+
};
|
|
5703
|
+
},
|
|
5704
|
+
/**
|
|
5705
|
+
*
|
|
5706
|
+
* @summary List Elasticsearch security users
|
|
5707
|
+
* @param {string} orgName
|
|
5708
|
+
* @param {string} clusterName
|
|
5709
|
+
* @param {*} [options] Override http request option.
|
|
5710
|
+
* @throws {RequiredError}
|
|
5711
|
+
*/
|
|
5712
|
+
listElasticsearchSecurityUsers: async (orgName, clusterName, options = {}) => {
|
|
5713
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
5714
|
+
(0, common_1.assertParamExists)('listElasticsearchSecurityUsers', 'orgName', orgName);
|
|
5715
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
5716
|
+
(0, common_1.assertParamExists)('listElasticsearchSecurityUsers', 'clusterName', clusterName);
|
|
5717
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts`
|
|
5718
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
5719
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
5720
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5721
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5722
|
+
let baseOptions;
|
|
5723
|
+
if (configuration) {
|
|
5724
|
+
baseOptions = configuration.baseOptions;
|
|
5725
|
+
}
|
|
5726
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5727
|
+
const localVarHeaderParameter = {};
|
|
5728
|
+
const localVarQueryParameter = {};
|
|
5729
|
+
// authentication BearerToken required
|
|
5730
|
+
// http bearer authentication required
|
|
5731
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5732
|
+
// authentication DigestAuth required
|
|
5733
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5734
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5735
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5736
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5737
|
+
return {
|
|
5738
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5739
|
+
options: localVarRequestOptions,
|
|
5740
|
+
};
|
|
5741
|
+
},
|
|
5291
5742
|
/**
|
|
5292
5743
|
*
|
|
5293
5744
|
* @summary List cluster endpoints
|
|
@@ -7145,6 +7596,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7145
7596
|
options: localVarRequestOptions,
|
|
7146
7597
|
};
|
|
7147
7598
|
},
|
|
7599
|
+
/**
|
|
7600
|
+
*
|
|
7601
|
+
* @summary Lock Elasticsearch account
|
|
7602
|
+
* @param {string} orgName
|
|
7603
|
+
* @param {string} clusterName
|
|
7604
|
+
* @param {string} username
|
|
7605
|
+
* @param {*} [options] Override http request option.
|
|
7606
|
+
* @throws {RequiredError}
|
|
7607
|
+
*/
|
|
7608
|
+
lockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
|
|
7609
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7610
|
+
(0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'orgName', orgName);
|
|
7611
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
7612
|
+
(0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'clusterName', clusterName);
|
|
7613
|
+
// verify required parameter 'username' is not null or undefined
|
|
7614
|
+
(0, common_1.assertParamExists)('lockElasticsearchSecurityUser', 'username', username);
|
|
7615
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/lock`
|
|
7616
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7617
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
7618
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
7619
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7620
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7621
|
+
let baseOptions;
|
|
7622
|
+
if (configuration) {
|
|
7623
|
+
baseOptions = configuration.baseOptions;
|
|
7624
|
+
}
|
|
7625
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
7626
|
+
const localVarHeaderParameter = {};
|
|
7627
|
+
const localVarQueryParameter = {};
|
|
7628
|
+
// authentication BearerToken required
|
|
7629
|
+
// http bearer authentication required
|
|
7630
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7631
|
+
// authentication DigestAuth required
|
|
7632
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7633
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7634
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7635
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7636
|
+
return {
|
|
7637
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7638
|
+
options: localVarRequestOptions,
|
|
7639
|
+
};
|
|
7640
|
+
},
|
|
7148
7641
|
/**
|
|
7149
7642
|
*
|
|
7150
7643
|
* @summary batch modify database tde status
|
|
@@ -7346,31 +7839,164 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7346
7839
|
};
|
|
7347
7840
|
},
|
|
7348
7841
|
/**
|
|
7349
|
-
* Only authenticated organization admins can update the member\'s role
|
|
7350
|
-
* @summary Update member role
|
|
7842
|
+
* Only authenticated organization admins can update the member\'s role
|
|
7843
|
+
* @summary Update member role
|
|
7844
|
+
* @param {string} orgName name of the Org
|
|
7845
|
+
* @param {string} memberId ID of the member
|
|
7846
|
+
* @param {OrgMemberUpdate} body
|
|
7847
|
+
* @param {*} [options] Override http request option.
|
|
7848
|
+
* @throws {RequiredError}
|
|
7849
|
+
*/
|
|
7850
|
+
patchOrgMember: async (orgName, memberId, body, options = {}) => {
|
|
7851
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7852
|
+
(0, common_1.assertParamExists)('patchOrgMember', 'orgName', orgName);
|
|
7853
|
+
// verify required parameter 'memberId' is not null or undefined
|
|
7854
|
+
(0, common_1.assertParamExists)('patchOrgMember', 'memberId', memberId);
|
|
7855
|
+
// verify required parameter 'body' is not null or undefined
|
|
7856
|
+
(0, common_1.assertParamExists)('patchOrgMember', 'body', body);
|
|
7857
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/members/{memberId}`
|
|
7858
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7859
|
+
.replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
|
|
7860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7861
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7862
|
+
let baseOptions;
|
|
7863
|
+
if (configuration) {
|
|
7864
|
+
baseOptions = configuration.baseOptions;
|
|
7865
|
+
}
|
|
7866
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
7867
|
+
const localVarHeaderParameter = {};
|
|
7868
|
+
const localVarQueryParameter = {};
|
|
7869
|
+
// authentication BearerToken required
|
|
7870
|
+
// http bearer authentication required
|
|
7871
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7872
|
+
// authentication DigestAuth required
|
|
7873
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7874
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7875
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7876
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7877
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7878
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
7879
|
+
return {
|
|
7880
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7881
|
+
options: localVarRequestOptions,
|
|
7882
|
+
};
|
|
7883
|
+
},
|
|
7884
|
+
/**
|
|
7885
|
+
* Update a parameter of an organization
|
|
7886
|
+
* @summary Update a parameter of an organization
|
|
7887
|
+
* @param {string} orgName The name of the organization
|
|
7888
|
+
* @param {string} parameterName The name of the parameter
|
|
7889
|
+
* @param {OrgParameter} orgParameter
|
|
7890
|
+
* @param {*} [options] Override http request option.
|
|
7891
|
+
* @throws {RequiredError}
|
|
7892
|
+
*/
|
|
7893
|
+
patchOrgParameter: async (orgName, parameterName, orgParameter, options = {}) => {
|
|
7894
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7895
|
+
(0, common_1.assertParamExists)('patchOrgParameter', 'orgName', orgName);
|
|
7896
|
+
// verify required parameter 'parameterName' is not null or undefined
|
|
7897
|
+
(0, common_1.assertParamExists)('patchOrgParameter', 'parameterName', parameterName);
|
|
7898
|
+
// verify required parameter 'orgParameter' is not null or undefined
|
|
7899
|
+
(0, common_1.assertParamExists)('patchOrgParameter', 'orgParameter', orgParameter);
|
|
7900
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/parameters/{parameterName}`
|
|
7901
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7902
|
+
.replace(`{${"parameterName"}}`, encodeURIComponent(String(parameterName)));
|
|
7903
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7904
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7905
|
+
let baseOptions;
|
|
7906
|
+
if (configuration) {
|
|
7907
|
+
baseOptions = configuration.baseOptions;
|
|
7908
|
+
}
|
|
7909
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
7910
|
+
const localVarHeaderParameter = {};
|
|
7911
|
+
const localVarQueryParameter = {};
|
|
7912
|
+
// authentication BearerToken required
|
|
7913
|
+
// http bearer authentication required
|
|
7914
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7915
|
+
// authentication DigestAuth required
|
|
7916
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7917
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7918
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7919
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7920
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7921
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(orgParameter, localVarRequestOptions, configuration);
|
|
7922
|
+
return {
|
|
7923
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7924
|
+
options: localVarRequestOptions,
|
|
7925
|
+
};
|
|
7926
|
+
},
|
|
7927
|
+
/**
|
|
7928
|
+
*
|
|
7929
|
+
* @summary Produce message to topic
|
|
7930
|
+
* @param {string} orgName The name of organization
|
|
7931
|
+
* @param {string} clusterName The name of cluster
|
|
7932
|
+
* @param {string} topic
|
|
7933
|
+
* @param {TopicMessageRequest} topicMessageRequest
|
|
7934
|
+
* @param {*} [options] Override http request option.
|
|
7935
|
+
* @throws {RequiredError}
|
|
7936
|
+
*/
|
|
7937
|
+
produceKafkaTopicMessage: async (orgName, clusterName, topic, topicMessageRequest, options = {}) => {
|
|
7938
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
7939
|
+
(0, common_1.assertParamExists)('produceKafkaTopicMessage', 'orgName', orgName);
|
|
7940
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
7941
|
+
(0, common_1.assertParamExists)('produceKafkaTopicMessage', 'clusterName', clusterName);
|
|
7942
|
+
// verify required parameter 'topic' is not null or undefined
|
|
7943
|
+
(0, common_1.assertParamExists)('produceKafkaTopicMessage', 'topic', topic);
|
|
7944
|
+
// verify required parameter 'topicMessageRequest' is not null or undefined
|
|
7945
|
+
(0, common_1.assertParamExists)('produceKafkaTopicMessage', 'topicMessageRequest', topicMessageRequest);
|
|
7946
|
+
const localVarPath = `/admin/v1/data/kafka/organizations/{orgName}/clusters/{clusterName}/topic/{topic}/messages`
|
|
7947
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7948
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
7949
|
+
.replace(`{${"topic"}}`, encodeURIComponent(String(topic)));
|
|
7950
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7951
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7952
|
+
let baseOptions;
|
|
7953
|
+
if (configuration) {
|
|
7954
|
+
baseOptions = configuration.baseOptions;
|
|
7955
|
+
}
|
|
7956
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7957
|
+
const localVarHeaderParameter = {};
|
|
7958
|
+
const localVarQueryParameter = {};
|
|
7959
|
+
// authentication BearerToken required
|
|
7960
|
+
// http bearer authentication required
|
|
7961
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7962
|
+
// authentication DigestAuth required
|
|
7963
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7964
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7965
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7966
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7967
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7968
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(topicMessageRequest, localVarRequestOptions, configuration);
|
|
7969
|
+
return {
|
|
7970
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7971
|
+
options: localVarRequestOptions,
|
|
7972
|
+
};
|
|
7973
|
+
},
|
|
7974
|
+
/**
|
|
7975
|
+
*
|
|
7976
|
+
* @summary Promote cluster intance to primary
|
|
7351
7977
|
* @param {string} orgName name of the Org
|
|
7352
|
-
* @param {string}
|
|
7353
|
-
* @param {
|
|
7978
|
+
* @param {string} clusterName name of the KubeBlocks cluster
|
|
7979
|
+
* @param {OpsPromote} body
|
|
7354
7980
|
* @param {*} [options] Override http request option.
|
|
7355
7981
|
* @throws {RequiredError}
|
|
7356
7982
|
*/
|
|
7357
|
-
|
|
7983
|
+
promoteCluster: async (orgName, clusterName, body, options = {}) => {
|
|
7358
7984
|
// verify required parameter 'orgName' is not null or undefined
|
|
7359
|
-
(0, common_1.assertParamExists)('
|
|
7360
|
-
// verify required parameter '
|
|
7361
|
-
(0, common_1.assertParamExists)('
|
|
7985
|
+
(0, common_1.assertParamExists)('promoteCluster', 'orgName', orgName);
|
|
7986
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
7987
|
+
(0, common_1.assertParamExists)('promoteCluster', 'clusterName', clusterName);
|
|
7362
7988
|
// verify required parameter 'body' is not null or undefined
|
|
7363
|
-
(0, common_1.assertParamExists)('
|
|
7364
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/
|
|
7989
|
+
(0, common_1.assertParamExists)('promoteCluster', 'body', body);
|
|
7990
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/promote`
|
|
7365
7991
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7366
|
-
.replace(`{${"
|
|
7992
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
7367
7993
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7368
7994
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7369
7995
|
let baseOptions;
|
|
7370
7996
|
if (configuration) {
|
|
7371
7997
|
baseOptions = configuration.baseOptions;
|
|
7372
7998
|
}
|
|
7373
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7999
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7374
8000
|
const localVarHeaderParameter = {};
|
|
7375
8001
|
const localVarQueryParameter = {};
|
|
7376
8002
|
// authentication BearerToken required
|
|
@@ -7389,31 +8015,35 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7389
8015
|
};
|
|
7390
8016
|
},
|
|
7391
8017
|
/**
|
|
7392
|
-
*
|
|
7393
|
-
* @summary
|
|
7394
|
-
* @param {string} orgName
|
|
7395
|
-
* @param {string}
|
|
7396
|
-
* @param {
|
|
8018
|
+
*
|
|
8019
|
+
* @summary Create or update Elasticsearch security role
|
|
8020
|
+
* @param {string} orgName
|
|
8021
|
+
* @param {string} clusterName
|
|
8022
|
+
* @param {string} roleName
|
|
8023
|
+
* @param {ESSecurityRoleDescriptor} body
|
|
7397
8024
|
* @param {*} [options] Override http request option.
|
|
7398
8025
|
* @throws {RequiredError}
|
|
7399
8026
|
*/
|
|
7400
|
-
|
|
8027
|
+
putElasticsearchSecurityRole: async (orgName, clusterName, roleName, body, options = {}) => {
|
|
7401
8028
|
// verify required parameter 'orgName' is not null or undefined
|
|
7402
|
-
(0, common_1.assertParamExists)('
|
|
7403
|
-
// verify required parameter '
|
|
7404
|
-
(0, common_1.assertParamExists)('
|
|
7405
|
-
// verify required parameter '
|
|
7406
|
-
(0, common_1.assertParamExists)('
|
|
7407
|
-
|
|
8029
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'orgName', orgName);
|
|
8030
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
8031
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'clusterName', clusterName);
|
|
8032
|
+
// verify required parameter 'roleName' is not null or undefined
|
|
8033
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'roleName', roleName);
|
|
8034
|
+
// verify required parameter 'body' is not null or undefined
|
|
8035
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityRole', 'body', body);
|
|
8036
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/roles/{roleName}`
|
|
7408
8037
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7409
|
-
.replace(`{${"
|
|
8038
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
8039
|
+
.replace(`{${"roleName"}}`, encodeURIComponent(String(roleName)));
|
|
7410
8040
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7411
8041
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7412
8042
|
let baseOptions;
|
|
7413
8043
|
if (configuration) {
|
|
7414
8044
|
baseOptions = configuration.baseOptions;
|
|
7415
8045
|
}
|
|
7416
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8046
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7417
8047
|
const localVarHeaderParameter = {};
|
|
7418
8048
|
const localVarQueryParameter = {};
|
|
7419
8049
|
// authentication BearerToken required
|
|
@@ -7425,7 +8055,7 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7425
8055
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7426
8056
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7427
8057
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7428
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
8058
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
7429
8059
|
return {
|
|
7430
8060
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7431
8061
|
options: localVarRequestOptions,
|
|
@@ -7433,34 +8063,34 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7433
8063
|
},
|
|
7434
8064
|
/**
|
|
7435
8065
|
*
|
|
7436
|
-
* @summary
|
|
7437
|
-
* @param {string} orgName
|
|
7438
|
-
* @param {string} clusterName
|
|
7439
|
-
* @param {string}
|
|
7440
|
-
* @param {
|
|
8066
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
8067
|
+
* @param {string} orgName
|
|
8068
|
+
* @param {string} clusterName
|
|
8069
|
+
* @param {string} mappingName
|
|
8070
|
+
* @param {ESSecurityRoleMapping} body
|
|
7441
8071
|
* @param {*} [options] Override http request option.
|
|
7442
8072
|
* @throws {RequiredError}
|
|
7443
8073
|
*/
|
|
7444
|
-
|
|
8074
|
+
putElasticsearchSecurityRoleMapping: async (orgName, clusterName, mappingName, body, options = {}) => {
|
|
7445
8075
|
// verify required parameter 'orgName' is not null or undefined
|
|
7446
|
-
(0, common_1.assertParamExists)('
|
|
8076
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'orgName', orgName);
|
|
7447
8077
|
// verify required parameter 'clusterName' is not null or undefined
|
|
7448
|
-
(0, common_1.assertParamExists)('
|
|
7449
|
-
// verify required parameter '
|
|
7450
|
-
(0, common_1.assertParamExists)('
|
|
7451
|
-
// verify required parameter '
|
|
7452
|
-
(0, common_1.assertParamExists)('
|
|
7453
|
-
const localVarPath = `/admin/v1/data/
|
|
8078
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'clusterName', clusterName);
|
|
8079
|
+
// verify required parameter 'mappingName' is not null or undefined
|
|
8080
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'mappingName', mappingName);
|
|
8081
|
+
// verify required parameter 'body' is not null or undefined
|
|
8082
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityRoleMapping', 'body', body);
|
|
8083
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/role-mappings/{mappingName}`
|
|
7454
8084
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7455
8085
|
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
7456
|
-
.replace(`{${"
|
|
8086
|
+
.replace(`{${"mappingName"}}`, encodeURIComponent(String(mappingName)));
|
|
7457
8087
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7458
8088
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7459
8089
|
let baseOptions;
|
|
7460
8090
|
if (configuration) {
|
|
7461
8091
|
baseOptions = configuration.baseOptions;
|
|
7462
8092
|
}
|
|
7463
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8093
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7464
8094
|
const localVarHeaderParameter = {};
|
|
7465
8095
|
const localVarQueryParameter = {};
|
|
7466
8096
|
// authentication BearerToken required
|
|
@@ -7472,7 +8102,7 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7472
8102
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7473
8103
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7474
8104
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7475
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
8105
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
7476
8106
|
return {
|
|
7477
8107
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7478
8108
|
options: localVarRequestOptions,
|
|
@@ -7480,30 +8110,34 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
7480
8110
|
},
|
|
7481
8111
|
/**
|
|
7482
8112
|
*
|
|
7483
|
-
* @summary
|
|
7484
|
-
* @param {string} orgName
|
|
7485
|
-
* @param {string} clusterName
|
|
7486
|
-
* @param {
|
|
8113
|
+
* @summary Create or update Elasticsearch security user
|
|
8114
|
+
* @param {string} orgName
|
|
8115
|
+
* @param {string} clusterName
|
|
8116
|
+
* @param {string} username
|
|
8117
|
+
* @param {ESPutSecurityUserRequest} body
|
|
7487
8118
|
* @param {*} [options] Override http request option.
|
|
7488
8119
|
* @throws {RequiredError}
|
|
7489
8120
|
*/
|
|
7490
|
-
|
|
8121
|
+
putElasticsearchSecurityUser: async (orgName, clusterName, username, body, options = {}) => {
|
|
7491
8122
|
// verify required parameter 'orgName' is not null or undefined
|
|
7492
|
-
(0, common_1.assertParamExists)('
|
|
8123
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'orgName', orgName);
|
|
7493
8124
|
// verify required parameter 'clusterName' is not null or undefined
|
|
7494
|
-
(0, common_1.assertParamExists)('
|
|
8125
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'clusterName', clusterName);
|
|
8126
|
+
// verify required parameter 'username' is not null or undefined
|
|
8127
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'username', username);
|
|
7495
8128
|
// verify required parameter 'body' is not null or undefined
|
|
7496
|
-
(0, common_1.assertParamExists)('
|
|
7497
|
-
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/
|
|
8129
|
+
(0, common_1.assertParamExists)('putElasticsearchSecurityUser', 'body', body);
|
|
8130
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}`
|
|
7498
8131
|
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
7499
|
-
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
8132
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
8133
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
7500
8134
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7501
8135
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7502
8136
|
let baseOptions;
|
|
7503
8137
|
if (configuration) {
|
|
7504
8138
|
baseOptions = configuration.baseOptions;
|
|
7505
8139
|
}
|
|
7506
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
8140
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7507
8141
|
const localVarHeaderParameter = {};
|
|
7508
8142
|
const localVarQueryParameter = {};
|
|
7509
8143
|
// authentication BearerToken required
|
|
@@ -8974,6 +9608,48 @@ const SharedApiAxiosParamCreator = function (configuration) {
|
|
|
8974
9608
|
options: localVarRequestOptions,
|
|
8975
9609
|
};
|
|
8976
9610
|
},
|
|
9611
|
+
/**
|
|
9612
|
+
*
|
|
9613
|
+
* @summary Unlock Elasticsearch account
|
|
9614
|
+
* @param {string} orgName
|
|
9615
|
+
* @param {string} clusterName
|
|
9616
|
+
* @param {string} username
|
|
9617
|
+
* @param {*} [options] Override http request option.
|
|
9618
|
+
* @throws {RequiredError}
|
|
9619
|
+
*/
|
|
9620
|
+
unlockElasticsearchSecurityUser: async (orgName, clusterName, username, options = {}) => {
|
|
9621
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
9622
|
+
(0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'orgName', orgName);
|
|
9623
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
9624
|
+
(0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'clusterName', clusterName);
|
|
9625
|
+
// verify required parameter 'username' is not null or undefined
|
|
9626
|
+
(0, common_1.assertParamExists)('unlockElasticsearchSecurityUser', 'username', username);
|
|
9627
|
+
const localVarPath = `/admin/v1/data/elasticsearch/organizations/{orgName}/clusters/{clusterName}/accounts/{username}/unlock`
|
|
9628
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
9629
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
9630
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)));
|
|
9631
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9632
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9633
|
+
let baseOptions;
|
|
9634
|
+
if (configuration) {
|
|
9635
|
+
baseOptions = configuration.baseOptions;
|
|
9636
|
+
}
|
|
9637
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
9638
|
+
const localVarHeaderParameter = {};
|
|
9639
|
+
const localVarQueryParameter = {};
|
|
9640
|
+
// authentication BearerToken required
|
|
9641
|
+
// http bearer authentication required
|
|
9642
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9643
|
+
// authentication DigestAuth required
|
|
9644
|
+
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
9645
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9646
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9647
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9648
|
+
return {
|
|
9649
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9650
|
+
options: localVarRequestOptions,
|
|
9651
|
+
};
|
|
9652
|
+
},
|
|
8977
9653
|
/**
|
|
8978
9654
|
* update an account in cluster
|
|
8979
9655
|
* @summary update cluster account
|
|
@@ -10117,6 +10793,23 @@ const SharedApiFp = function (configuration) {
|
|
|
10117
10793
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.buildBackupObj']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10118
10794
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10119
10795
|
},
|
|
10796
|
+
/**
|
|
10797
|
+
*
|
|
10798
|
+
* @summary Change Elasticsearch account password
|
|
10799
|
+
* @param {string} orgName
|
|
10800
|
+
* @param {string} clusterName
|
|
10801
|
+
* @param {string} username
|
|
10802
|
+
* @param {ESSecurityPasswordRequest} body
|
|
10803
|
+
* @param {*} [options] Override http request option.
|
|
10804
|
+
* @throws {RequiredError}
|
|
10805
|
+
*/
|
|
10806
|
+
async changeElasticsearchSecurityUserPassword(orgName, clusterName, username, body, options) {
|
|
10807
|
+
var _a, _b, _c;
|
|
10808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.changeElasticsearchSecurityUserPassword(orgName, clusterName, username, body, options);
|
|
10809
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10810
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.changeElasticsearchSecurityUserPassword']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10811
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10812
|
+
},
|
|
10120
10813
|
/**
|
|
10121
10814
|
* check apikey available
|
|
10122
10815
|
* @summary check apikey available
|
|
@@ -10581,6 +11274,54 @@ const SharedApiFp = function (configuration) {
|
|
|
10581
11274
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10582
11275
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10583
11276
|
},
|
|
11277
|
+
/**
|
|
11278
|
+
*
|
|
11279
|
+
* @summary Delete Elasticsearch security role
|
|
11280
|
+
* @param {string} orgName
|
|
11281
|
+
* @param {string} clusterName
|
|
11282
|
+
* @param {string} roleName
|
|
11283
|
+
* @param {*} [options] Override http request option.
|
|
11284
|
+
* @throws {RequiredError}
|
|
11285
|
+
*/
|
|
11286
|
+
async deleteElasticsearchSecurityRole(orgName, clusterName, roleName, options) {
|
|
11287
|
+
var _a, _b, _c;
|
|
11288
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityRole(orgName, clusterName, roleName, options);
|
|
11289
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11290
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11291
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11292
|
+
},
|
|
11293
|
+
/**
|
|
11294
|
+
*
|
|
11295
|
+
* @summary Delete Elasticsearch security role mapping
|
|
11296
|
+
* @param {string} orgName
|
|
11297
|
+
* @param {string} clusterName
|
|
11298
|
+
* @param {string} mappingName
|
|
11299
|
+
* @param {*} [options] Override http request option.
|
|
11300
|
+
* @throws {RequiredError}
|
|
11301
|
+
*/
|
|
11302
|
+
async deleteElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options) {
|
|
11303
|
+
var _a, _b, _c;
|
|
11304
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options);
|
|
11305
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11306
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11307
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11308
|
+
},
|
|
11309
|
+
/**
|
|
11310
|
+
*
|
|
11311
|
+
* @summary Delete Elasticsearch security user
|
|
11312
|
+
* @param {string} orgName
|
|
11313
|
+
* @param {string} clusterName
|
|
11314
|
+
* @param {string} username
|
|
11315
|
+
* @param {*} [options] Override http request option.
|
|
11316
|
+
* @throws {RequiredError}
|
|
11317
|
+
*/
|
|
11318
|
+
async deleteElasticsearchSecurityUser(orgName, clusterName, username, options) {
|
|
11319
|
+
var _a, _b, _c;
|
|
11320
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteElasticsearchSecurityUser(orgName, clusterName, username, options);
|
|
11321
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
11322
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.deleteElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11323
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11324
|
+
},
|
|
10584
11325
|
/**
|
|
10585
11326
|
*
|
|
10586
11327
|
* @summary Delete IP whitelist
|
|
@@ -11246,6 +11987,69 @@ const SharedApiFp = function (configuration) {
|
|
|
11246
11987
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getDatabaseOptions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11247
11988
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11248
11989
|
},
|
|
11990
|
+
/**
|
|
11991
|
+
*
|
|
11992
|
+
* @summary Get Elasticsearch builtin privileges
|
|
11993
|
+
* @param {string} orgName
|
|
11994
|
+
* @param {string} clusterName
|
|
11995
|
+
* @param {*} [options] Override http request option.
|
|
11996
|
+
* @throws {RequiredError}
|
|
11997
|
+
*/
|
|
11998
|
+
async getElasticsearchBuiltinPrivileges(orgName, clusterName, options) {
|
|
11999
|
+
var _a, _b, _c;
|
|
12000
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchBuiltinPrivileges(orgName, clusterName, options);
|
|
12001
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12002
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getElasticsearchBuiltinPrivileges']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12003
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12004
|
+
},
|
|
12005
|
+
/**
|
|
12006
|
+
*
|
|
12007
|
+
* @summary Get Elasticsearch security role
|
|
12008
|
+
* @param {string} orgName
|
|
12009
|
+
* @param {string} clusterName
|
|
12010
|
+
* @param {string} roleName
|
|
12011
|
+
* @param {*} [options] Override http request option.
|
|
12012
|
+
* @throws {RequiredError}
|
|
12013
|
+
*/
|
|
12014
|
+
async getElasticsearchSecurityRole(orgName, clusterName, roleName, options) {
|
|
12015
|
+
var _a, _b, _c;
|
|
12016
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityRole(orgName, clusterName, roleName, options);
|
|
12017
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12018
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12019
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12020
|
+
},
|
|
12021
|
+
/**
|
|
12022
|
+
*
|
|
12023
|
+
* @summary Get Elasticsearch security role mapping
|
|
12024
|
+
* @param {string} orgName
|
|
12025
|
+
* @param {string} clusterName
|
|
12026
|
+
* @param {string} mappingName
|
|
12027
|
+
* @param {*} [options] Override http request option.
|
|
12028
|
+
* @throws {RequiredError}
|
|
12029
|
+
*/
|
|
12030
|
+
async getElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options) {
|
|
12031
|
+
var _a, _b, _c;
|
|
12032
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, options);
|
|
12033
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12034
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12035
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12036
|
+
},
|
|
12037
|
+
/**
|
|
12038
|
+
*
|
|
12039
|
+
* @summary Get Elasticsearch security user
|
|
12040
|
+
* @param {string} orgName
|
|
12041
|
+
* @param {string} clusterName
|
|
12042
|
+
* @param {string} username
|
|
12043
|
+
* @param {*} [options] Override http request option.
|
|
12044
|
+
* @throws {RequiredError}
|
|
12045
|
+
*/
|
|
12046
|
+
async getElasticsearchSecurityUser(orgName, clusterName, username, options) {
|
|
12047
|
+
var _a, _b, _c;
|
|
12048
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getElasticsearchSecurityUser(orgName, clusterName, username, options);
|
|
12049
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12050
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.getElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12051
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12052
|
+
},
|
|
11249
12053
|
/**
|
|
11250
12054
|
* get engine available console
|
|
11251
12055
|
* @summary get engine available console
|
|
@@ -11954,6 +12758,51 @@ const SharedApiFp = function (configuration) {
|
|
|
11954
12758
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listDatabases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
11955
12759
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11956
12760
|
},
|
|
12761
|
+
/**
|
|
12762
|
+
*
|
|
12763
|
+
* @summary List Elasticsearch security role mappings
|
|
12764
|
+
* @param {string} orgName
|
|
12765
|
+
* @param {string} clusterName
|
|
12766
|
+
* @param {*} [options] Override http request option.
|
|
12767
|
+
* @throws {RequiredError}
|
|
12768
|
+
*/
|
|
12769
|
+
async listElasticsearchSecurityRoleMappings(orgName, clusterName, options) {
|
|
12770
|
+
var _a, _b, _c;
|
|
12771
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityRoleMappings(orgName, clusterName, options);
|
|
12772
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12773
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listElasticsearchSecurityRoleMappings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12774
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12775
|
+
},
|
|
12776
|
+
/**
|
|
12777
|
+
*
|
|
12778
|
+
* @summary List Elasticsearch security roles
|
|
12779
|
+
* @param {string} orgName
|
|
12780
|
+
* @param {string} clusterName
|
|
12781
|
+
* @param {*} [options] Override http request option.
|
|
12782
|
+
* @throws {RequiredError}
|
|
12783
|
+
*/
|
|
12784
|
+
async listElasticsearchSecurityRoles(orgName, clusterName, options) {
|
|
12785
|
+
var _a, _b, _c;
|
|
12786
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityRoles(orgName, clusterName, options);
|
|
12787
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12788
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listElasticsearchSecurityRoles']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12789
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12790
|
+
},
|
|
12791
|
+
/**
|
|
12792
|
+
*
|
|
12793
|
+
* @summary List Elasticsearch security users
|
|
12794
|
+
* @param {string} orgName
|
|
12795
|
+
* @param {string} clusterName
|
|
12796
|
+
* @param {*} [options] Override http request option.
|
|
12797
|
+
* @throws {RequiredError}
|
|
12798
|
+
*/
|
|
12799
|
+
async listElasticsearchSecurityUsers(orgName, clusterName, options) {
|
|
12800
|
+
var _a, _b, _c;
|
|
12801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listElasticsearchSecurityUsers(orgName, clusterName, options);
|
|
12802
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12803
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listElasticsearchSecurityUsers']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12804
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12805
|
+
},
|
|
11957
12806
|
/**
|
|
11958
12807
|
*
|
|
11959
12808
|
* @summary List cluster endpoints
|
|
@@ -12655,11 +13504,27 @@ const SharedApiFp = function (configuration) {
|
|
|
12655
13504
|
* @param {*} [options] Override http request option.
|
|
12656
13505
|
* @throws {RequiredError}
|
|
12657
13506
|
*/
|
|
12658
|
-
async listUpgradeableServiceVersion(clusterName, orgName, component, options) {
|
|
13507
|
+
async listUpgradeableServiceVersion(clusterName, orgName, component, options) {
|
|
13508
|
+
var _a, _b, _c;
|
|
13509
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listUpgradeableServiceVersion(clusterName, orgName, component, options);
|
|
13510
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13511
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.listUpgradeableServiceVersion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13512
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13513
|
+
},
|
|
13514
|
+
/**
|
|
13515
|
+
*
|
|
13516
|
+
* @summary Lock Elasticsearch account
|
|
13517
|
+
* @param {string} orgName
|
|
13518
|
+
* @param {string} clusterName
|
|
13519
|
+
* @param {string} username
|
|
13520
|
+
* @param {*} [options] Override http request option.
|
|
13521
|
+
* @throws {RequiredError}
|
|
13522
|
+
*/
|
|
13523
|
+
async lockElasticsearchSecurityUser(orgName, clusterName, username, options) {
|
|
12659
13524
|
var _a, _b, _c;
|
|
12660
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
13525
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.lockElasticsearchSecurityUser(orgName, clusterName, username, options);
|
|
12661
13526
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12662
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.
|
|
13527
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.lockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12663
13528
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12664
13529
|
},
|
|
12665
13530
|
/**
|
|
@@ -12804,6 +13669,57 @@ const SharedApiFp = function (configuration) {
|
|
|
12804
13669
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.promoteCluster']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12805
13670
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12806
13671
|
},
|
|
13672
|
+
/**
|
|
13673
|
+
*
|
|
13674
|
+
* @summary Create or update Elasticsearch security role
|
|
13675
|
+
* @param {string} orgName
|
|
13676
|
+
* @param {string} clusterName
|
|
13677
|
+
* @param {string} roleName
|
|
13678
|
+
* @param {ESSecurityRoleDescriptor} body
|
|
13679
|
+
* @param {*} [options] Override http request option.
|
|
13680
|
+
* @throws {RequiredError}
|
|
13681
|
+
*/
|
|
13682
|
+
async putElasticsearchSecurityRole(orgName, clusterName, roleName, body, options) {
|
|
13683
|
+
var _a, _b, _c;
|
|
13684
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityRole(orgName, clusterName, roleName, body, options);
|
|
13685
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13686
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putElasticsearchSecurityRole']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13687
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13688
|
+
},
|
|
13689
|
+
/**
|
|
13690
|
+
*
|
|
13691
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
13692
|
+
* @param {string} orgName
|
|
13693
|
+
* @param {string} clusterName
|
|
13694
|
+
* @param {string} mappingName
|
|
13695
|
+
* @param {ESSecurityRoleMapping} body
|
|
13696
|
+
* @param {*} [options] Override http request option.
|
|
13697
|
+
* @throws {RequiredError}
|
|
13698
|
+
*/
|
|
13699
|
+
async putElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, body, options) {
|
|
13700
|
+
var _a, _b, _c;
|
|
13701
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityRoleMapping(orgName, clusterName, mappingName, body, options);
|
|
13702
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13703
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putElasticsearchSecurityRoleMapping']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13704
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13705
|
+
},
|
|
13706
|
+
/**
|
|
13707
|
+
*
|
|
13708
|
+
* @summary Create or update Elasticsearch security user
|
|
13709
|
+
* @param {string} orgName
|
|
13710
|
+
* @param {string} clusterName
|
|
13711
|
+
* @param {string} username
|
|
13712
|
+
* @param {ESPutSecurityUserRequest} body
|
|
13713
|
+
* @param {*} [options] Override http request option.
|
|
13714
|
+
* @throws {RequiredError}
|
|
13715
|
+
*/
|
|
13716
|
+
async putElasticsearchSecurityUser(orgName, clusterName, username, body, options) {
|
|
13717
|
+
var _a, _b, _c;
|
|
13718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.putElasticsearchSecurityUser(orgName, clusterName, username, body, options);
|
|
13719
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13720
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.putElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13721
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13722
|
+
},
|
|
12807
13723
|
/**
|
|
12808
13724
|
*
|
|
12809
13725
|
* @summary create a SQL query
|
|
@@ -13321,6 +14237,22 @@ const SharedApiFp = function (configuration) {
|
|
|
13321
14237
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.unfreezeMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13322
14238
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13323
14239
|
},
|
|
14240
|
+
/**
|
|
14241
|
+
*
|
|
14242
|
+
* @summary Unlock Elasticsearch account
|
|
14243
|
+
* @param {string} orgName
|
|
14244
|
+
* @param {string} clusterName
|
|
14245
|
+
* @param {string} username
|
|
14246
|
+
* @param {*} [options] Override http request option.
|
|
14247
|
+
* @throws {RequiredError}
|
|
14248
|
+
*/
|
|
14249
|
+
async unlockElasticsearchSecurityUser(orgName, clusterName, username, options) {
|
|
14250
|
+
var _a, _b, _c;
|
|
14251
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.unlockElasticsearchSecurityUser(orgName, clusterName, username, options);
|
|
14252
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14253
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SharedApi.unlockElasticsearchSecurityUser']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14254
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14255
|
+
},
|
|
13324
14256
|
/**
|
|
13325
14257
|
* update an account in cluster
|
|
13326
14258
|
* @summary update cluster account
|
|
@@ -13785,6 +14717,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
13785
14717
|
buildBackupObj(requestParameters, options) {
|
|
13786
14718
|
return localVarFp.buildBackupObj(requestParameters.orgName, requestParameters.environmentName, requestParameters.engineName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
13787
14719
|
},
|
|
14720
|
+
/**
|
|
14721
|
+
*
|
|
14722
|
+
* @summary Change Elasticsearch account password
|
|
14723
|
+
* @param {SharedApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
|
|
14724
|
+
* @param {*} [options] Override http request option.
|
|
14725
|
+
* @throws {RequiredError}
|
|
14726
|
+
*/
|
|
14727
|
+
changeElasticsearchSecurityUserPassword(requestParameters, options) {
|
|
14728
|
+
return localVarFp.changeElasticsearchSecurityUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
14729
|
+
},
|
|
13788
14730
|
/**
|
|
13789
14731
|
* check apikey available
|
|
13790
14732
|
* @summary check apikey available
|
|
@@ -14076,6 +15018,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
14076
15018
|
deleteDatabase(requestParameters, options) {
|
|
14077
15019
|
return localVarFp.deleteDatabase(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath));
|
|
14078
15020
|
},
|
|
15021
|
+
/**
|
|
15022
|
+
*
|
|
15023
|
+
* @summary Delete Elasticsearch security role
|
|
15024
|
+
* @param {SharedApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
15025
|
+
* @param {*} [options] Override http request option.
|
|
15026
|
+
* @throws {RequiredError}
|
|
15027
|
+
*/
|
|
15028
|
+
deleteElasticsearchSecurityRole(requestParameters, options) {
|
|
15029
|
+
return localVarFp.deleteElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
15030
|
+
},
|
|
15031
|
+
/**
|
|
15032
|
+
*
|
|
15033
|
+
* @summary Delete Elasticsearch security role mapping
|
|
15034
|
+
* @param {SharedApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
15035
|
+
* @param {*} [options] Override http request option.
|
|
15036
|
+
* @throws {RequiredError}
|
|
15037
|
+
*/
|
|
15038
|
+
deleteElasticsearchSecurityRoleMapping(requestParameters, options) {
|
|
15039
|
+
return localVarFp.deleteElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(axios, basePath));
|
|
15040
|
+
},
|
|
15041
|
+
/**
|
|
15042
|
+
*
|
|
15043
|
+
* @summary Delete Elasticsearch security user
|
|
15044
|
+
* @param {SharedApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
15045
|
+
* @param {*} [options] Override http request option.
|
|
15046
|
+
* @throws {RequiredError}
|
|
15047
|
+
*/
|
|
15048
|
+
deleteElasticsearchSecurityUser(requestParameters, options) {
|
|
15049
|
+
return localVarFp.deleteElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
15050
|
+
},
|
|
14079
15051
|
/**
|
|
14080
15052
|
*
|
|
14081
15053
|
* @summary Delete IP whitelist
|
|
@@ -14486,6 +15458,46 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
14486
15458
|
getDatabaseOptions(requestParameters, options) {
|
|
14487
15459
|
return localVarFp.getDatabaseOptions(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.type, requestParameters.charset, requestParameters.filter, options).then((request) => request(axios, basePath));
|
|
14488
15460
|
},
|
|
15461
|
+
/**
|
|
15462
|
+
*
|
|
15463
|
+
* @summary Get Elasticsearch builtin privileges
|
|
15464
|
+
* @param {SharedApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
|
|
15465
|
+
* @param {*} [options] Override http request option.
|
|
15466
|
+
* @throws {RequiredError}
|
|
15467
|
+
*/
|
|
15468
|
+
getElasticsearchBuiltinPrivileges(requestParameters, options) {
|
|
15469
|
+
return localVarFp.getElasticsearchBuiltinPrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
15470
|
+
},
|
|
15471
|
+
/**
|
|
15472
|
+
*
|
|
15473
|
+
* @summary Get Elasticsearch security role
|
|
15474
|
+
* @param {SharedApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
15475
|
+
* @param {*} [options] Override http request option.
|
|
15476
|
+
* @throws {RequiredError}
|
|
15477
|
+
*/
|
|
15478
|
+
getElasticsearchSecurityRole(requestParameters, options) {
|
|
15479
|
+
return localVarFp.getElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(axios, basePath));
|
|
15480
|
+
},
|
|
15481
|
+
/**
|
|
15482
|
+
*
|
|
15483
|
+
* @summary Get Elasticsearch security role mapping
|
|
15484
|
+
* @param {SharedApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
15485
|
+
* @param {*} [options] Override http request option.
|
|
15486
|
+
* @throws {RequiredError}
|
|
15487
|
+
*/
|
|
15488
|
+
getElasticsearchSecurityRoleMapping(requestParameters, options) {
|
|
15489
|
+
return localVarFp.getElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(axios, basePath));
|
|
15490
|
+
},
|
|
15491
|
+
/**
|
|
15492
|
+
*
|
|
15493
|
+
* @summary Get Elasticsearch security user
|
|
15494
|
+
* @param {SharedApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
15495
|
+
* @param {*} [options] Override http request option.
|
|
15496
|
+
* @throws {RequiredError}
|
|
15497
|
+
*/
|
|
15498
|
+
getElasticsearchSecurityUser(requestParameters, options) {
|
|
15499
|
+
return localVarFp.getElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
15500
|
+
},
|
|
14489
15501
|
/**
|
|
14490
15502
|
* get engine available console
|
|
14491
15503
|
* @summary get engine available console
|
|
@@ -14925,6 +15937,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
14925
15937
|
listDatabases(requestParameters, options) {
|
|
14926
15938
|
return localVarFp.listDatabases(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
14927
15939
|
},
|
|
15940
|
+
/**
|
|
15941
|
+
*
|
|
15942
|
+
* @summary List Elasticsearch security role mappings
|
|
15943
|
+
* @param {SharedApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
|
|
15944
|
+
* @param {*} [options] Override http request option.
|
|
15945
|
+
* @throws {RequiredError}
|
|
15946
|
+
*/
|
|
15947
|
+
listElasticsearchSecurityRoleMappings(requestParameters, options) {
|
|
15948
|
+
return localVarFp.listElasticsearchSecurityRoleMappings(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
15949
|
+
},
|
|
15950
|
+
/**
|
|
15951
|
+
*
|
|
15952
|
+
* @summary List Elasticsearch security roles
|
|
15953
|
+
* @param {SharedApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
|
|
15954
|
+
* @param {*} [options] Override http request option.
|
|
15955
|
+
* @throws {RequiredError}
|
|
15956
|
+
*/
|
|
15957
|
+
listElasticsearchSecurityRoles(requestParameters, options) {
|
|
15958
|
+
return localVarFp.listElasticsearchSecurityRoles(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
15959
|
+
},
|
|
15960
|
+
/**
|
|
15961
|
+
*
|
|
15962
|
+
* @summary List Elasticsearch security users
|
|
15963
|
+
* @param {SharedApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
|
|
15964
|
+
* @param {*} [options] Override http request option.
|
|
15965
|
+
* @throws {RequiredError}
|
|
15966
|
+
*/
|
|
15967
|
+
listElasticsearchSecurityUsers(requestParameters, options) {
|
|
15968
|
+
return localVarFp.listElasticsearchSecurityUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
15969
|
+
},
|
|
14928
15970
|
/**
|
|
14929
15971
|
*
|
|
14930
15972
|
* @summary List cluster endpoints
|
|
@@ -15372,6 +16414,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15372
16414
|
listUpgradeableServiceVersion(requestParameters, options) {
|
|
15373
16415
|
return localVarFp.listUpgradeableServiceVersion(requestParameters.clusterName, requestParameters.orgName, requestParameters.component, options).then((request) => request(axios, basePath));
|
|
15374
16416
|
},
|
|
16417
|
+
/**
|
|
16418
|
+
*
|
|
16419
|
+
* @summary Lock Elasticsearch account
|
|
16420
|
+
* @param {SharedApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
16421
|
+
* @param {*} [options] Override http request option.
|
|
16422
|
+
* @throws {RequiredError}
|
|
16423
|
+
*/
|
|
16424
|
+
lockElasticsearchSecurityUser(requestParameters, options) {
|
|
16425
|
+
return localVarFp.lockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
16426
|
+
},
|
|
15375
16427
|
/**
|
|
15376
16428
|
*
|
|
15377
16429
|
* @summary batch modify database tde status
|
|
@@ -15462,6 +16514,36 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15462
16514
|
promoteCluster(requestParameters, options) {
|
|
15463
16515
|
return localVarFp.promoteCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
15464
16516
|
},
|
|
16517
|
+
/**
|
|
16518
|
+
*
|
|
16519
|
+
* @summary Create or update Elasticsearch security role
|
|
16520
|
+
* @param {SharedApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
16521
|
+
* @param {*} [options] Override http request option.
|
|
16522
|
+
* @throws {RequiredError}
|
|
16523
|
+
*/
|
|
16524
|
+
putElasticsearchSecurityRole(requestParameters, options) {
|
|
16525
|
+
return localVarFp.putElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
16526
|
+
},
|
|
16527
|
+
/**
|
|
16528
|
+
*
|
|
16529
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
16530
|
+
* @param {SharedApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
16531
|
+
* @param {*} [options] Override http request option.
|
|
16532
|
+
* @throws {RequiredError}
|
|
16533
|
+
*/
|
|
16534
|
+
putElasticsearchSecurityRoleMapping(requestParameters, options) {
|
|
16535
|
+
return localVarFp.putElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
16536
|
+
},
|
|
16537
|
+
/**
|
|
16538
|
+
*
|
|
16539
|
+
* @summary Create or update Elasticsearch security user
|
|
16540
|
+
* @param {SharedApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
16541
|
+
* @param {*} [options] Override http request option.
|
|
16542
|
+
* @throws {RequiredError}
|
|
16543
|
+
*/
|
|
16544
|
+
putElasticsearchSecurityUser(requestParameters, options) {
|
|
16545
|
+
return localVarFp.putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(axios, basePath));
|
|
16546
|
+
},
|
|
15465
16547
|
/**
|
|
15466
16548
|
*
|
|
15467
16549
|
* @summary create a SQL query
|
|
@@ -15761,6 +16843,16 @@ const SharedApiFactory = function (configuration, basePath, axios) {
|
|
|
15761
16843
|
unfreezeMember(requestParameters, options) {
|
|
15762
16844
|
return localVarFp.unfreezeMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(axios, basePath));
|
|
15763
16845
|
},
|
|
16846
|
+
/**
|
|
16847
|
+
*
|
|
16848
|
+
* @summary Unlock Elasticsearch account
|
|
16849
|
+
* @param {SharedApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
16850
|
+
* @param {*} [options] Override http request option.
|
|
16851
|
+
* @throws {RequiredError}
|
|
16852
|
+
*/
|
|
16853
|
+
unlockElasticsearchSecurityUser(requestParameters, options) {
|
|
16854
|
+
return localVarFp.unlockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(axios, basePath));
|
|
16855
|
+
},
|
|
15764
16856
|
/**
|
|
15765
16857
|
* update an account in cluster
|
|
15766
16858
|
* @summary update cluster account
|
|
@@ -16088,6 +17180,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
16088
17180
|
buildBackupObj(requestParameters, options) {
|
|
16089
17181
|
return (0, exports.SharedApiFp)(this.configuration).buildBackupObj(requestParameters.orgName, requestParameters.environmentName, requestParameters.engineName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
16090
17182
|
}
|
|
17183
|
+
/**
|
|
17184
|
+
*
|
|
17185
|
+
* @summary Change Elasticsearch account password
|
|
17186
|
+
* @param {SharedApiChangeElasticsearchSecurityUserPasswordRequest} requestParameters Request parameters.
|
|
17187
|
+
* @param {*} [options] Override http request option.
|
|
17188
|
+
* @throws {RequiredError}
|
|
17189
|
+
* @memberof SharedApi
|
|
17190
|
+
*/
|
|
17191
|
+
changeElasticsearchSecurityUserPassword(requestParameters, options) {
|
|
17192
|
+
return (0, exports.SharedApiFp)(this.configuration).changeElasticsearchSecurityUserPassword(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
17193
|
+
}
|
|
16091
17194
|
/**
|
|
16092
17195
|
* check apikey available
|
|
16093
17196
|
* @summary check apikey available
|
|
@@ -16408,6 +17511,39 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
16408
17511
|
deleteDatabase(requestParameters, options) {
|
|
16409
17512
|
return (0, exports.SharedApiFp)(this.configuration).deleteDatabase(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath));
|
|
16410
17513
|
}
|
|
17514
|
+
/**
|
|
17515
|
+
*
|
|
17516
|
+
* @summary Delete Elasticsearch security role
|
|
17517
|
+
* @param {SharedApiDeleteElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
17518
|
+
* @param {*} [options] Override http request option.
|
|
17519
|
+
* @throws {RequiredError}
|
|
17520
|
+
* @memberof SharedApi
|
|
17521
|
+
*/
|
|
17522
|
+
deleteElasticsearchSecurityRole(requestParameters, options) {
|
|
17523
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
17524
|
+
}
|
|
17525
|
+
/**
|
|
17526
|
+
*
|
|
17527
|
+
* @summary Delete Elasticsearch security role mapping
|
|
17528
|
+
* @param {SharedApiDeleteElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
17529
|
+
* @param {*} [options] Override http request option.
|
|
17530
|
+
* @throws {RequiredError}
|
|
17531
|
+
* @memberof SharedApi
|
|
17532
|
+
*/
|
|
17533
|
+
deleteElasticsearchSecurityRoleMapping(requestParameters, options) {
|
|
17534
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(this.axios, this.basePath));
|
|
17535
|
+
}
|
|
17536
|
+
/**
|
|
17537
|
+
*
|
|
17538
|
+
* @summary Delete Elasticsearch security user
|
|
17539
|
+
* @param {SharedApiDeleteElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
17540
|
+
* @param {*} [options] Override http request option.
|
|
17541
|
+
* @throws {RequiredError}
|
|
17542
|
+
* @memberof SharedApi
|
|
17543
|
+
*/
|
|
17544
|
+
deleteElasticsearchSecurityUser(requestParameters, options) {
|
|
17545
|
+
return (0, exports.SharedApiFp)(this.configuration).deleteElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
17546
|
+
}
|
|
16411
17547
|
/**
|
|
16412
17548
|
*
|
|
16413
17549
|
* @summary Delete IP whitelist
|
|
@@ -16859,6 +17995,50 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
16859
17995
|
getDatabaseOptions(requestParameters, options) {
|
|
16860
17996
|
return (0, exports.SharedApiFp)(this.configuration).getDatabaseOptions(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, requestParameters.type, requestParameters.charset, requestParameters.filter, options).then((request) => request(this.axios, this.basePath));
|
|
16861
17997
|
}
|
|
17998
|
+
/**
|
|
17999
|
+
*
|
|
18000
|
+
* @summary Get Elasticsearch builtin privileges
|
|
18001
|
+
* @param {SharedApiGetElasticsearchBuiltinPrivilegesRequest} requestParameters Request parameters.
|
|
18002
|
+
* @param {*} [options] Override http request option.
|
|
18003
|
+
* @throws {RequiredError}
|
|
18004
|
+
* @memberof SharedApi
|
|
18005
|
+
*/
|
|
18006
|
+
getElasticsearchBuiltinPrivileges(requestParameters, options) {
|
|
18007
|
+
return (0, exports.SharedApiFp)(this.configuration).getElasticsearchBuiltinPrivileges(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
18008
|
+
}
|
|
18009
|
+
/**
|
|
18010
|
+
*
|
|
18011
|
+
* @summary Get Elasticsearch security role
|
|
18012
|
+
* @param {SharedApiGetElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
18013
|
+
* @param {*} [options] Override http request option.
|
|
18014
|
+
* @throws {RequiredError}
|
|
18015
|
+
* @memberof SharedApi
|
|
18016
|
+
*/
|
|
18017
|
+
getElasticsearchSecurityRole(requestParameters, options) {
|
|
18018
|
+
return (0, exports.SharedApiFp)(this.configuration).getElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, options).then((request) => request(this.axios, this.basePath));
|
|
18019
|
+
}
|
|
18020
|
+
/**
|
|
18021
|
+
*
|
|
18022
|
+
* @summary Get Elasticsearch security role mapping
|
|
18023
|
+
* @param {SharedApiGetElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
18024
|
+
* @param {*} [options] Override http request option.
|
|
18025
|
+
* @throws {RequiredError}
|
|
18026
|
+
* @memberof SharedApi
|
|
18027
|
+
*/
|
|
18028
|
+
getElasticsearchSecurityRoleMapping(requestParameters, options) {
|
|
18029
|
+
return (0, exports.SharedApiFp)(this.configuration).getElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, options).then((request) => request(this.axios, this.basePath));
|
|
18030
|
+
}
|
|
18031
|
+
/**
|
|
18032
|
+
*
|
|
18033
|
+
* @summary Get Elasticsearch security user
|
|
18034
|
+
* @param {SharedApiGetElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
18035
|
+
* @param {*} [options] Override http request option.
|
|
18036
|
+
* @throws {RequiredError}
|
|
18037
|
+
* @memberof SharedApi
|
|
18038
|
+
*/
|
|
18039
|
+
getElasticsearchSecurityUser(requestParameters, options) {
|
|
18040
|
+
return (0, exports.SharedApiFp)(this.configuration).getElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
18041
|
+
}
|
|
16862
18042
|
/**
|
|
16863
18043
|
* get engine available console
|
|
16864
18044
|
* @summary get engine available console
|
|
@@ -17342,6 +18522,39 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
17342
18522
|
listDatabases(requestParameters, options) {
|
|
17343
18523
|
return (0, exports.SharedApiFp)(this.configuration).listDatabases(requestParameters.engineName, requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
17344
18524
|
}
|
|
18525
|
+
/**
|
|
18526
|
+
*
|
|
18527
|
+
* @summary List Elasticsearch security role mappings
|
|
18528
|
+
* @param {SharedApiListElasticsearchSecurityRoleMappingsRequest} requestParameters Request parameters.
|
|
18529
|
+
* @param {*} [options] Override http request option.
|
|
18530
|
+
* @throws {RequiredError}
|
|
18531
|
+
* @memberof SharedApi
|
|
18532
|
+
*/
|
|
18533
|
+
listElasticsearchSecurityRoleMappings(requestParameters, options) {
|
|
18534
|
+
return (0, exports.SharedApiFp)(this.configuration).listElasticsearchSecurityRoleMappings(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
18535
|
+
}
|
|
18536
|
+
/**
|
|
18537
|
+
*
|
|
18538
|
+
* @summary List Elasticsearch security roles
|
|
18539
|
+
* @param {SharedApiListElasticsearchSecurityRolesRequest} requestParameters Request parameters.
|
|
18540
|
+
* @param {*} [options] Override http request option.
|
|
18541
|
+
* @throws {RequiredError}
|
|
18542
|
+
* @memberof SharedApi
|
|
18543
|
+
*/
|
|
18544
|
+
listElasticsearchSecurityRoles(requestParameters, options) {
|
|
18545
|
+
return (0, exports.SharedApiFp)(this.configuration).listElasticsearchSecurityRoles(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
18546
|
+
}
|
|
18547
|
+
/**
|
|
18548
|
+
*
|
|
18549
|
+
* @summary List Elasticsearch security users
|
|
18550
|
+
* @param {SharedApiListElasticsearchSecurityUsersRequest} requestParameters Request parameters.
|
|
18551
|
+
* @param {*} [options] Override http request option.
|
|
18552
|
+
* @throws {RequiredError}
|
|
18553
|
+
* @memberof SharedApi
|
|
18554
|
+
*/
|
|
18555
|
+
listElasticsearchSecurityUsers(requestParameters, options) {
|
|
18556
|
+
return (0, exports.SharedApiFp)(this.configuration).listElasticsearchSecurityUsers(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
18557
|
+
}
|
|
17345
18558
|
/**
|
|
17346
18559
|
*
|
|
17347
18560
|
* @summary List cluster endpoints
|
|
@@ -17834,6 +19047,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
17834
19047
|
listUpgradeableServiceVersion(requestParameters, options) {
|
|
17835
19048
|
return (0, exports.SharedApiFp)(this.configuration).listUpgradeableServiceVersion(requestParameters.clusterName, requestParameters.orgName, requestParameters.component, options).then((request) => request(this.axios, this.basePath));
|
|
17836
19049
|
}
|
|
19050
|
+
/**
|
|
19051
|
+
*
|
|
19052
|
+
* @summary Lock Elasticsearch account
|
|
19053
|
+
* @param {SharedApiLockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
19054
|
+
* @param {*} [options] Override http request option.
|
|
19055
|
+
* @throws {RequiredError}
|
|
19056
|
+
* @memberof SharedApi
|
|
19057
|
+
*/
|
|
19058
|
+
lockElasticsearchSecurityUser(requestParameters, options) {
|
|
19059
|
+
return (0, exports.SharedApiFp)(this.configuration).lockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
19060
|
+
}
|
|
17837
19061
|
/**
|
|
17838
19062
|
*
|
|
17839
19063
|
* @summary batch modify database tde status
|
|
@@ -17933,6 +19157,39 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
17933
19157
|
promoteCluster(requestParameters, options) {
|
|
17934
19158
|
return (0, exports.SharedApiFp)(this.configuration).promoteCluster(requestParameters.orgName, requestParameters.clusterName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
17935
19159
|
}
|
|
19160
|
+
/**
|
|
19161
|
+
*
|
|
19162
|
+
* @summary Create or update Elasticsearch security role
|
|
19163
|
+
* @param {SharedApiPutElasticsearchSecurityRoleRequest} requestParameters Request parameters.
|
|
19164
|
+
* @param {*} [options] Override http request option.
|
|
19165
|
+
* @throws {RequiredError}
|
|
19166
|
+
* @memberof SharedApi
|
|
19167
|
+
*/
|
|
19168
|
+
putElasticsearchSecurityRole(requestParameters, options) {
|
|
19169
|
+
return (0, exports.SharedApiFp)(this.configuration).putElasticsearchSecurityRole(requestParameters.orgName, requestParameters.clusterName, requestParameters.roleName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
19170
|
+
}
|
|
19171
|
+
/**
|
|
19172
|
+
*
|
|
19173
|
+
* @summary Create or update Elasticsearch security role mapping
|
|
19174
|
+
* @param {SharedApiPutElasticsearchSecurityRoleMappingRequest} requestParameters Request parameters.
|
|
19175
|
+
* @param {*} [options] Override http request option.
|
|
19176
|
+
* @throws {RequiredError}
|
|
19177
|
+
* @memberof SharedApi
|
|
19178
|
+
*/
|
|
19179
|
+
putElasticsearchSecurityRoleMapping(requestParameters, options) {
|
|
19180
|
+
return (0, exports.SharedApiFp)(this.configuration).putElasticsearchSecurityRoleMapping(requestParameters.orgName, requestParameters.clusterName, requestParameters.mappingName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
19181
|
+
}
|
|
19182
|
+
/**
|
|
19183
|
+
*
|
|
19184
|
+
* @summary Create or update Elasticsearch security user
|
|
19185
|
+
* @param {SharedApiPutElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
19186
|
+
* @param {*} [options] Override http request option.
|
|
19187
|
+
* @throws {RequiredError}
|
|
19188
|
+
* @memberof SharedApi
|
|
19189
|
+
*/
|
|
19190
|
+
putElasticsearchSecurityUser(requestParameters, options) {
|
|
19191
|
+
return (0, exports.SharedApiFp)(this.configuration).putElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
|
|
19192
|
+
}
|
|
17936
19193
|
/**
|
|
17937
19194
|
*
|
|
17938
19195
|
* @summary create a SQL query
|
|
@@ -18262,6 +19519,17 @@ class SharedApi extends base_1.BaseAPI {
|
|
|
18262
19519
|
unfreezeMember(requestParameters, options) {
|
|
18263
19520
|
return (0, exports.SharedApiFp)(this.configuration).unfreezeMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(this.axios, this.basePath));
|
|
18264
19521
|
}
|
|
19522
|
+
/**
|
|
19523
|
+
*
|
|
19524
|
+
* @summary Unlock Elasticsearch account
|
|
19525
|
+
* @param {SharedApiUnlockElasticsearchSecurityUserRequest} requestParameters Request parameters.
|
|
19526
|
+
* @param {*} [options] Override http request option.
|
|
19527
|
+
* @throws {RequiredError}
|
|
19528
|
+
* @memberof SharedApi
|
|
19529
|
+
*/
|
|
19530
|
+
unlockElasticsearchSecurityUser(requestParameters, options) {
|
|
19531
|
+
return (0, exports.SharedApiFp)(this.configuration).unlockElasticsearchSecurityUser(requestParameters.orgName, requestParameters.clusterName, requestParameters.username, options).then((request) => request(this.axios, this.basePath));
|
|
19532
|
+
}
|
|
18265
19533
|
/**
|
|
18266
19534
|
* update an account in cluster
|
|
18267
19535
|
* @summary update cluster account
|